Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(crossplane-aws-factory): cleanup Kubernetes labels #711

Merged
merged 3 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions charts/crossplane-aws-factory/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ description: An AWS Factory using Crossplane
home: https://github.com/portefaix/portefaix-hub/charts/crossplane-aws-factory
icon: https://crossplane.io/images/favicon_192x192.png
type: application
version: 0.5.1
version: 0.6.0
appVersion: 1.0.0
keywords:
- cloud
Expand Down Expand Up @@ -53,4 +53,4 @@ annotations:
url: https://keybase.io/nlamirault/pgp_keys.asc
artifacthub.io/changes: |
- kind: changed
description: Additional labels and annotations
description: Cleanup labels
1 change: 0 additions & 1 deletion charts/crossplane-aws-factory/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ helm.sh/chart: {{ include "crossplane-aws-factory.chart" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/component: crossplane-factory
app.kubernetes.io/part-of: {{ include "crossplane-aws-factory.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
crossplane.io/version: {{ .Values.crossplane.version }}
Expand Down
1 change: 1 addition & 0 deletions charts/crossplane-aws-factory/templates/aws-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: config
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: config
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/crossplane-aws-factory/templates/aws-provider.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: provider
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
6 changes: 6 additions & 0 deletions charts/crossplane-aws-factory/templates/ecr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ metadata:
namespace: {{ $namespace }}
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ecr
{{- with $.Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand All @@ -49,6 +50,8 @@ kind: RepositoryPolicy
metadata:
name: {{ $repoName }}
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ecr
region: {{ $region }}
spec:
forProvider:
Expand All @@ -71,6 +74,9 @@ spec:
apiVersion: ecr.aws.crossplane.io/v1alpha1
kind: LifecyclePolicy
metadata:
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ecr
name: {{ $repoName }}
spec:
forProvider:
Expand Down
3 changes: 3 additions & 0 deletions charts/crossplane-aws-factory/templates/eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: eks
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -67,6 +68,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: eks
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -110,6 +112,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: eks
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
7 changes: 7 additions & 0 deletions charts/crossplane-aws-factory/templates/iam-eks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -69,6 +70,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -113,6 +115,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand All @@ -135,6 +138,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand All @@ -157,6 +161,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand All @@ -179,6 +184,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand All @@ -201,6 +207,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: iam
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/crossplane-aws-factory/templates/internet-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -52,6 +53,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/crossplane-aws-factory/templates/nat-gateway.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -51,6 +52,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/crossplane-aws-factory/templates/sg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -56,6 +57,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/crossplane-aws-factory/templates/sns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ metadata:
namespace: {{ $namespace }}
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: sns
{{- with $.Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down Expand Up @@ -56,6 +57,7 @@ metadata:
namespace: {{ $namespace }}
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: sns
{{- with $.Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/crossplane-aws-factory/templates/sqs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ metadata:
namespace: {{ $namespace }}
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: sqs
{{- with $.Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/crossplane-aws-factory/templates/subnets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ metadata:
namespace: {{ $namespace }}
labels:
{{- include "crossplane-aws-factory.labels" $ | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with $.Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/crossplane-aws-factory/templates/vpc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ metadata:
namespace: {{ template "crossplane-aws-factory.namespace" . }}
labels:
{{- include "crossplane-aws-factory.labels" . | nindent 4 }}
app.kubernetes.io/component: ec2
{{- with .Values.additionalAnnotations }}
annotations:
{{ toYaml . | indent 4 }}
Expand Down
3 changes: 1 addition & 2 deletions charts/crossplane-aws-factory/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,11 @@ aws:
- name: poc
tags:
Service: SNS
# -- SNS Subscriptions
# -- SNS Subscriptions
subscriptions:
- name: poc
topicName: poc
protocol: email
endpoint: john.doe@gmail.com
tags:
Service: SNS