Skip to content

Commit

Permalink
revoke private registry enhancements (#2121)
Browse files Browse the repository at this point in the history
* private private registry enhancements

* revoke values.yaml
  • Loading branch information
pgvishnuram committed Feb 8, 2024
1 parent a7c7209 commit c0bcf17
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 29 deletions.
18 changes: 0 additions & 18 deletions templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,3 @@ nginx.ingress.kubernetes.io/auth-url: https://houston.{{ .Values.global.baseDoma
{{ .Values.global.loggingSidecar.image }}
{{- end }}
{{- end }}

{{ define "certCopier.image" -}}
{{- if .Values.global.privateRegistry.enabled -}}
{{ .Values.global.privateRegistry.repository }}/ap-base:{{ .Values.global.privateCaCertsAddToHost.certCopier.tag }}
{{- else -}}
{{ .Values.global.privateCaCertsAddToHost.certCopier.repository }}:{{ .Values.global.privateCaCertsAddToHost.certCopier.tag }}
{{- end }}
{{- end }}

{{/*
Return the proper Docker Image Registry Secret Names
*/}}
{{- define "certCopier.imagePullSecrets" -}}
{{- if and .Values.global.privateRegistry.enabled .Values.global.privateRegistry.secretName }}
imagePullSecrets:
- name: {{ .Values.global.privateRegistry.secretName }}
{{- end -}}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,15 @@ spec:
affinity:
{{ toYaml .Values.global.privateCaCertsAddToHost.containerdnodeAffinitys | indent 8 }}
{{ end }}
{{- include "certCopier.imagePullSecrets" . | indent 6 }}
containers:
- name: cert-copy-and-toml-update
image: {{ include "certCopier.image" . }}
image: {{ .Values.global.privateCaCertsAddToHost.certCopier.repository }}:{{ .Values.global.privateCaCertsAddToHost.certCopier.tag }}
command:
- "sh"
- "-c"
args:
- sh /cert-copy-and-toml-update.sh
imagePullPolicy: {{ .Values.global.privateCaCertsAddToHost.certCopier.pullPolicy }}
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0
privileged: true
Expand Down
5 changes: 2 additions & 3 deletions templates/trust-private-ca-on-all-nodes/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,15 @@ spec:
version: {{ .Chart.Version }}
spec:
serviceAccountName: {{ .Release.Name }}-private-ca
{{- include "certCopier.imagePullSecrets" . | indent 6 }}
containers:
- name: cert-copy
image: {{ include "certCopier.image" . }}
image: {{ .Values.global.privateCaCertsAddToHost.certCopier.repository }}:{{ .Values.global.privateCaCertsAddToHost.certCopier.tag }}
command:
- "sh"
- "-c"
args:
- "while true; do date; cp -v /private-ca-certs/* /host-trust-store/; sleep 10; done"
imagePullPolicy: {{ .Values.global.privateCaCertsAddToHost.certCopier.pullPolicy }}
imagePullPolicy: IfNotPresent
volumeMounts:
- name: hostcerts
mountPath: /host-trust-store
Expand Down
3 changes: 0 additions & 3 deletions tests/enable_all_features.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ global:
pspEnabled: true
taskUsageMetricsEnabled: True
veleroEnabled: true
privateCaCertsAddToHost:
enabled: true
addToContainerd: true
prometheus-node-exporter:
rbac:
create: true
Expand Down
4 changes: 2 additions & 2 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ global:
containerdConfigToml: ~
containerdnodeAffinitys: []
certCopier:
repository: quay.io/astronomer/ap-base
tag: 3.18.5
repository: alpine
tag: 3.18
pullPolicy: IfNotPresent
# Global flag to enable to user to enable/disable Astronomer platform
# level Network Policy
Expand Down

0 comments on commit c0bcf17

Please sign in to comment.