Commit 5974f6f6 authored by Viktor Nagy's avatar Viktor Nagy

Indentation and generated path fix

parent 862b42d3
...@@ -30,7 +30,7 @@ To create the Tunnel: ...@@ -30,7 +30,7 @@ To create the Tunnel:
.kubectl_config: &kubectl_config .kubectl_config: &kubectl_config
- | - |
cat << EOF > "$HOME/agent_config.yaml" cat << EOF > "$CI_PROJECT_DIR/.kubeconfig.agent.yaml"
apiVersion: v1 apiVersion: v1
kind: Config kind: Config
clusters: clusters:
...@@ -48,12 +48,11 @@ To create the Tunnel: ...@@ -48,12 +48,11 @@ To create the Tunnel:
name: agent name: agent
current-context: agent current-context: agent
EOF EOF
- export KUBECONFIG="$KUBECONFIG:$HOME/agent_config.yaml"
deploy: deploy:
script: script:
- *kubectl_config - *kubectl_config
- kubectl get pods - kubectl --kubeconfig="$CI_PROJECT_DIR/.kubeconfig.agent.yaml" get pods
``` ```
1. Execute `kubectl` commands directly against your cluster with this CI/CD job you just created. 1. Execute `kubectl` commands directly against your cluster with this CI/CD job you just created.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment