Initial commit from kro/examples/aws/eks-cluster-mgmt

This commit is contained in:
2026-04-21 09:55:53 -03:00
parent 0585444299
commit 7d11fd5889
66 changed files with 3667 additions and 0 deletions
@@ -0,0 +1,27 @@
{{- if .Values.create | default false }}
{{- $cluster := .Values.podIdentityAssociation.clusterName -}}
{{- $namespace := .Values.podIdentityAssociation.namespace -}}
{{- $tags := .Values.podIdentityAssociation.tags -}}
{{- $root := . -}}
{{- $serviceAccounts := .Values.podIdentityAssociation.serviceAccounts -}}
{{- range $serviceAccounts }}
apiVersion: eks.services.k8s.aws/v1alpha1
kind: PodIdentityAssociation
metadata:
name: "{{ include "pod-identity.fullname" $root }}-{{ . }}"
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
clusterName: {{ $cluster }}
roleRef:
from:
name: "{{ include "pod-identity.fullname" $root }}"
namespace: {{ $namespace }}
serviceAccount: {{ . }}
{{- if $tags}}
tags:
{{- $tags| toYaml | nindent 10 }}
{{- end }}
---
{{- end }}
{{- end }}