File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -103,14 +103,13 @@ export TF_VAR_git_organization="octopuscac"
103
103
if which minikube
104
104
then
105
105
# If the kube config file does not exist, we need to recreate the minikube cluster.
106
- # Because the file is in /tmp, it will get cleaned up automatically at some point.
107
- if [[ ! -f /tmp/octoconfig.yml ]]
106
+ if [[ ! -f /$HOME /octoconfig.yml ]]
108
107
then
109
108
minikube delete
110
109
fi
111
110
112
111
# KUBECONFIG is the environment variable that defines the path for a k8s config file for all k8s tooling
113
- export KUBECONFIG=/tmp /octoconfig.yml
112
+ export KUBECONFIG=/$HOME /octoconfig.yml
114
113
115
114
# It is not uncommon for minikube to fail to start, especially if the docker stack and its network is started.
116
115
# This retry loop will attempt to start minikube, and on failure to a hard cleanup and try again.
148
147
CLUSTER_PORT=" 8443"
149
148
150
149
# Extract the client certificate data
151
- CLIENT_CERTIFICATE=$( docker run --rm -v /tmp :/workdir mikefarah/yq ' .users[0].user.client-certificate' octoconfig.yml)
152
- CLIENT_KEY=$( docker run --rm -v /tmp :/workdir mikefarah/yq ' .users[0].user.client-key' octoconfig.yml)
150
+ CLIENT_CERTIFICATE=$( docker run --rm -v /$HOME /octoconfig.yml :/workdir/octoconfig.yml:Z mikefarah/yq ' .users[0].user.client-certificate' octoconfig.yml)
151
+ CLIENT_KEY=$( docker run --rm -v /$HOME /octoconfig.yml :/workdir/octoconfig.yml:Z mikefarah/yq ' .users[0].user.client-key' octoconfig.yml)
153
152
154
153
# Create a self contained PFX certificate
155
154
openssl pkcs12 -export -name ' test.com' -password ' pass:Password01!' -out /tmp/kind.pfx -inkey " ${CLIENT_KEY} " -in " ${CLIENT_CERTIFICATE} "
You can’t perform that action at this time.
0 commit comments