Skip to content

Commit

Permalink
Rename context in kubeconfig-admin
Browse files Browse the repository at this point in the history
* Use the cluster_name as the kubeconfig context, cluster,
and user. Drop the trailing -context suffix
  • Loading branch information
dghubble committed Aug 5, 2024
1 parent 1609060 commit 45b6b7e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions resources/kubeconfig-admin
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
apiVersion: v1
kind: Config
clusters:
- name: ${name}-cluster
- name: ${name}
cluster:
server: ${server}
certificate-authority-data: ${ca_cert}
users:
- name: ${name}-user
- name: ${name}
user:
client-certificate-data: ${kubelet_cert}
client-key-data: ${kubelet_key}
current-context: ${name}-context
current-context: ${name}
contexts:
- name: ${name}-context
- name: ${name}
context:
cluster: ${name}-cluster
user: ${name}-user
cluster: ${name}
user: ${name}

0 comments on commit 45b6b7e

Please sign in to comment.