-
Notifications
You must be signed in to change notification settings - Fork 112
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
[OSASINFRA] Add the rhoso kubeconfig to the shiftstack client pod #2576
[OSASINFRA] Add the rhoso kubeconfig to the shiftstack client pod #2576
Conversation
Hi @itzikb-redhat. Thanks for your PR. I'm waiting for a openstack-k8s-operators member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Thanks for the PR! ❤️ |
roles/shiftstack/defaults/main.yml
Outdated
@@ -31,6 +31,7 @@ cifmw_shiftstack_manifests_dir: "{{ cifmw_shiftstack_basedir }}/manifests" | |||
cifmw_shiftstack_project_name: "shiftstack" | |||
cifmw_shiftstack_qa_gerrithub_change: "" | |||
cifmw_shiftstack_qa_repo: "https://review.gerrithub.io/shiftstack/shiftstack-qa" | |||
cifmw_shiftstack_rhoso_kubeconfig : "{{ cifmw_shiftstack_shiftstackclient_installation_dir }}/rhoso_kubeconfig" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set the order so the cifmw_shiftstack_shiftstackclient_installation_dir
is defined before use.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that from functionality perspective it doesn't matter and I want to have the variables in alphabetical order, wdyt?
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ac2b82550ca74cf3a011b2139d4e57e1 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 53m 13s |
459a04c
to
6e2be3a
Compare
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Itzik, can you please add the PR description? I added a couple of minor comments too
6e2be3a
to
36c5503
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/4d22cb46c67e408b8949557e88ecc5c7 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 18m 19s |
36c5503
to
c004f84
Compare
The job failed on a timeout downloading the client and installer but the kubeconfig is there |
/lgtm |
I think you can acomplish this by playing the shiftstackclient manifest instead of manually copying |
|
roles/shiftstack/defaults/main.yml
Outdated
@@ -35,3 +37,4 @@ cifmw_shiftstack_run_playbook: "ocp_testing.yaml" | |||
cifmw_shiftstack_sc: "local-storage" | |||
cifmw_shiftstack_shiftstackclient_artifacts_dir: "/home/cloud-admin/artifacts" | |||
cifmw_shiftstack_shiftstackclient_installation_dir: "{{ cifmw_shiftstack_shiftstackclient_artifacts_dir }}/installation" | |||
cifmw_shiftstack_shiftstackclient_incluster_kubeconfig_dir: "/home/cloud-admin/kubeconfig" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you think this filename could not be descriptive enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified
dfc0238
to
e59bde6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Itzik, can you please adapt the PR title (it's not being copied now but mounted) and add a descriptive PR description?
4d133df
to
5c3fd12
Compare
I updated - is it ok ? |
I would add in the PR description how the kubeconfig is mounted in the pod as a secret type volume. Thx! |
5c3fd12
to
613a050
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/bf209bc54b3e4cdbaeb3a7806df1f2e5 ❌ openstack-k8s-operators-content-provider NODE_FAILURE Node request 100-0007705192 failed in 0s |
recheck |
Create a secret from the file and add it as a volume to the pod
613a050
to
8498c98
Compare
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pablintino The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
63f8e1b
into
openstack-k8s-operators:main
/cherry-pick 18.0-fr1 |
@eurijon: #2576 failed to apply on top of branch "18.0-fr1":
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Manual cherry-pick on #2666 |
Add the kube config of RHOSO to shiftstack client pod in order to access the clusterץ
Create a secret with the content of the kubeconfig.
Mount the secret as a volume in the shiftstackclient pod.
The kubeconfig can then be accessed from
cifmw_shiftstack_shiftstackclient_incluster_kubeconfig_dir
directory