Skip to content

Commit e075575

Browse files
committed
feat: disable helm labels
1 parent 95e362a commit e075575

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

helm/aws-load-balancer-controller/templates/_helpers.tpl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ This enables using a shorter name for the resources, for example aws-load-balanc
4545
Common labels
4646
*/}}
4747
{{- define "aws-load-balancer-controller.labels" -}}
48+
{{- if eq (default "helm" .Values.creator) "helm" -}}
49+
app.kubernetes.io/managed-by: {{ .Release.Service }}
4850
helm.sh/chart: {{ include "aws-load-balancer-controller.chart" . }}
51+
{{- end }}
4952
{{ include "aws-load-balancer-controller.selectorLabels" . }}
5053
{{- if .Chart.AppVersion }}
5154
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
5255
{{- end }}
53-
app.kubernetes.io/managed-by: {{ .Release.Service }}
5456
{{- if .Values.additionalLabels }}
5557
{{ toYaml .Values.additionalLabels }}
5658
{{- end -}}

helm/aws-load-balancer-controller/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,3 +388,6 @@ enableServiceMutatorWebhook: true
388388

389389
# serviceTargetENISGTags specifies AWS tags, in addition to the cluster tags, for finding the target ENI SG to which to add inbound rules from NLBs.
390390
serviceTargetENISGTags:
391+
392+
# creator will disable helm default labels, so you can only add yours
393+
# creator: "me"

0 commit comments

Comments
 (0)