We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c7ef8a + ec23297 commit c5d819aCopy full SHA for c5d819a
Taskfile.yml
@@ -11,8 +11,10 @@ vars:
11
sh: |
12
if [ -f "cluster/kind-config.yaml" ] && [ -f "components/flux/kustomization.yaml" ]; then
13
echo "./kubeconfig" # In test-infra repo
14
+ elif [ -n "$KUBECONFIG" ] && [ -f "$KUBECONFIG" ]; then
15
+ echo "$KUBECONFIG" # External repo: use KUBECONFIG env var if set and file exists
16
else
- echo ".test-infra/kubeconfig" # External repo
17
+ echo ".test-infra/kubeconfig" # External repo: default fallback
18
fi
19
# Detect if we're running in the test-infra repo or externally
20
REPO_DIR:
0 commit comments