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

In template-jupyterhub.yaml should be dictionary for subjects #5

Open
rgr19 opened this issue Feb 4, 2021 · 1 comment
Open

In template-jupyterhub.yaml should be dictionary for subjects #5

rgr19 opened this issue Feb 4, 2021 · 1 comment

Comments

@rgr19
Copy link

rgr19 commented Feb 4, 2021

Correct would be

- apiVersion: authorization.openshift.io/v1
  kind: RoleBinding
  metadata:
    name: ${APPLICATION_NAME}-edit
    labels:
      app: ${APPLICATION_NAME}
  subjects:
    - kind: ServiceAccount
      name: jupyter

Otherwise I had error:

$OC -n datascience apply -f ./config/template-jupyterhub.yaml && $OC -n datascience new-app --template jupyterhub --param APPLICATION_NAME=jupyter --dry-run
template.template.openshift.io/jupyterhub configured
error: error processing template "datascience/jupyterhub": v1.RoleBinding.Subjects: decode slice: expect [ or n, but found {, error found in #10 byte of ...|"jupyter"}}|..., bigger context ...|bjects":{"kind":"ServiceAccount","name":"jupyter"}}|...

@rgr19
Copy link
Author

rgr19 commented Feb 4, 2021

With that changes its passing validation

--> Deploying template "datascience/jupyterhub" to project datascience

 JupyterHub
 ---------
 Template for deploying a customized JupyterHub instance.

 * With parameters:
    * APPLICATION_NAME=jupyter
    * JUPYTERHUB_IMAGE=docker.io/orcunuso/jupyterhub:20200415
    * NOTEBOOK_IMAGE=docker.io/orcunuso/jupyternb-cpu:20200415
    * NOTEBOOK_CPU_REQUEST=0.5
    * NOTEBOOK_CPU_LIMIT=3
    * NOTEBOOK_MEM_REQUEST=4Gi
    * NOTEBOOK_MEM_LIMIT=16Gi
    * JUPYTERHUB_CONFIG=
    * DATABASE_PASSWORD=8ybp5SU1k0TvyrES # generated
    * COOKIE_SECRET=0cba8471e8a1b6a3c3873768d252dd78 # generated
    * DATABASE_DISKSIZE=5Gi
    * DATABASE_IMAGE=registry.redhat.io/rhscl/postgresql-96-rhel7:1-53
    * K8S_TOLERATION=datascience-node

--> Creating resources ...
configmap "jupyter-cfg" created (dry run)
serviceaccount "jupyter" created (dry run)
rolebinding.authorization.openshift.io "jupyter-edit" created (dry run)
deploymentconfig.apps.openshift.io "jupyter" created (dry run)
service "jupyter" created (dry run)
route.route.openshift.io "jupyter" created (dry run)
persistentvolumeclaim "jupyter-db" created (dry run)
deploymentconfig.apps.openshift.io "jupyter-db" created (dry run)
service "jupyter-db" created (dry run)
--> Success (dry run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant