- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CreateOrUpdateClusterRoleBinding (0.51 sec)
-
cmd/kubeadm/app/util/apiclient/idempotency.go
} return true, nil }) if err == nil { return nil } return lastError } // CreateOrUpdateClusterRoleBinding creates a ClusterRoleBinding if the target resource doesn't exist. If the resource exists already, this function will update the resource instead. func CreateOrUpdateClusterRoleBinding(client clientset.Interface, clusterRoleBinding *rbac.ClusterRoleBinding) error { var lastError error
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 18.4K bytes - Viewed (0) -
cmd/kubeadm/app/phases/addons/dns/dns.go
return errors.Wrapf(err, "%s ClusterRoleBinding", unableToDecodeCoreDNS) } // Create the Clusterrolebindings for CoreDNS or update it in case it already exists if err := apiclient.CreateOrUpdateClusterRoleBinding(client, coreDNSClusterRolesBinding); err != nil { return err } coreDNSServiceAccount := &v1.ServiceAccount{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 11 10:21:20 UTC 2024 - 16.1K bytes - Viewed (0) -
cmd/kubeadm/app/util/apiclient/idempotency_test.go
}, expectedError: true, }, } for _, tc := range tests { t.Run(tc.name, func(t *testing.T) { client := clientsetfake.NewSimpleClientset() tc.setupClient(client) err := CreateOrUpdateClusterRoleBinding(client, &rbac.ClusterRoleBinding{}) if (err != nil) != tc.expectedError { t.Fatalf("expected error: %v, got %v, error: %v", tc.expectedError, err != nil, err) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Feb 18 11:14:32 UTC 2024 - 33.2K bytes - Viewed (0)