Skip to content

Commit

Permalink
feat(ack-factory): cleanup Kubernetes labels (#709)
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Lamirault <nicolas.lamirault@gmail.com>
  • Loading branch information
nlamirault committed Apr 16, 2024
1 parent 63aa431 commit cc61aa1
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions charts/ack-factory/Chart.yaml
Expand Up @@ -21,7 +21,7 @@ description: An AWS Factory using AWS Controllers for Kubernetes
home: https://github.com/portefaix/portefaix-hub/charts/ack-factory
icon: https://raw.githubusercontent.com/aws/eks-charts/master/docs/logo/aws.png
type: application
version: 0.3.0
version: 0.4.0
appVersion: 1.0.0
keywords:
- cloud
Expand Down Expand Up @@ -53,4 +53,4 @@ annotations:
# added, changed, deprecated, removed, fixed and security.
artifacthub.io/changes: |
- kind: changed
description: Kubernetes v1.15 as default value for EKS
description: Cleanup labels
1 change: 0 additions & 1 deletion charts/ack-factory/templates/_helpers.tpl
Expand Up @@ -50,7 +50,6 @@ helm.sh/chart: {{ include "ack-factory.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/component: krm-controller
app.kubernetes.io/part-of: {{ include "ack-factory.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- if .Values.additionalLabels }}
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/ecr.yaml
Expand Up @@ -28,6 +28,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ecr
name: {{ $repoName }}
namespace: {{ $namespace }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/eip.yaml
Expand Up @@ -24,6 +24,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
name: {{ include "ack-factory.name" . }}
namespace: {{ template "ack-factory.namespace" . }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/eks.yaml
Expand Up @@ -24,6 +24,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: eks
name: {{ include "ack-factory.name" . }}-eks-cluster
namespace: {{ template "ack-factory.namespace" . }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/gateways.yaml
Expand Up @@ -24,6 +24,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
name: {{ include "ack-factory.name" . }}
namespace: {{ template "ack-factory.namespace" . }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/iam.yaml
Expand Up @@ -24,6 +24,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
name: {{ include "ack-factory.name" . }}-eks-cluster
namespace: {{ template "ack-factory.namespace" . }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/s3.yaml
Expand Up @@ -24,6 +24,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: s3
name: {{ include "ack-factory.name" . }}
namespace: {{ template "ack-factory.namespace" . }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/sg.yaml
Expand Up @@ -24,6 +24,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
name: {{ include "ack-factory.name" . }}-core
namespace: {{ template "ack-factory.namespace" . }}
spec:
Expand Down
1 change: 1 addition & 0 deletions charts/ack-factory/templates/subnets.yaml
Expand Up @@ -28,6 +28,7 @@ metadata:
{{- end }}
labels:
{{- include "ack-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ec2
name: {{ $subnetName }}
namespace: {{ $namespace }}
spec:
Expand Down
3 changes: 3 additions & 0 deletions charts/ack-factory/templates/vpc.yaml
Expand Up @@ -18,6 +18,9 @@
apiVersion: ec2.services.k8s.aws/v1alpha1
kind: VPC
metadata:
labels:
{{- include "ack-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ec2
name: {{ include "ack-factory.name" . }}
spec:
cidrBlocks:
Expand Down

0 comments on commit cc61aa1

Please sign in to comment.