Skip to content

Commit 844261f

Browse files
authored
Fix credentials retrieval (#826)
* fix: credentials retrieval * fix: peer review fixes * update goldens * feat: update task name
1 parent 3ca9359 commit 844261f

16 files changed

+146
-113
lines changed

goldens/Basic_cluster_create.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ gcloud container clusters list --project=golden-project --filter=name=golden-clu
1616
gcloud container clusters describe golden-cluster --project=golden-project --location=us-central1 --format="value(privateClusterConfig.enablePrivateNodes)"
1717
[XPK] Private Nodes is not enabled on the cluster.
1818
[XPK] Cluster is public and no need to authorize networks.
19-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
2019
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
2120
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
22-
[XPK] Testing credentials with kubectl...
23-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
21+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2422
kubectl get pods
25-
[XPK] Credentials test succeeded.
2623
[XPK] Finished get-credentials and kubectl setup.
2724
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
2825
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Batch.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ $ xpk batch --project=golden-project --zone=us-central1-a --cluster=golden-clust
33
[XPK] Working on golden-project and us-central1-a
44
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
55
gcloud container clusters list --project=golden-project --filter=name=golden-cluster --format="value(location)"
6-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
76
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
87
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
9-
[XPK] Testing credentials with kubectl...
10-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
8+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
119
kubectl get pods
12-
[XPK] Credentials test succeeded.
1310
[XPK] Finished get-credentials and kubectl setup.
1411
[XPK] Task: `GKE Cluster Get ConfigMap` is implemented by the following command not running since it is a dry run.
1512
kubectl get configmap golden-cluster-resources-configmap -o=custom-columns="ConfigData:data" --no-headers=true

goldens/Cluster_create_for_multi-host_nodepool.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ gcloud container clusters list --project=golden-project --filter=name=golden-clu
1616
gcloud container clusters describe golden-cluster --project=golden-project --location=us-central1 --format="value(privateClusterConfig.enablePrivateNodes)"
1717
[XPK] Private Nodes is not enabled on the cluster.
1818
[XPK] Cluster is public and no need to authorize networks.
19-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
2019
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
2120
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
22-
[XPK] Testing credentials with kubectl...
23-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
21+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2422
kubectl get pods
25-
[XPK] Credentials test succeeded.
2623
[XPK] Finished get-credentials and kubectl setup.
2724
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
2825
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Cluster_create_private.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,10 @@ gcloud container clusters describe golden-cluster-private --project=golden-proje
1818
[XPK] Task: `Fetching the list of authorized network from cluster describe.` is implemented by the following command not running since it is a dry run.
1919
gcloud container clusters describe golden-cluster-private --project=golden-project --location=us-central1 --format="value(masterAuthorizedNetworksConfig.cidrBlocks[].cidrBlock)"
2020
[XPK] Current machine's IP adrress is already authorized.
21-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster-private
2221
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster-private` is implemented by the following command not running since it is a dry run.
2322
gcloud container clusters get-credentials golden-cluster-private --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
24-
[XPK] Testing credentials with kubectl...
25-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
23+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2624
kubectl get pods
27-
[XPK] Credentials test succeeded.
2825
[XPK] Finished get-credentials and kubectl setup.
2926
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
3027
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Cluster_create_with_CPU_and_memory_limits_above_capacity.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ gcloud container clusters list --project=golden-project --filter=name=golden-clu
1616
gcloud container clusters describe golden-cluster --project=golden-project --location=us-central1 --format="value(privateClusterConfig.enablePrivateNodes)"
1717
[XPK] Private Nodes is not enabled on the cluster.
1818
[XPK] Cluster is public and no need to authorize networks.
19-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
2019
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
2120
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
22-
[XPK] Testing credentials with kubectl...
23-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
21+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2422
kubectl get pods
25-
[XPK] Credentials test succeeded.
2623
[XPK] Finished get-credentials and kubectl setup.
2724
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
2825
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Cluster_create_with_CPU_and_memory_limits_below_capacity.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ gcloud container clusters list --project=golden-project --filter=name=golden-clu
1616
gcloud container clusters describe golden-cluster --project=golden-project --location=us-central1 --format="value(privateClusterConfig.enablePrivateNodes)"
1717
[XPK] Private Nodes is not enabled on the cluster.
1818
[XPK] Cluster is public and no need to authorize networks.
19-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
2019
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
2120
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
22-
[XPK] Testing credentials with kubectl...
23-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
21+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2422
kubectl get pods
25-
[XPK] Credentials test succeeded.
2623
[XPK] Finished get-credentials and kubectl setup.
2724
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
2825
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Cluster_create_with_gb200-4.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ gcloud container clusters list --project=golden-project --filter=name=golden-clu
1616
gcloud container clusters describe golden-cluster --project=golden-project --location=us-central1 --format="value(privateClusterConfig.enablePrivateNodes)"
1717
[XPK] Private Nodes is not enabled on the cluster.
1818
[XPK] Cluster is public and no need to authorize networks.
19-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
2019
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
2120
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
22-
[XPK] Testing credentials with kubectl...
23-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
21+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2422
kubectl get pods
25-
[XPK] Credentials test succeeded.
2623
[XPK] Finished get-credentials and kubectl setup.
2724
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
2825
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Cluster_create_with_shared_reservation.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ gcloud container clusters list --project=golden-project --filter=name=golden-clu
1616
gcloud container clusters describe golden-cluster --project=golden-project --location=us-central1 --format="value(privateClusterConfig.enablePrivateNodes)"
1717
[XPK] Private Nodes is not enabled on the cluster.
1818
[XPK] Cluster is public and no need to authorize networks.
19-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
2019
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
2120
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
22-
[XPK] Testing credentials with kubectl...
23-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
21+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
2422
kubectl get pods
25-
[XPK] Credentials test succeeded.
2623
[XPK] Finished get-credentials and kubectl setup.
2724
[XPK] Task: 'Checking CoreDNS deployment existence' in progress for namespace: kube-system
2825
[XPK] Task: `Check CoreDNS deployment in kube-system` is implemented by the following command not running since it is a dry run.

goldens/Job_cancel.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,10 @@ $ xpk job cancel golden-job --project=golden-project --zone=us-central1-a --clus
44
[XPK] Working on golden-project and us-central1-a
55
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
66
gcloud container clusters list --project=golden-project --filter=name=golden-cluster --format="value(location)"
7-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
87
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
98
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
10-
[XPK] Testing credentials with kubectl...
11-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
9+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
1210
kubectl get pods
13-
[XPK] Credentials test succeeded.
1411
[XPK] Finished get-credentials and kubectl setup.
1512
[XPK] Task: `delete job` is implemented by the following command not running since it is a dry run.
1613
kubectl-kjob delete slurm golden-job

goldens/Job_list.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@ $ xpk job ls --project=golden-project --zone=us-central1-a --cluster=golden-clus
33
[XPK] Working on golden-project and us-central1-a
44
[XPK] Task: `Find cluster region or zone` is implemented by the following command not running since it is a dry run.
55
gcloud container clusters list --project=golden-project --filter=name=golden-cluster --format="value(location)"
6-
[XPK] Try 1: get-credentials-dns-endpoint to cluster golden-cluster
76
[XPK] Task: `get-credentials-dns-endpoint to cluster golden-cluster` is implemented by the following command not running since it is a dry run.
87
gcloud container clusters get-credentials golden-cluster --location=us-central1 --dns-endpoint --project=golden-project && kubectl config view && kubectl config set-context --current --namespace=default
9-
[XPK] Testing credentials with kubectl...
10-
[XPK] Task: `kubectl get pods` is implemented by the following command not running since it is a dry run.
8+
[XPK] Task: `Test kubectl credentials` is implemented by the following command not running since it is a dry run.
119
kubectl get pods
12-
[XPK] Credentials test succeeded.
1310
[XPK] Finished get-credentials and kubectl setup.
1411
[XPK] Listing jobs for project golden-project and zone us-central1-a:
1512
[XPK] Task: `list jobs` is implemented by the following command not running since it is a dry run.

0 commit comments

Comments
 (0)