airshipctl/tools/deployment/templates/kubeconfig_template
Kostiantyn Kalynovskyi f4baf5a971 Switch to using phase documents
This commit allows to stop using phases with hardcoded paths to
kustomize entrypoints. Instead we use phase documents defined
in bundles. Phase document has a reference to executor such as
kubernetes apply and clusterctl init. More executors are being
developed

Relates-To: #342

Change-Id: I8babd9d0379763773c443e263373e9816f9dbd39
2020-09-16 11:17:41 -05:00

32 lines
919 B
Plaintext

apiVersion: v1
clusters:
- cluster:
certificate-authority-data: ${EPHEMERAL_CONFIG_CA_DATA}
server: https://${EPHEMERAL_IP}:6443
name: ephemeral-cluster_ephemeral
- cluster:
certificate-authority-data: ${TARGET_CONFIG_CA_DATA}
server: https://${TARGET_IP}:6443
name: target-cluster_target
contexts:
- context:
cluster: ephemeral-cluster_ephemeral
user: ephemeral-cluster-admin
name: ephemeral-cluster
- context:
cluster: target-cluster_target
user: target-cluster-admin
name: target-cluster
current-context: ephemeral-cluster
kind: Config
preferences: {}
users:
- name: ephemeral-cluster-admin
user:
client-certificate-data: ${EPHEMERAL_CONFIG_CLIENT_CERT_DATA}
client-key-data: ${EPHEMERAL_CONFIG_CLIENT_KEY_DATA}
- name: target-cluster-admin
user:
client-certificate-data: ${TARGET_CONFIG_CLIENT_CERT_DATA}
client-key-data: ${TARGET_CONFIG_CLIENT_KEY_DATA}