Skip to content

Commit 2a338b7

Browse files
committed
feat: disable helm labels
1 parent 8979c65 commit 2a338b7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,4 +411,7 @@ serviceMutatorWebhookConfig:
411411
serviceTargetENISGTags:
412412

413413
# Specifies the class of load balancer to use for services. This affects how services are provisioned if type LoadBalancer is used (default service.k8s.aws/nlb)
414-
loadBalancerClass:
414+
loadBalancerClass:
415+
416+
# creator will disable helm default labels, so you can only add yours
417+
# creator: "me"

0 commit comments

Comments
 (0)