diff --git a/manifests/klusterlet/management/klusterlet-agent-deployment.yaml b/manifests/klusterlet/management/klusterlet-agent-deployment.yaml index 3e8ba1b32..37ce2b4c2 100644 --- a/manifests/klusterlet/management/klusterlet-agent-deployment.yaml +++ b/manifests/klusterlet/management/klusterlet-agent-deployment.yaml @@ -75,7 +75,7 @@ spec: {{if gt .ClientCertExpirationSeconds 0}} - "--client-cert-expiration-seconds={{ .ClientCertExpirationSeconds }}" {{end}} - {{if ne .ClusterAnnotationsString ""}} + {{if .ClusterAnnotationsString}} - "--cluster-annotations={{ .ClusterAnnotationsString }}" {{end}} securityContext: diff --git a/manifests/klusterlet/management/klusterlet-registration-deployment.yaml b/manifests/klusterlet/management/klusterlet-registration-deployment.yaml index 23860d115..73abfcb30 100644 --- a/manifests/klusterlet/management/klusterlet-registration-deployment.yaml +++ b/manifests/klusterlet/management/klusterlet-registration-deployment.yaml @@ -73,7 +73,7 @@ spec: {{if gt .ClientCertExpirationSeconds 0}} - "--client-cert-expiration-seconds={{ .ClientCertExpirationSeconds }}" {{end}} - {{if ne .ClusterAnnotationsString ""}} + {{if .ClusterAnnotationsString}} - "--cluster-annotations={{ .ClusterAnnotationsString }}" {{end}} securityContext: