Skip to content

Commit

Permalink
XM2C-68 remove auto-created pull secrets
Browse files Browse the repository at this point in the history
* XM2C-68 remove auto-created pull secrets

* XM2C-68 format readme
  • Loading branch information
hechmi-dammak-xenit authored Nov 22, 2022
1 parent e3e7646 commit 0dac4c2
Show file tree
Hide file tree
Showing 19 changed files with 344 additions and 202 deletions.
427 changes: 301 additions & 126 deletions README.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,6 @@ void smallSetup() throws IOException {
host: test
protocol: http
kubernetes.io/ingress.class: {}
imageCredentials:
private:
username: hello
password: world
alfresco:
username: hello
password: world
acs:
replicas: 1
resources:
Expand Down
7 changes: 0 additions & 7 deletions local-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,6 @@ ingress:
host: test
protocol: http
kubernetes.io/ingress.class: {}
imageCredentials:
private:
username: #!Important: add your LDAP user name and do not commit them
password: #!Important: add your LDAP password and do not commit them
alfresco:
username: #!Important: add your alfresco user name and do not commit them
password: #!Important: add your alfresco password and do not commit them
acs:
resources:
requests:
Expand Down
4 changes: 3 additions & 1 deletion xenit-alfresco/templates/acs/acs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ spec:
claimName: alfresco-pvc
{{- end }}
imagePullSecrets:
- name: privatecred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.acs.imagePullSecrets}}
{{ toYaml .Values.acs.imagePullSecrets | nindent 8 }}
{{- end }}
3 changes: 3 additions & 0 deletions xenit-alfresco/templates/active-mq/mq-deployement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ spec:
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.mq.imagePullSecrets}}
{{ toYaml .Values.mq.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.persistentStorage.mq.enabled }}
volumes:
- name: data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,10 @@ spec:
{{- end }}
{{- end }}
imagePullSecrets:
- name: alfrescocred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.digitalWorkspace.imagePullSecrets}}
{{ toYaml .Values.digitalWorkspace.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
37 changes: 0 additions & 37 deletions xenit-alfresco/templates/docker-registry-secrets.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions xenit-alfresco/templates/helpers/_alfrescoImagePullSecret.tpl

This file was deleted.

5 changes: 0 additions & 5 deletions xenit-alfresco/templates/helpers/_privateImagePullSecret.tpl

This file was deleted.

4 changes: 3 additions & 1 deletion xenit-alfresco/templates/ooi/ooi-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ spec:
{{- end }}
{{- end }}
imagePullSecrets:
- name: alfrescocred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.ooi.imagePullSecrets}}
{{ toYaml .Values.ooi.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion xenit-alfresco/templates/postgres/postgresql-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ spec:
{{- end }}
{{- end }}
imagePullSecrets:
- name: privatecred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.postgresql.imagePullSecrets}}
{{ toYaml .Values.postgresql.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.persistentStorage.postgres.enabled }}
volumes:
- name: data
Expand Down
3 changes: 3 additions & 0 deletions xenit-alfresco/templates/share/share-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ spec:
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.share.imagePullSecrets}}
{{ toYaml .Values.share.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
4 changes: 3 additions & 1 deletion xenit-alfresco/templates/solr/solr-stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ spec:
mountPath: /opt/alfresco-search-services/data
subPath: solr/data
imagePullSecrets:
- name: privatecred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.solr.imagePullSecrets}}
{{ toYaml .Values.solr.imagePullSecrets | nindent 8 }}
{{- end }}
{{- with .Values.persistentStorage.solr }}
volumeClaimTemplates:
- metadata:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ spec:
{{- end }}
{{- end }}
imagePullSecrets:
- name: alfrescocred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.syncService.imagePullSecrets}}
{{ toYaml .Values.syncService.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,15 @@ spec:
mountPath: /tmp/Alfresco
{{- end }}
imagePullSecrets:
- name: alfrescocred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.transformServices.imagePullSecrets}}
{{ toYaml .Values.transformServices.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.transformServices.sharedFileStore.imagePullSecrets}}
{{ toYaml .Values.transformServices.sharedFileStore.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.persistentStorage.sharedFileStore.enabled }}
volumes:
- name: data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,10 @@ spec:
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.transformServices.imagePullSecrets}}
{{ toYaml .Values.transformServices.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.transformServices.transformCoreAio.imagePullSecrets}}
{{ toYaml .Values.transformServices.transformCoreAio.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,13 @@ spec:
{{- end }}
{{- end }}
imagePullSecrets:
- name: alfrescocred
{{- if .Values.general.imagePullSecrets}}
{{ toYaml .Values.general.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.transformServices.imagePullSecrets}}
{{ toYaml .Values.transformServices.imagePullSecrets | nindent 8 }}
{{- end }}
{{- if .Values.transformServices.transformRouter.imagePullSecrets}}
{{ toYaml .Values.transformServices.transformRouter.imagePullSecrets | nindent 8 }}
{{- end }}
{{- end }}
8 changes: 1 addition & 7 deletions xenit-alfresco/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,4 @@ persistentStorage:
storageClassName: ""
storage: 1
efs:
volumeHandle: ""

imageCredentials:
private:
registry: 'hub.xenit.eu'
alfresco:
registry: 'quay.io'
volumeHandle: ""

0 comments on commit 0dac4c2

Please sign in to comment.