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

k8s: script to setup admin user #325

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

JenySadadia
Copy link
Collaborator

Added a script kube/minikube/scripts/setup_admin_user.sh to setup an admin user for k8s API instance.
At first, the script will get the pod name of kernelci-api service running on Minikube. Then it will run api.admin module inside the pod container to create an admin user.

@JenySadadia
Copy link
Collaborator Author

After creating the admin user using the script, it can be used to get KCI_API_TOKEN for pipeline instance.

@JenySadadia JenySadadia force-pushed the k8s-create-admin-user branch 2 times, most recently from b902cde to fa4bfc0 Compare August 14, 2023 08:50
@JenySadadia JenySadadia force-pushed the k8s-create-admin-user branch from fa4bfc0 to 0266114 Compare September 1, 2023 13:46
@JenySadadia
Copy link
Collaborator Author

Rebased the PR.

Setup an admin user for k8s API instance running
on Minikube.

Signed-off-by: Jeny Sadadia <[email protected]>
Copy link
Contributor

@gctucker gctucker left a comment

Choose a reason for hiding this comment

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

OK let's assume this is fine for now, then I think it'll be specific to MiniKube as for AKS we might do something different since the Atlas database is publicly available.

@gctucker gctucker added this pull request to the merge queue Sep 15, 2023
Merged via the queue into kernelci:main with commit 9f19133 Sep 15, 2023
4 checks passed
@JenySadadia JenySadadia deleted the k8s-create-admin-user branch September 15, 2023 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants