-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use default apps from cluster chart (#581)
* Update cluster chart version and fix coreDns config * Add cluster-autoscaler AWS config * Enable cluster-autoscaler from cluster chart * Enable capi-node-labeler from cluster chart * Enable cert-exporter from cluster chart * Enable cert-manager from cluster chart * Enable chart-operator-extensions from cluster chart * Use new app enable flag for cilium * Enable all apps from cluster chart And use new enabled flags for HelmReleases * Add AWS-specific external-dns properties * Values: Separate `app` and `helmRelease` definition. * Chart: Add `aws-pod-identity-webhook` app. * Add security-bundle AWS Helm values * Add missing values for configuring apps * Update cluster chart version * Update CHANGELOG --------- Co-authored-by: Marco Ebert <[email protected]>
- Loading branch information
Showing
11 changed files
with
524 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
dependencies: | ||
- name: cluster | ||
repository: https://giantswarm.github.io/cluster-catalog | ||
version: 0.23.0 | ||
version: 0.25.0 | ||
- name: cluster-shared | ||
repository: https://giantswarm.github.io/cluster-catalog | ||
version: 0.7.0 | ||
digest: sha256:aec820306e002c75e4bd4fd0e8d5db9999a93a8e6e45fa84beb89446b877c45a | ||
generated: "2024-05-08T14:25:29.991771063+02:00" | ||
digest: sha256:6285a88ed8be876527bc267140585f0647b95ee7de282cee14ff23911f8911ad | ||
generated: "2024-05-14T14:41:15.942874+02:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
helm/cluster-aws/templates/_clusterautoscaler_app_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{{/* AWS-specific cluster-autoscaler Helm values*/}} | ||
{{/* https://github.com/giantswarm/cluster-autoscaler-app/blob/main/helm/cluster-autoscaler-app/values.yaml*/}} | ||
{{- define "awsClusterAutoscalerHelmValues" }} | ||
serviceAccount: | ||
annotations: | ||
eks.amazonaws.com/role-arn: "{{ .Values.global.metadata.name }}-cluster-autoscaler-role" | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{/* AWS-specific external-dns Helm values*/}} | ||
{{/* https://github.com/giantswarm/external-dns-app/blob/main/helm/external-dns-app/values.yaml*/}} | ||
{{- define "awsExternalDnsHelmValues" }} | ||
aws: | ||
irsa: "true" | ||
batchChangeInterval: null | ||
serviceAccount: | ||
annotations: | ||
eks.amazonaws.com/role-arn: "{{ .Values.global.metadata.name }}-Route53Manager-Role" | ||
extraArgs: | ||
- "--aws-batch-change-interval=10s" | ||
{{- end }} |
14 changes: 14 additions & 0 deletions
14
helm/cluster-aws/templates/_security-bundle_app_config.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{/* AWS-specific security-bundle Helm values*/}} | ||
{{/* https://github.com/giantswarm/security-bundle/blob/main/helm/security-bundle/values.yaml*/}} | ||
{{- define "awsSecurityBundleHelmValues" }} | ||
userConfig: | ||
kyverno: | ||
configMap: | ||
values: | ||
kyverno: | ||
admissionController: | ||
tolerations: | ||
- key: "node.cluster.x-k8s.io/uninitialized" | ||
operator: "Exists" | ||
effect: "NoSchedule" | ||
{{- end }} |
55 changes: 55 additions & 0 deletions
55
helm/cluster-aws/templates/aws-pod-identity-webhook-app.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{{- if .Values.global.apps.awsPodIdentityWebhook.values -}} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ include "resource.default.name" . }}-aws-pod-identity-webhook-user-values | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
data: | ||
values: | | ||
{{- toYaml .Values.global.apps.awsPodIdentityWebhook.values | nindent 4 }} | ||
{{- end }} | ||
--- | ||
apiVersion: application.giantswarm.io/v1alpha1 | ||
kind: App | ||
metadata: | ||
name: {{ include "resource.default.name" . }}-aws-pod-identity-webhook | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
{{- include "labels.common" . | nindent 4 }} | ||
giantswarm.io/managed-by: {{ .Chart.Name }} | ||
annotations: | ||
app-operator.giantswarm.io/depends-on: {{ include "resource.default.name" . }}-cert-manager | ||
spec: | ||
catalog: default | ||
name: aws-pod-identity-webhook | ||
# repo: giantswarm/aws-pod-identity-webhook | ||
version: 1.14.2 | ||
namespace: kube-system | ||
config: | ||
configMap: | ||
name: {{ include "resource.default.name" . }}-cluster-values | ||
namespace: {{ .Release.Namespace }} | ||
{{- if .Values.global.apps.awsPodIdentityWebhook.values }} | ||
userConfig: | ||
configMap: | ||
name: {{ include "resource.default.name" . }}-aws-pod-identity-webhook-user-values | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} | ||
{{- if .Values.global.apps.awsPodIdentityWebhook.extraConfigs }} | ||
extraConfigs: | ||
{{- range .Values.global.apps.awsPodIdentityWebhook.extraConfigs }} | ||
- kind: {{ .kind }} | ||
name: {{ .name }} | ||
namespace: {{ .namespace | default $.Release.Namespace }} | ||
priority: {{ .priority }} | ||
{{- end }} | ||
{{- end }} | ||
kubeConfig: | ||
inCluster: false | ||
secret: | ||
name: {{ include "resource.default.name" . }}-kubeconfig | ||
namespace: {{ .Release.Namespace }} | ||
context: | ||
name: {{ include "resource.default.name" . }}-admin@{{ include "resource.default.name" . }} |
Oops, something went wrong.