Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for cloudConfig (0.15 sec)

  1. pkg/kubeapiserver/admission/initializer_test.go

    type WantsCloudConfigAdmissionPlugin struct {
    	doNothingAdmission
    	cloudConfig []byte
    }
    
    func (p *WantsCloudConfigAdmissionPlugin) SetCloudConfig(cloudConfig []byte) {
    	p.cloudConfig = cloudConfig
    }
    
    func TestCloudConfigAdmissionPlugin(t *testing.T) {
    	cloudConfig := []byte("cloud-configuration")
    	initializer := NewPluginInitializer(cloudConfig)
    	wantsCloudConfigAdmission := &WantsCloudConfigAdmissionPlugin{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. pkg/kubeapiserver/admission/initializer.go

    func NewPluginInitializer(cloudConfig []byte) *PluginInitializer {
    	return &PluginInitializer{
    		cloudConfig: cloudConfig,
    	}
    }
    
    // Initialize checks the initialization interfaces implemented by each plugin
    // and provide the appropriate initialization data
    func (i *PluginInitializer) Initialize(plugin admission.Interface) {
    	if wants, ok := plugin.(WantsCloudConfig); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  3. pkg/kubeapiserver/admission/config.go

    func (c *Config) New() ([]admission.PluginInitializer, error) {
    	var cloudConfig []byte
    	if c.CloudConfigFile != "" {
    		var err error
    		cloudConfig, err = os.ReadFile(c.CloudConfigFile)
    		if err != nil {
    			klog.Fatalf("Error reading from cloud configuration file %s: %#v", c.CloudConfigFile, err)
    		}
    	}
    
    	return []admission.PluginInitializer{NewPluginInitializer(cloudConfig)}, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. hack/ginkgo-e2e.sh

    GINKGO_FORCE_NEWLINES=${GINKGO_FORCE_NEWLINES:-$( if [ "${CI:-false}" = "true" ]; then echo "y"; else echo "n"; fi )} # set to 'y' to print a newline after each S or o character
    CLOUD_CONFIG=${CLOUD_CONFIG:-""}
    
    
    # If 'y', Ginkgo's reporter will not use escape sequence to color output.
    #
    # Since Kubernetes 1.25, the default is to use colors only when connected to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 27 13:25:50 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. hack/local-up-cluster.sh

        CTLRMGR_PID=$!
    }
    
    function start_cloud_controller_manager {
        if [ -z "${CLOUD_CONFIG}" ]; then
          echo "CLOUD_CONFIG cannot be empty!"
          exit 1
        fi
        if [ ! -f "${CLOUD_CONFIG}" ]; then
          echo "Cloud config ${CLOUD_CONFIG} doesn't exist"
          exit 1
        fi
    
        CLOUD_CTLRMGR_LOG=${LOG_DIR}/cloud-controller-manager.log
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 25 02:33:52 UTC 2024
    - 53.3K bytes
    - Viewed (0)
Back to top