diff --git a/charts/kubezero-app/Chart.yaml b/charts/kubezero-app/Chart.yaml index 24d1daa7..3110b309 100644 --- a/charts/kubezero-app/Chart.yaml +++ b/charts/kubezero-app/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-app description: KubeZero ArgoCD Application - Root chart of the KubeZero type: application -version: 0.1.10 +version: 0.2.0 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/logo_small.png keywords: @@ -11,3 +11,4 @@ keywords: - gitops maintainers: - name: Quarky9 +kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-app/templates/_apps_common.yaml b/charts/kubezero-app/templates/_apps_common.yaml index 4e849ae7..1fca9aa6 100644 --- a/charts/kubezero-app/templates/_apps_common.yaml +++ b/charts/kubezero-app/templates/_apps_common.yaml @@ -9,6 +9,10 @@ metadata: helm.sh/chart: {{ .root.Chart.Name }}-{{ .root.Chart.Version | replace "+" "_" }} app.kubernetes.io/managed-by: {{ .root.Release.Service }} app.kubernetes.io/part-of: kubezero + {{- if not .retain }} + finalizers: + - resources-finalizer.argocd.argoproj.io + {{ end }} spec: project: kubezero @@ -16,12 +20,12 @@ spec: repoURL: {{ default .root.Values.defaultSource.repoURL }} targetRevision: {{ default .root.Values.defaultSource.targetRevision }} {{- if eq .type "helm" }} - {{ $values := index .root.Values .name "values" }} + {{ $my_values := index .root.Values .name "values" }} path: {{ default .root.Values.defaultSource.pathPrefix }}charts/kubezero-{{ .name }} - {{- if $values }} + {{- if $my_values }} helm: values: | -{{- toYaml $values | nindent 8 }} +{{- toYaml $my_values | nindent 8 }} {{- end }} {{- else }} path: {{ default .root.Values.defaultSource.pathPrefix }}artifacts/kubezero-{{ .name }} diff --git a/charts/kubezero-app/templates/calico.yaml b/charts/kubezero-app/templates/calico.yaml index 5fd85224..8b0ee582 100644 --- a/charts/kubezero-app/templates/calico.yaml +++ b/charts/kubezero-app/templates/calico.yaml @@ -1,3 +1,3 @@ {{- if .Values.calico.enabled }} -{{ template "kubezero.app" dict "root" . "name" "calico" "type" "kustomize" }} +{{ template "kubezero.app" dict "root" . "name" "calico" "type" "kustomize" "retain" true }} {{- end }} diff --git a/charts/kubezero-app/templates/kiam.yaml b/charts/kubezero-app/templates/kiam.yaml new file mode 100644 index 00000000..298f6fbc --- /dev/null +++ b/charts/kubezero-app/templates/kiam.yaml @@ -0,0 +1,3 @@ +{{- if index .Values "kiam" "enabled" }} +{{ template "kubezero.app" dict "root" . "name" "kiam" "type" "helm" }} +{{- end }} diff --git a/charts/kubezero-app/values-all.yaml b/charts/kubezero-app/values-all.yaml index 2920d7ea..684de3ad 100644 --- a/charts/kubezero-app/values-all.yaml +++ b/charts/kubezero-app/values-all.yaml @@ -17,3 +17,6 @@ local-volume-provisioner: cert-manager: enabled: true + +kiam: + enabled: true diff --git a/charts/kubezero-app/values.yaml b/charts/kubezero-app/values.yaml index aef4cbc7..fbc8a03c 100644 --- a/charts/kubezero-app/values.yaml +++ b/charts/kubezero-app/values.yaml @@ -20,3 +20,6 @@ local-volume-provisioner: cert-manager: enabled: false + +kiam: + enabled: false diff --git a/charts/kubezero-cert-manager/Chart.yaml b/charts/kubezero-cert-manager/Chart.yaml index 0e737376..09e2842b 100644 --- a/charts/kubezero-cert-manager/Chart.yaml +++ b/charts/kubezero-cert-manager/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: kubezero-cert-manager description: KubeZero Umbrella Chart for cert-manager type: application -version: 0.3.1 +version: 0.3.2 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/logo_small.png keywords: @@ -14,3 +14,4 @@ dependencies: - name: cert-manager version: 0.15.0 repository: https://charts.jetstack.io +kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-kiam/.helmignore b/charts/kubezero-kiam/.helmignore new file mode 100644 index 00000000..0e8a0eb3 --- /dev/null +++ b/charts/kubezero-kiam/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/kubezero-kiam/Chart.yaml b/charts/kubezero-kiam/Chart.yaml new file mode 100644 index 00000000..f341d4a9 --- /dev/null +++ b/charts/kubezero-kiam/Chart.yaml @@ -0,0 +1,17 @@ +apiVersion: v2 +name: kubezero-kiam +description: KubeZero Umbrella Chart for Kiam +type: application +version: 0.1.0 +home: https://kubezero.com +icon: https://cdn.zero-downtime.net/assets/logo_small.png +keywords: + - kubezero + - kiam +maintainers: + - name: Quarky9 +dependencies: + - name: kiam + version: 5.7.0 + repository: https://uswitch.github.io/kiam-helm-charts/charts/ +kubeVersion: ">= 1.16.0" diff --git a/charts/kubezero-kiam/values.yaml b/charts/kubezero-kiam/values.yaml new file mode 100644 index 00000000..f397fe7e --- /dev/null +++ b/charts/kubezero-kiam/values.yaml @@ -0,0 +1,42 @@ +kiam: + server: + # assumeRoleArn: + useHostNetwork: true + sslCertHostPath: /etc/ssl/certs + tlsSecret: kiam-server-tls + service: + port: 6444 + targetPort: 6444 + deployment: + enabled: true + replicas: 2 + tolerations: + - key: node-role.kubernetes.io/master + effect: NoSchedule + nodeSelector: + node-role.kubernetes.io/master: "" + prometheus: + servicemonitor: + enabled: false + # log: + # level: warn + + agent: + host: + iptables: true + whiteListRouteRegexp: '^/latest/(meta-data/instance-id|dynamic)' + sslCertHostPath: /etc/ssl/certs + tlsSecret: kiam-agent-tls + tolerations: + - key: node-role.kubernetes.io/master + effect: NoSchedule + prometheus: + servicemonitor: + enabled: false + # log: + # level: warn + # extraEnv: + # - name: GRPC_GO_LOG_SEVERITY_LEVEL + # value: "info" + # - name: GRPC_GO_LOG_VERBOSITY_LEVEL + # value: "8" diff --git a/charts/kubezero/Chart.yaml b/charts/kubezero/Chart.yaml index a3ad7208..13b37118 100644 --- a/charts/kubezero/Chart.yaml +++ b/charts/kubezero/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: KubeZero Helm chart to install Zero Down Time Kuberenetes platform name: kubezero -version: 0.2.3 +version: 0.2.4 home: https://kubezero.com icon: https://cdn.zero-downtime.net/assets/logo_small.png keywords: @@ -12,5 +12,6 @@ maintainers: - name: Quarky9 dependencies: - name: argo-cd - version: 2.2.15 + version: 2.3.2 repository: https://argoproj.github.io/argo-helm +kubeVersion: ">= 1.16.0" diff --git a/scripts/publish.sh b/scripts/publish.sh index c3e95f4d..d3a971e6 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -12,6 +12,8 @@ rm -rf $SRCROOT/output && git clone -b gh-pages ssh://git@git.zero-downtime.net: helm repo add stable https://kubernetes-charts.storage.googleapis.com helm repo add argoproj https://argoproj.github.io/argo-helm +helm repo add jetstack https://charts.jetstack.io +helm repo add uswitch https://uswitch.github.io/kiam-helm-charts/charts/ for dir in $(find $SRCROOT/charts -mindepth 1 -maxdepth 1 -type d); do @@ -33,7 +35,7 @@ do fi echo "Processing $dir" - helm --debug package $dir + helm lint $dir && helm --debug package $dir done cp $SRCROOT/*.tgz output/