Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement 'skaffold render' for kubectl deployer #2943

Merged
merged 3 commits into from
Oct 2, 2019

Conversation

nkubala
Copy link
Contributor

@nkubala nkubala commented Sep 25, 2019

Relates to #1187
Example outputs:

➜  getting-started skaffold render
apiVersion: v1
kind: Pod
metadata:
  name: getting-started
  namespace: default
spec:
  containers:
  - image: gcr.io/k8s-skaffold/skaffold-example:v0.37.0-409-g16d01549d@sha256:ae2cf00b749df139b100fa5b671ec636ec75fa26950644ac9c7a6e077a8a0414
    name: getting-started


➜  getting-started skaffold run --render-only
Generating tags...
 - gcr.io/k8s-skaffold/skaffold-example -> gcr.io/nkubala-demo/gcr.io/k8s-skaffold/skaffold-example:v0.37.0-409-g16d01549d
Tags generated in 31.518799ms
Checking cache...
 - gcr.io/k8s-skaffold/skaffold-example: Found
Cache check complete in 604.78383ms
Tags used in deployment:
 - gcr.io/k8s-skaffold/skaffold-example -> gcr.io/k8s-skaffold/skaffold-example:v0.37.0-409-g16d01549d@sha256:ae2cf00b749df139b100fa5b671ec636ec75fa26950644ac9c7a6e077a8a0414
apiVersion: v1
kind: Pod
metadata:
  name: getting-started
  namespace: default
spec:
  containers:
  - image: gcr.io/k8s-skaffold/skaffold-example:v0.37.0-409-g16d01549d@sha256:ae2cf00b749df139b100fa5b671ec636ec75fa26950644ac9c7a6e077a8a0414
    name: getting-started

@codecov
Copy link

codecov bot commented Sep 25, 2019

Codecov Report

Merging #2943 into master will decrease coverage by 0.03%.
The diff coverage is 36.95%.

Impacted Files Coverage Δ
pkg/skaffold/deploy/kubectl/cli.go 94.11% <ø> (-0.17%) ⬇️
pkg/skaffold/deploy/kubectl.go 64.17% <36.95%> (-1.37%) ⬇️

pkg/skaffold/deploy/kubectl.go Show resolved Hide resolved
integration/render_test.go Show resolved Hide resolved
Copy link
Contributor

@tejal29 tejal29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM except 1 nit.

pkg/skaffold/deploy/kubectl.go Outdated Show resolved Hide resolved
@nkubala nkubala merged commit 08551a7 into GoogleContainerTools:master Oct 2, 2019
@nkubala nkubala deleted the render-kubectl branch October 2, 2019 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants