Skip to content

Commit ab589fc

Browse files
committed
[shiftstack]Switch incluster-kubeconfig to admin context
By switching to the admin context we facilitate the usage of the kubeconfig in the shiftstackclient pod.
1 parent d619b49 commit ab589fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

roles/shiftstack/tasks/deploy_shiftstackclient_pod.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17+
- name: Switch context to admin on {{ cifmw_openshift_kubeconfig }}
18+
ansible.builtin.command: oc config use-context admin --kubeconfig={{ cifmw_openshift_kubeconfig }}
19+
changed_when: true
20+
1721
- name: Encode kubeconfig file to Base64
1822
ansible.builtin.set_fact:
1923
incluster_kubeconfig_base64: "{{ lookup('ansible.builtin.file', cifmw_openshift_kubeconfig ) | b64encode }}"

0 commit comments

Comments
 (0)