fix: 🏷️ Ensure username is returned by `get_username` as a string (kubeflow/kubeflow#7457)

In order to maintain consistency and compatibility, explicitly convert the 'username' variable to a string using the str() function before returning it. This ensures that the function consistently provides a string representation of the username, addressing potential variations in the original data type.

https://github.com/kubeflow/kubeflow/issues/7456

Update authn.py

Update notebook_template.yaml
This commit is contained in:
Pavel Klyuev 2024-01-27 20:04:16 +03:00 committed by GitHub
parent e7f468d924
commit e572eb9dd4
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ metadata:
app: {name} app: {name}
annotations: annotations:
notebooks.kubeflow.org/server-type: "" notebooks.kubeflow.org/server-type: ""
notebooks.kubeflow.org/creator: {creator} notebooks.kubeflow.org/creator: "{creator}"
spec: spec:
template: template:
spec: spec: