Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Adds Postgres Manifests and removes Postgres Helm Chart dependency #151

Merged
merged 20 commits into from
Aug 4, 2021

Conversation

Abhi94N
Copy link
Contributor

@Abhi94N Abhi94N commented Jul 31, 2021

  1. Adds Postgres Manifests files
  2. Creates secrets for Hub and Grader Setup Service
  3. Updates Readme, secrets, and configmaps for postgres accordingly
  4. Removed JUPYTERHUB_API_URL configuration as that is set by default

closes #44

mostly closes ##53 as it creates the appropriate secrets so secret values can be passed as envar references. This works for every secret value except POSTGRES_NBGRADER_PASSWORD

@Abhi94N Abhi94N added the enhancement New feature or request label Jul 31, 2021
@Abhi94N Abhi94N requested a review from jgwerner July 31, 2021 02:52
@Abhi94N Abhi94N self-assigned this Jul 31, 2021
Copy link
Member

@jgwerner jgwerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Abhi94N I had some minor observations but other than that things look ok.

@@ -134,8 +134,11 @@ spec:
configMapKeyRef:
name: hub-illumidesk-cm
key: POSTGRES_NBGRADER_USER
- name: POSTGRES_NBGRADER_PASSWORD
value: {{ .Values.graderSetupService.postgresNBGraderPassword | default "illumidesk" }}
- name: NBGRADER_PASSWORD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our graderservice source code only understands POSTGRES_NBGRADER_PASSWORD.

JUPYTERHUB_API_TOKEN: {{ .Values.illumideskSettings.jupyterhubAPIToken | default "" | b64enc | quote }}
JUPYTERHUB_CRYPT_KEY: {{ .Values.illumideskSettings.jupyterhubCryptKey | default "" | b64enc | quote }}
POSTGRES_JUPYTERHUB_PASSWORD: {{ .Values.illumideskSettings.postgresHubPassword | default "postgres" | quote}}
NBGRADER_PASSWORD: {{ .Values.illumideskSettings.postgresGraderPassword | default "postgres" | quote}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, we should change this value to POSTGRES_NBGRADER_PASSWORD in all locations (secrets and cm's).

resources:
requests:
cpu: 100m
memory: 100Mi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove requests values and set limits to have an upper bound limit. We should also surface these settings in our values.yaml and update the README.md with these options.

valueFrom:
secretKeyRef:
name: hub-illumidesk-secret
key: NBGRADER_PASSWORD
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to POSTGRES_NBGRADER_PASSWORD.

@Abhi94N
Copy link
Contributor Author

Abhi94N commented Aug 4, 2021

Cannot complete grader e2e test as this image does not have grader console tab in grader container
image

@Abhi94N Abhi94N requested a review from jgwerner August 4, 2021 00:20
Copy link
Member

@jgwerner jgwerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jgwerner jgwerner merged commit 281c80b into IllumiDesk:main Aug 4, 2021
@Abhi94N Abhi94N deleted the refactor/secret-envars branch August 9, 2021 21:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor Postgres template settings
2 participants