diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-06-16 22:15:40 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-06-16 22:15:40 +0800 |
commit | 07a65da1d96a71474f6997aed95bac6290d81a42 (patch) | |
tree | eb45df72c20e76d087a0ee4fe8e1bbbe7efb19c9 /spec/fixtures | |
parent | bcb7d88504f4f99a4e359730f342e1a88392508a (diff) | |
download | gitlab-ce-07a65da1d96a71474f6997aed95bac6290d81a42.tar.gz |
Generate KUBECONFIG in KubernetesService#predefined_variables
Diffstat (limited to 'spec/fixtures')
-rw-r--r-- | spec/fixtures/config/kubeconfig-without-ca.yml | 18 | ||||
-rw-r--r-- | spec/fixtures/config/kubeconfig.yml | 19 |
2 files changed, 37 insertions, 0 deletions
diff --git a/spec/fixtures/config/kubeconfig-without-ca.yml b/spec/fixtures/config/kubeconfig-without-ca.yml new file mode 100644 index 00000000000..b2cb989d548 --- /dev/null +++ b/spec/fixtures/config/kubeconfig-without-ca.yml @@ -0,0 +1,18 @@ +--- +apiVersion: v1 +clusters: +- name: gitlab-deploy + cluster: + server: https://kube.domain.com +contexts: +- name: gitlab-deploy + context: + cluster: gitlab-deploy + namespace: NAMESPACE + user: gitlab-deploy +current-context: gitlab-deploy +kind: Config +users: +- name: gitlab-deploy + user: + token: TOKEN diff --git a/spec/fixtures/config/kubeconfig.yml b/spec/fixtures/config/kubeconfig.yml new file mode 100644 index 00000000000..4fa52818fee --- /dev/null +++ b/spec/fixtures/config/kubeconfig.yml @@ -0,0 +1,19 @@ +--- +apiVersion: v1 +clusters: +- name: gitlab-deploy + cluster: + server: https://kube.domain.com + certificate-authority-data: PEM +contexts: +- name: gitlab-deploy + context: + cluster: gitlab-deploy + namespace: NAMESPACE + user: gitlab-deploy +current-context: gitlab-deploy +kind: Config +users: +- name: gitlab-deploy + user: + token: TOKEN |