Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuration of pull secrets #141

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions charts/geonode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.1.3, Geoserver: 2.23.0, p
| geonode.haystack.search_results_per_page | string | `"200"` | hystack results per page |
| geonode.image.name | string | `"52north/geonode"` | used geonode image |
| geonode.image.tag | string | `"4.1.3"` | tag of used geonode image |
| geonode.imagePullSecret | string | `""` | secret to use to pull geonode image |
| geonode.ingress.annotations | object | `{}` | adds ingress annotations for nginx ingress class |
| geonode.ingress.enabled | bool | `true` | enables external access |
| geonode.ingress.ingressClassName | string | `nil` | define kubernetes ingress class for geonode ingress |
Expand Down Expand Up @@ -141,6 +142,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.1.3, Geoserver: 2.23.0, p
| geoserver.container_name | string | `"geoserver"` | geoserver container name |
| geoserver.image.name | string | `"geonode/geoserver"` | geoserver image docker image (default in zalf namespace because geonode one was not up to date) |
| geoserver.image.tag | string | `"2.23.0"` | geoserver docker image tag |
| geoserver.imagePullSecret | string | `""` | secret to use to pull geoserver image |
| geoserver.pod_name | string | `"geoserver"` | geoserver pod name |
| geoserver.port | int | `8080` | geoserver port |
| geoserver.resources.limits.cpu | int | `2` | limit cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
Expand All @@ -159,6 +161,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.1.3, Geoserver: 2.23.0, p
| nginx.external_cors.enabled | bool | `false` | Add Access-Control-Allow-Origin directive to allow integration from an external domain |
| nginx.image.name | string | `"nginx"` | nginx docker image |
| nginx.image.tag | string | `"1.25"` | nginx docker image tag |
| nginx.imagePullSecret | string | `""` | secret to use to pull nginx image |
| nginx.maxClientBodySize | string | `"2G"` | max file upload size |
| nginx.pod_name | string | `"nginx"` | nginx pod name |
| nginx.replicaCount | int | `1` | nginx container replicas |
Expand Down Expand Up @@ -201,6 +204,7 @@ Helm Chart for Geonode. Supported versions: Geonode: 4.1.3, Geoserver: 2.23.0, p
| pycsw.endpoint | string | `"/catalogue/csw"` | pycsw url below geonode.ingress.externalDomain |
| pycsw.image.name | string | `"geopython/pycsw"` | pycsw docker image |
| pycsw.image.tag | string | `"2.6.1"` | pycsw docker image tag |
| pycsw.imagePullSecret | string | `""` | secret to use to pull pycsw image |
| pycsw.mappings | string | copied from 4.1.x: https://github.com/GeoNode/geonode/blob/master/geonode/catalogue/backends/pycsw_local_mappings.py | pycsw config file parameters, see docs: https://docs.pycsw.org/_/downloads/en/latest/pdf/ |
| pycsw.pod_name | string | `"pysw"` | pycsw pod name |
| pycsw.port | int | `8000` | pycsw endpoint port |
Expand Down
5 changes: 5 additions & 0 deletions charts/geonode/templates/geonode/geonode-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ spec:
spec:
terminationGracePeriodSeconds: 3

{{- if not (empty .Values.geonode.imagePullSecret) }}
imagePullSecrets:
- name: {{ .Values.geonode.imagePullSecret }}
{{ end }}

initContainers:
# Wait for Postgres and rabbit
- name: geonode-wait-for-db-and-rabbit
Expand Down
5 changes: 5 additions & 0 deletions charts/geonode/templates/geoserver/geoserver-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ spec:
- name: geoserver-notifier-xml
mountPath: /overrides

{{- if not (empty .Values.geoserver.imagePullSecret) }}
imagePullSecrets:
- name: {{ .Values.geoserver.imagePullSecret }}
{{ end }}

containers:
- name: {{ .Values.geoserver.container_name }}
image: "{{ .Values.geoserver.image.name }}:{{ .Values.geoserver.image.tag }}"
Expand Down
5 changes: 5 additions & 0 deletions charts/geonode/templates/nginx/nginx-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
spec:
terminationGracePeriodSeconds: 3

{{- if not (empty .Values.nginx.imagePullSecret) }}
imagePullSecrets:
- name: {{ .Values.nginx.imagePullSecret }}
{{ end }}

containers:
- name: {{ .Values.nginx.container_name }}
image: "{{ .Values.nginx.image.name }}:{{ .Values.nginx.image.tag }}"
Expand Down
6 changes: 6 additions & 0 deletions charts/geonode/templates/pycsw/pycsw-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ spec:
checksum/pycsw-mappings-py: {{ include (print $.Template.BasePath "/pycsw/pycsw-mappings-py.yaml") . | sha256sum }}
spec:
terminationGracePeriodSeconds: 3

{{- if not (empty .Values.pycsw.imagePullSecret) }}
imagePullSecrets:
- name: {{ .Values.pycsw.imagePullSecret }}
{{ end }}

initContainers:
# Wait for GeoNode to be up and running, else there can be a race conddition where pycsw creates the database table,
# and lets crash init process of geonode
Expand Down
14 changes: 14 additions & 0 deletions charts/geonode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ geonode:
# -- tag of used geonode image
tag: "4.1.3"

# -- pull secret to use for geonode image
imagePullSecret: ""

# -- additions to tasks.py init script, must be additional code written in python
tasks_pre_script: |
print("tasks_pre_script not defined ...")
Expand Down Expand Up @@ -330,6 +333,9 @@ geoserver:
# -- geoserver port
port: 8080

# -- pull secret to use for geoserver image
imagePullSecret: ""

secret:
# -- name of an existing Secret to use. Set, if you want to separately maintain the Secret.
existingSecretName: ""
Expand Down Expand Up @@ -358,6 +364,10 @@ nginx:
container_name: nginx
# -- nginx container replicas
replicaCount: 1

# -- pull secret to use for nginx image
imagePullSecret: ""

image:
# -- nginx docker image
name: nginx
Expand Down Expand Up @@ -392,6 +402,10 @@ pycsw:
replicaCount: 1
# -- pycsw container name
container_name: pycsw

# -- pull secret to use for pycsw image
imagePullSecret: ""

image:
# -- pycsw docker image
name: geopython/pycsw
Expand Down
Loading