Skip to content

Commit

Permalink
Configure secret creation via flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Sep 7, 2023
1 parent 9bfb972 commit a7fa6f7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion charts/geonode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ Helm Chart for Geonode a web-based application and platform for developing geosp
| geonode.resources.limits.memory | string | `"2Gi"` | limits memory as in resource.limits.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geonode.resources.requests.cpu | int | `1` | requested cpu as in resource.requests.cpu (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geonode.resources.requests.memory | string | `"1Gi"` | requested memory as in resource.requests.memory (https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) |
| geonode.secret.content | object | `{"email":"[email protected]","password":"geonode","username":"admin"}` | Values of the Secret. If empty, the Secret will not be created from template. In this case, you have to either create the Secret on your own (you may choose a different name). |
| geonode.secret.content | object | `{"superuser":{"email":"[email protected]","password":"geonode","username":"admin"}}` | Values of the Secret. If empty, the Secret will not be created from template. In this case, you have to either create the Secret on your own (you may choose a different name). |
| geonode.secret.createFromContent | bool | `true` | if Secret shall be created based on the values of `secret.content`. |
| geonode.secret.name | string | `"geonode-secret"` | name of the secret to use. Change, if you want to maintain them separately. |
| geonode.sentry.build_number | int | `0` | sentry build number |
| geonode.sentry.dsn | string | `""` | sentry dsn url |
Expand Down
2 changes: 1 addition & 1 deletion charts/geonode/templates/geonode/geonode-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.geonode.secret.content }}
{{- if .Values.geonode.secret.createFromContent }}
apiVersion: v1
kind: Secret
metadata:
Expand Down
9 changes: 6 additions & 3 deletions charts/geonode/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,14 @@ geonode:
secret:
# -- name of the secret to use. Change, if you want to maintain them separately.
name: geonode-secret
# -- if Secret shall be created based on the values of `secret.content`.
createFromContent: True
# -- Values of the Secret. If empty, the Secret will not be created from template. In this case, you have to either create the Secret on your own (you may choose a different name).
content:
username: admin
password: geonode
email: [email protected]
superuser:
username: admin
password: geonode
email: [email protected]

resources:
requests:
Expand Down

0 comments on commit a7fa6f7

Please sign in to comment.