Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for CreateBootstrapConfigMapIfNotExists (0.37 sec)

  1. cmd/kubeadm/app/phases/bootstraptoken/clusterinfo/clusterinfo_test.go

    				if !tc.fileExist {
    					fileName = "notexistfile"
    				}
    				err := CreateBootstrapConfigMapIfNotExists(client, fileName)
    				if tc.expectErr && err == nil {
    					t.Errorf("CreateBootstrapConfigMapIfNotExists(%s) wanted error, got nil", tc.name)
    				} else if !tc.expectErr && err != nil {
    					t.Errorf("CreateBootstrapConfigMapIfNotExists(%s) returned unexpected error: %v", tc.name, err)
    				}
    			})
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  2. cmd/kubeadm/app/phases/bootstraptoken/clusterinfo/clusterinfo.go

    	BootstrapSignerClusterRoleName = "kubeadm:bootstrap-signer-clusterinfo"
    )
    
    // CreateBootstrapConfigMapIfNotExists creates the kube-public ConfigMap if it doesn't exist already
    func CreateBootstrapConfigMapIfNotExists(client clientset.Interface, file string) error {
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/cmd/phases/init/bootstraptoken.go

    	if err := nodebootstraptokenphase.AutoApproveNodeCertificateRotation(client); err != nil {
    		return err
    	}
    
    	// Create the cluster-info ConfigMap with the associated RBAC rules
    	if err := clusterinfophase.CreateBootstrapConfigMapIfNotExists(client, data.KubeConfigPath()); err != nil {
    		return errors.Wrap(err, "error creating bootstrap ConfigMap")
    	}
    	if err := clusterinfophase.CreateClusterInfoRBACRules(client); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 11 08:02:50 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  4. cmd/kubeadm/app/phases/upgrade/postupgrade.go

    	// TODO: Is this needed to do here? I think that updating cluster info should probably be separate from a normal upgrade
    	// Create the cluster-info ConfigMap with the associated RBAC rules
    	// if err := clusterinfo.CreateBootstrapConfigMapIfNotExists(client, kubeadmconstants.GetAdminKubeConfigPath()); err != nil {
    	// 	return err
    	//}
    	// Create/update RBAC rules that makes the cluster-info ConfigMap reachable
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 10:21:20 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top