Skip to content

Commit

Permalink
Get credentials before releasing docs controller image
Browse files Browse the repository at this point in the history
The build trigger for releasing the docs-controller-image failed with this error:

`error retrieving kubernetes dynamic client: getting client config for
dynamic client: Error creating kubeConfig: invalid configuration: no
configuration has been provided`

Explicitly getting the credentials should generate the correct
kubeconfig for skaffold. I tested locally with cloud-build-local and
this should work now.
  • Loading branch information
Priya Wadhwa committed Oct 26, 2018
1 parent bef7858 commit 3c4b131
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions deploy/webhook/cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
steps:
# Get cluster credentials
- name: gcr.io/k8s-skaffold/skaffold:v0.16.0
args:
- 'gcloud'
- 'container'
- 'clusters'
- 'get-credentials'
- 'docs'
- '--zone'
- 'us-west2-a'
- '--project'
- 'k8s-skaffold'
# Build and push the image with the :commit_sha tag
- name: gcr.io/k8s-skaffold/skaffold:v0.16.0
args:
Expand Down

0 comments on commit 3c4b131

Please sign in to comment.