Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(k8s-operator): duplicate helm labels

Daniel Hougaardf788dee398fa
diff --git a/helm-charts/secrets-operator/templates/deployment.yaml b/helm-charts/secrets-operator/templates/deployment.yaml
index 95cf368019..eda0416687 100644
--- a/helm-charts/secrets-operator/templates/deployment.yaml
+++ b/helm-charts/secrets-operator/templates/deployment.yaml
@@ -9,13 +9,11 @@ spec:
replicas: {{ .Values.controllerManager.replicas }}
selector:
matchLabels:
- app.kubernetes.io/name: k8-operator
control-plane: controller-manager
{{- include "secrets-operator.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
- app.kubernetes.io/name: k8-operator
control-plane: controller-manager
{{- include "secrets-operator.selectorLabels" . | nindent 8 }}
annotations:
diff --git a/helm-charts/secrets-operator/templates/metrics-service.yaml b/helm-charts/secrets-operator/templates/metrics-service.yaml
index 833117d05d..138dd3b3ff 100644
--- a/helm-charts/secrets-operator/templates/metrics-service.yaml
+++ b/helm-charts/secrets-operator/templates/metrics-service.yaml
@@ -8,7 +8,6 @@ metadata:
spec:
type: {{ .Values.metricsService.type }}
selector:
- app.kubernetes.io/name: k8-operator
control-plane: controller-manager
{{- include "secrets-operator.selectorLabels" . | nindent 4 }}
ports:
diff --git a/k8-operator/config/default/metrics_service.yaml b/k8-operator/config/default/metrics_service.yaml
index cf99575a78..6acf3ca492 100644
--- a/k8-operator/config/default/metrics_service.yaml
+++ b/k8-operator/config/default/metrics_service.yaml
@@ -15,4 +15,3 @@ spec:
targetPort: 8443
selector:
control-plane: controller-manager
- app.kubernetes.io/name: k8-operator
diff --git a/k8-operator/config/manager/manager.yaml b/k8-operator/config/manager/manager.yaml
index eae496083e..fe46017354 100644
--- a/k8-operator/config/manager/manager.yaml
+++ b/k8-operator/config/manager/manager.yaml
@@ -20,7 +20,6 @@ spec:
selector:
matchLabels:
control-plane: controller-manager
- app.kubernetes.io/name: k8-operator
replicas: 1
template:
metadata:
@@ -28,7 +27,6 @@ spec:
kubectl.kubernetes.io/default-container: manager
labels:
control-plane: controller-manager
- app.kubernetes.io/name: k8-operator
spec:
# TODO(user): Uncomment the following code to configure the nodeAffinity expression
# according to the platforms which are supported by your solution.