Skip to content

Commit 3c91c7d

Browse files
committed
replace csrapproving by agentcsrapproving
Signed-off-by: zhzhuang-zju <[email protected]>
1 parent 88c3e44 commit 3c91c7d

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

artifacts/deploy/kube-controller-manager.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
- --cluster-name=karmada
4949
- --cluster-signing-cert-file=/etc/karmada/pki/ca/tls.crt
5050
- --cluster-signing-key-file=/etc/karmada/pki/ca/tls.key
51-
- --controllers=namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,tokencleaner,csrapproving,csrcleaner,csrsigning,clusterrole-aggregation
51+
- --controllers=namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,tokencleaner,csrcleaner,csrsigning,clusterrole-aggregation
5252
- --leader-elect=true
5353
- --node-cidr-mask-size=24
5454
- --root-ca-file=/etc/karmada/pki/ca/tls.crt

charts/karmada/values.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ kubeControllerManager:
607607
rollingUpdate:
608608
maxUnavailable: 0
609609
maxSurge: 50%
610-
controllers: namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,tokencleaner,csrapproving,csrcleaner,csrsigning,clusterrole-aggregation
610+
controllers: namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,tokencleaner,csrcleaner,csrsigning,clusterrole-aggregation
611611
## @param apiServer.podDisruptionBudget
612612
podDisruptionBudget: *podDisruptionBudget
613613
serviceClusterIPRange: "10.96.0.0/12"

cmd/controller-manager/app/controllermanager.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func Run(ctx context.Context, opts *options.Options) error {
210210
var controllers = make(controllerscontext.Initializers)
211211

212212
// controllersDisabledByDefault is the set of controllers which is disabled by default
213-
var controllersDisabledByDefault = sets.New("hpaScaleTargetMarker", "deploymentReplicasSyncer", "agentcsrapproving")
213+
var controllersDisabledByDefault = sets.New("hpaScaleTargetMarker", "deploymentReplicasSyncer")
214214

215215
func init() {
216216
controllers["cluster"] = startClusterController

operator/pkg/controlplane/manifests.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ spec:
6464
- --cluster-name=karmada
6565
- --cluster-signing-cert-file=/etc/karmada/pki/ca.crt
6666
- --cluster-signing-key-file=/etc/karmada/pki/ca.key
67-
- --controllers=namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,csrapproving,csrcleaner,csrsigning,clusterrole-aggregation
67+
- --controllers=namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,csrcleaner,csrsigning,clusterrole-aggregation
6868
- --leader-elect=true
6969
- --node-cidr-mask-size=24
7070
- --root-ca-file=/etc/karmada/pki/ca.crt

pkg/karmadactl/cmdinit/kubernetes/deployments.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func (i *CommandInitOption) makeKarmadaKubeControllerManagerDeployment() *appsv1
311311
fmt.Sprintf("--cluster-name=%s", options.ClusterName),
312312
fmt.Sprintf("--cluster-signing-cert-file=%s/%s.crt", karmadaCertsVolumeMountPath, globaloptions.CaCertAndKeyName),
313313
fmt.Sprintf("--cluster-signing-key-file=%s/%s.key", karmadaCertsVolumeMountPath, globaloptions.CaCertAndKeyName),
314-
"--controllers=namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,tokencleaner,csrapproving,csrcleaner,csrsigning,clusterrole-aggregation",
314+
"--controllers=namespace,garbagecollector,serviceaccount-token,ttl-after-finished,bootstrapsigner,tokencleaner,csrcleaner,csrsigning,clusterrole-aggregation",
315315
"--kubeconfig=/etc/kubeconfig",
316316
"--leader-elect=true",
317317
fmt.Sprintf("--leader-elect-resource-namespace=%s", i.Namespace),

pkg/karmadactl/register/register.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ func (o *CommandRegisterOption) constructKubeConfig(bootstrapClient *kubeclient.
924924
}
925925

926926
klog.V(1).Infof(fmt.Sprintf("Waiting for the client certificate of csr %s to be issued", csrName))
927-
klog.V(1).Infof("Approve the CSR %s manually by executing `kubectl certificate approve %s` on the control plane", csrName, csrName)
927+
klog.V(1).Infof("Approve the CSR %s manually by executing `kubectl certificate approve %s` on the control plane\nOr enable the agentcsrapproving controller of karmada-controller-manager to automatically approve agent CSR.", csrName, csrName)
928928
return false, nil
929929
})
930930
if err != nil {

0 commit comments

Comments
 (0)