From a5c3754bcb7cab4fc27b7a0552d90baee8432b43 Mon Sep 17 00:00:00 2001 From: Michal Jura Date: Tue, 11 Apr 2023 22:32:18 +0200 Subject: [PATCH] Make charts --- .../rancher-eks-operator-102.0.1+up1.1.5.tgz | Bin 0 -> 2037 bytes .../102.0.1+up1.1.5/Chart.yaml | 20 ++++++ .../102.0.1+up1.1.5/templates/NOTES.txt | 4 ++ .../102.0.1+up1.1.5/templates/_helpers.tpl | 25 +++++++ .../templates/clusterrole.yaml | 15 +++++ .../templates/clusterrolebinding.yaml | 13 ++++ .../102.0.1+up1.1.5/templates/deployment.yaml | 61 ++++++++++++++++++ .../templates/serviceaccount.yaml | 5 ++ .../102.0.1+up1.1.5/values.yaml | 22 +++++++ index.yaml | 24 +++++++ 10 files changed, 189 insertions(+) create mode 100644 assets/rancher-eks-operator/rancher-eks-operator-102.0.1+up1.1.5.tgz create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/Chart.yaml create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/templates/NOTES.txt create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/templates/_helpers.tpl create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrole.yaml create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrolebinding.yaml create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/templates/deployment.yaml create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/templates/serviceaccount.yaml create mode 100644 charts/rancher-eks-operator/102.0.1+up1.1.5/values.yaml diff --git a/assets/rancher-eks-operator/rancher-eks-operator-102.0.1+up1.1.5.tgz b/assets/rancher-eks-operator/rancher-eks-operator-102.0.1+up1.1.5.tgz new file mode 100644 index 0000000000000000000000000000000000000000..a6c7ce5d5c5f62bac437360f7f4e1cd7e27b8b18 GIT binary patch literal 2037 zcmVDc zVQyr3R8em|NM&qo0PH$#Z`;Vx`OIH2knzAzuOUUrvKyq%>SRj2=6?2@8Ln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jMo@ZV{)_AT4V%qG z-`F$Lw-#2K{xi&5kfYl!`vA^GPu)DGWkmWx#TY?23d5$PZpV2y1FsQpU%H~%!>@rI z^?#YsS&`8n*#qqA{|86y{(mqG_w&DJfyP%|o6^74Ew{`6J3gfAsDxfxyFKh-4|~|d TUGT2}00960J~1iy05AXmBeVNs literal 0 HcmV?d00001 diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/Chart.yaml b/charts/rancher-eks-operator/102.0.1+up1.1.5/Chart.yaml new file mode 100644 index 000000000..b6f131233 --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/Chart.yaml @@ -0,0 +1,20 @@ +annotations: + catalog.cattle.io/auto-install: rancher-eks-operator-crd=match + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/kube-version: '>= 1.20.0-0 < 1.26.0-0' + catalog.cattle.io/namespace: cattle-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux,windows + catalog.cattle.io/provides-gvr: eksclusterconfigs.eks.cattle.io/v1 + catalog.cattle.io/rancher-version: '>= 2.7.2-0 < 2.8.0-0' + catalog.cattle.io/release-name: rancher-eks-operator + catalog.cattle.io/scope: management +apiVersion: v2 +appVersion: 1.1.5 +description: A Helm chart for provisioning EKS clusters +home: https://github.com/rancher/eks-operator +name: rancher-eks-operator +sources: +- https://github.com/rancher/eks-operator +version: 102.0.1+up1.1.5 diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/NOTES.txt b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/NOTES.txt new file mode 100644 index 000000000..23a1b4a8b --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/NOTES.txt @@ -0,0 +1,4 @@ +You have deployed the Rancher EKS operator +Version: {{ .Chart.AppVersion }} +Description: This operator provisions EKS clusters +from EKSClusterConfig CRs. diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/_helpers.tpl b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/_helpers.tpl new file mode 100644 index 000000000..de3b332f6 --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/_helpers.tpl @@ -0,0 +1,25 @@ +{{/* vim: set filetype=mustache: */}} + +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- else -}} +{{- "" -}} +{{- end -}} +{{- end -}} + +{{/* +Windows cluster will add default taint for linux nodes, +add below linux tolerations to workloads could be scheduled to those linux nodes +*/}} +{{- define "linux-node-tolerations" -}} +- key: "cattle.io/os" + value: "linux" + effect: "NoSchedule" + operator: "Equal" +{{- end -}} + +{{- define "linux-node-selector" -}} +kubernetes.io/os: linux +{{- end -}} + diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrole.yaml b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrole.yaml new file mode 100644 index 000000000..d0d561b6e --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrole.yaml @@ -0,0 +1,15 @@ +kind: ClusterRole +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: eks-operator + namespace: cattle-system +rules: + - apiGroups: [''] + resources: ['secrets'] + verbs: ['get', 'list', 'create', 'watch'] + - apiGroups: ['eks.cattle.io'] + resources: ['eksclusterconfigs'] + verbs: ['get', 'list', 'update', 'watch'] + - apiGroups: ['eks.cattle.io'] + resources: ['eksclusterconfigs/status'] + verbs: ['update'] diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrolebinding.yaml b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrolebinding.yaml new file mode 100644 index 000000000..2b1846353 --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/clusterrolebinding.yaml @@ -0,0 +1,13 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: eks-operator + namespace: cattle-system +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: eks-operator +subjects: +- kind: ServiceAccount + name: eks-operator + namespace: cattle-system diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/deployment.yaml b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/deployment.yaml new file mode 100644 index 000000000..f63054b2e --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/deployment.yaml @@ -0,0 +1,61 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: eks-config-operator + namespace: cattle-system +spec: + replicas: 1 + selector: + matchLabels: + ke.cattle.io/operator: eks + template: + metadata: + labels: + ke.cattle.io/operator: eks + spec: + nodeSelector: {{ include "linux-node-selector" . | nindent 8 }} +{{- if .Values.nodeSelector }} +{{ toYaml .Values.nodeSelector | indent 8 }} +{{- end }} + tolerations: {{ include "linux-node-tolerations" . | nindent 8 }} +{{- if .Values.tolerations }} +{{ toYaml .Values.tolerations | indent 8 }} +{{- end }} + serviceAccountName: eks-operator + {{- if .Values.priorityClassName }} + priorityClassName: "{{.Values.priorityClassName}}" + {{- end }} + securityContext: + fsGroup: 1007 + runAsUser: 1007 + containers: + - name: eks-operator + image: {{ template "system_default_registry" . }}{{ .Values.eksOperator.image.repository }}:{{ .Values.eksOperator.image.tag }} + imagePullPolicy: IfNotPresent + env: + - name: HTTP_PROXY + value: {{ .Values.httpProxy }} + - name: HTTPS_PROXY + value: {{ .Values.httpsProxy }} + - name: NO_PROXY + value: {{ .Values.noProxy }} +{{- if .Values.additionalTrustedCAs }} + # eks-operator mounts the additional CAs in two places: + volumeMounts: + # This directory is owned by the eks-operator user so c_rehash works here. + - mountPath: /etc/rancher/ssl/ca-additional.pem + name: tls-ca-additional-volume + subPath: ca-additional.pem + readOnly: true + # This directory is root-owned so c_rehash doesn't work here, + # but the cert is here in case update-ca-certificates is called in the future or by the OS. + - mountPath: /etc/pki/trust/anchors/ca-additional.pem + name: tls-ca-additional-volume + subPath: ca-additional.pem + readOnly: true + volumes: + - name: tls-ca-additional-volume + secret: + defaultMode: 0400 + secretName: tls-ca-additional + {{- end }} diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/serviceaccount.yaml b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/serviceaccount.yaml new file mode 100644 index 000000000..934de07e0 --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/templates/serviceaccount.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + namespace: cattle-system + name: eks-operator diff --git a/charts/rancher-eks-operator/102.0.1+up1.1.5/values.yaml b/charts/rancher-eks-operator/102.0.1+up1.1.5/values.yaml new file mode 100644 index 000000000..cc3955ac6 --- /dev/null +++ b/charts/rancher-eks-operator/102.0.1+up1.1.5/values.yaml @@ -0,0 +1,22 @@ +global: + cattle: + systemDefaultRegistry: "" + +eksOperator: + image: + repository: rancher/eks-operator + tag: v1.1.5 + +httpProxy: "" +httpsProxy: "" +noProxy: "" +additionalTrustedCAs: false +## Node labels for pod assignment +## Ref: https://kubernetes.io/docs/user-guide/node-selection/ +## +nodeSelector: {} +## List of node taints to tolerate (requires Kubernetes >= 1.6) +tolerations: [] + +## PriorityClassName assigned to deployment. +priorityClassName: "" diff --git a/index.yaml b/index.yaml index ffb60b199..49b494b35 100755 --- a/index.yaml +++ b/index.yaml @@ -5894,6 +5894,30 @@ entries: - assets/rancher-csp-adapter/rancher-csp-adapter-1.0.0.tgz version: 1.0.0 rancher-eks-operator: + - annotations: + catalog.cattle.io/auto-install: rancher-eks-operator-crd=match + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/kube-version: '>= 1.20.0-0 < 1.26.0-0' + catalog.cattle.io/namespace: cattle-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux,windows + catalog.cattle.io/provides-gvr: eksclusterconfigs.eks.cattle.io/v1 + catalog.cattle.io/rancher-version: '>= 2.7.2-0 < 2.8.0-0' + catalog.cattle.io/release-name: rancher-eks-operator + catalog.cattle.io/scope: management + apiVersion: v2 + appVersion: 1.1.5 + created: "2023-04-11T22:31:53.272856891+02:00" + description: A Helm chart for provisioning EKS clusters + digest: 65790824a6d271be5e5be26252f5e739fe84197548feb7a0445db6cdcd6d60cc + home: https://github.com/rancher/eks-operator + name: rancher-eks-operator + sources: + - https://github.com/rancher/eks-operator + urls: + - assets/rancher-eks-operator/rancher-eks-operator-102.0.1+up1.1.5.tgz + version: 102.0.1+up1.1.5 - annotations: catalog.cattle.io/auto-install: rancher-eks-operator-crd=match catalog.cattle.io/certified: rancher