From cee5d69944a776c5a7dbbb9b37da43d89571b128 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Mon, 18 Dec 2023 19:20:55 -0800 Subject: [PATCH] Decom neurohackademy Fixes https://github.com/2i2c-org/infrastructure/issues/3400 --- config/clusters/2i2c/cluster.yaml | 11 -- .../clusters/2i2c/neurohackademy.values.yaml | 120 ------------------ 2 files changed, 131 deletions(-) delete mode 100644 config/clusters/2i2c/neurohackademy.values.yaml diff --git a/config/clusters/2i2c/cluster.yaml b/config/clusters/2i2c/cluster.yaml index 9ba7478c07..195a51d027 100644 --- a/config/clusters/2i2c/cluster.yaml +++ b/config/clusters/2i2c/cluster.yaml @@ -116,17 +116,6 @@ hubs: - basehub-common.values.yaml - climatematch.values.yaml - enc-climatematch.secret.values.yaml - - name: neurohackademy - display_name: "Neurohackademy" - domain: neurohackademy.2i2c.cloud - helm_chart: basehub - helm_chart_values_files: - # The order in which you list files here is the order the will be passed - # to the helm upgrade command in, and that has meaning. Please check - # that you intend for these files to be applied in this order. - - basehub-common.values.yaml - - enc-neurohackademy.secret.values.yaml - - neurohackademy.values.yaml - name: mtu display_name: "Michigan Technological University" domain: mtu.2i2c.cloud diff --git a/config/clusters/2i2c/neurohackademy.values.yaml b/config/clusters/2i2c/neurohackademy.values.yaml deleted file mode 100644 index 4db1082b4f..0000000000 --- a/config/clusters/2i2c/neurohackademy.values.yaml +++ /dev/null @@ -1,120 +0,0 @@ -jupyterhub: - ingress: - hosts: - - neurohackademy.2i2c.cloud - tls: - - secretName: https-auto-tls - hosts: - - neurohackademy.2i2c.cloud - custom: - 2i2c: - add_staff_user_ids_to_admin_users: true - add_staff_user_ids_of_type: "github" - homepage: - templateVars: - org: - name: NeuroHackademy - url: https://neurohackademy.org/ - logo_url: https://user-images.githubusercontent.com/118582/178122521-aa5b83e7-f898-415a-89ff-dc288f599b4f.png - designed_by: - name: 2i2c - url: https://2i2c.org - operated_by: - name: 2i2c - url: https://2i2c.org - funded_by: - name: The National Institutes of Health grant 2R25MH112480-06 - url: https://reporter.nih.gov/search/ydTvTwXxk0yd6eGdRznbLQ/project-details/10409452 - singleuser: - extraFiles: - gitconfig: - mountPath: /srv/conda/envs/notebook/etc/gitconfig - stringData: | - [credential "https://github.com"] - helper = !git-credential-github-app --app-key-file /etc/github/github-app-private-key.pem --app-id 356717 - useHttpPath = true - # User image: https://quay.io/repository/arokem/nh2023?tab=tags - image: - name: quay.io/arokem/nh2023 - tag: "894883dfb3bd" - nodeSelector: - 2i2c.org/community: neurohackademy - extraTolerations: - - key: "2i2c.org/community" - operator: "Equal" - value: "neurohackademy" - effect: "NoSchedule" - cpu: - guarantee: 0.5 - # We're on n2-highmem-16 machines - limit: 14 - memory: - guarantee: 4G - limit: 16G - hub: - config: - JupyterHub: - authenticator_class: cilogon - CILogonOAuthenticator: - oauth_callback_url: https://neurohackademy.2i2c.cloud/hub/oauth_callback - allowed_idps: - http://github.com/login/oauth/authorize: - default: true - username_derivation: - username_claim: "preferred_username" - OAuthenticator: - # WARNING: Don't use allow_existing_users with config to allow an - # externally managed group of users, such as - # GitHubOAuthenticator.allowed_organizations, as it breaks a - # common expectations for an admin user. - # - # The broken expectation is that removing a user from the - # externally managed group implies that the user won't have - # access any more. In practice the user will still have - # access if it had logged in once before, as it then exists - # in JupyterHub's database of users. - # - allow_existing_users: True - Authenticator: - # WARNING: Removing a user from admin_users or allowed_users doesn't - # revoke admin status or access. - # - # OAuthenticator.allow_existing_users allows any user in the - # JupyterHub database of users able to login. This includes - # any previously logged in user or user previously listed in - # allowed_users or admin_users, as such users are added to - # JupyterHub's database on startup. - # - # To revoke admin status or access for a user when - # allow_existing_users is enabled, first remove the user from - # admin_users or allowed_users, then deploy the change, and - # finally revoke the admin status or delete the user via the - # /hub/admin panel. - # - admin_users: - - arokem - extraFiles: - configurator-schema-default: - data: - properties: - Spawner.default_url: - type: string - title: Default User Interface - enum: - - "/tree" - - "/lab" - - "/git-pull?repo=https%3A%2F%2Fgithub.com%2FNeuroHackademy-2023%2Fcurriculum&urlpath=lab&branch=main" - default: "/git-pull?repo=https%3A%2F%2Fgithub.com%2FNeuroHackademy-2023%2Fcurriculum&urlpath=lab&branch=main" - enumMetadata: - interfaces: - - value: "/tree" - title: Classic Notebook - description: - The original single-document interface for creating - Jupyter Notebooks. - - value: "/lab" - title: JupyterLab - description: A Powerful next generation notebook interface - - value: "/git-pull?repo=https%3A%2F%2Fgithub.com%2FNeuroHackademy-2023%2Fcurriculum&urlpath=lab&branch=main" - title: Pull curriculum repo and redirect to /lab - description: Use ngbitpuller to pull https://github.com/NeuroHackademy-2023/curriculum and redirect to /lab afterwards