-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update chart to enterprise v2.4.0 (#61)
* update engine/enterprise image versions * add enterprise feeds upgrade job * bump chart version Signed-off-by: Brady Todhunter <[email protected]>
- Loading branch information
1 parent
5848fc1
commit a27ab1a
Showing
3 changed files
with
69 additions
and
5 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
63 changes: 63 additions & 0 deletions
63
stable/anchore-engine/templates/enterprise_feeds_upgrade_job.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,63 @@ | ||
{{- if .Values.anchoreEnterpriseGlobal.enabled }} | ||
apiVersion: batch/v1 | ||
kind: Job | ||
metadata: | ||
name: "{{ .Release.Name }}-enterprise-feeds-upgrade" | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
annotations: | ||
"helm.sh/hook": post-upgrade | ||
"helm.sh/hook-weight": "-3" | ||
spec: | ||
template: | ||
metadata: | ||
name: "{{ .Release.Name }}-enterprise-feeds-upgrade" | ||
labels: | ||
app.kubernetes.io/managed-by: {{ .Release.Service | quote }} | ||
app.kubernetes.io/instance: {{ .Release.Name | quote }} | ||
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}" | ||
spec: | ||
{{- with .Values.anchoreGlobal.securityContext }} | ||
securityContext: | ||
{{ toYaml . | nindent 8 }} | ||
{{- end }} | ||
imagePullSecrets: | ||
- name: {{ .Values.anchoreEnterpriseGlobal.imagePullSecretName }} | ||
restartPolicy: Never | ||
containers: | ||
- name: "{{ .Release.Name }}-enterprise-feeds-upgrade" | ||
imagePullPolicy: {{ .Values.anchoreEnterpriseGlobal.imagePullPolicy }} | ||
image: {{ .Values.anchoreEnterpriseGlobal.image }} | ||
{{- if .Values.anchoreGlobal.dbConfig.ssl }} | ||
args: ["/bin/bash", "-c", "anchore-enterprise-manager db --db-use-ssl --db-connect postgresql://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME}?sslmode={{ .Values.anchoreGlobal.dbConfig.sslMode }}\\&sslrootcert=/home/anchore/certs/{{ .Values.anchoreGlobal.dbConfig.sslRootCertName }} upgrade --dontask"] | ||
{{- else }} | ||
args: ["/bin/bash", "-c", "anchore-enterprise-manager db --db-connect postgresql://${ANCHORE_DB_USER}:${ANCHORE_DB_PASSWORD}@${ANCHORE_DB_HOST}/${ANCHORE_DB_NAME} upgrade --dontask"] | ||
{{- end }} | ||
envFrom: | ||
- secretRef: | ||
name: {{ default (include "anchore-engine.fullname" .) .Values.anchoreGlobal.existingSecret }} | ||
- configMapRef: | ||
name: {{ template "anchore-engine.enterprise-feeds.fullname" . }}-env | ||
env: | ||
{{- with .Values.anchoreGlobal.extraEnv }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- with .Values.anchoreEnterpriseFeeds.extraEnv }} | ||
{{- toYaml . | nindent 8 }} | ||
{{- end }} | ||
{{- if (.Values.anchoreGlobal.certStoreSecretName) }} | ||
volumeMounts: | ||
- name: certs | ||
mountPath: /home/anchore/certs/ | ||
readOnly: true | ||
{{- end }} | ||
{{- with .Values.anchoreGlobal.certStoreSecretName }} | ||
volumes: | ||
- name: certs | ||
secret: | ||
secretName: {{ . }} | ||
{{- end }} | ||
{{- 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