Skip to content

skaffold deploy should respect tagPolicy #653

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

Closed
mxey opened this issue Jun 8, 2018 · 5 comments
Closed

skaffold deploy should respect tagPolicy #653

mxey opened this issue Jun 8, 2018 · 5 comments
Labels

Comments

@mxey
Copy link

mxey commented Jun 8, 2018

David Gageot on Slack asked me to file this is as a feature request.

When using the new skaffold deploy command, I have to specify the image tags I want to deploy. I'd like Skaffold to generate the image tag in the same way as skaffold build and deploy those images. This obviously would not work for all tagPolicy settings, but would apply to gitCommit and envTemplate

@r2d4
Copy link
Contributor

r2d4 commented Jun 8, 2018

This is a great idea. We aren't able to do it until we remove the checksum tagger (which is the default for skaffold dev) since that requires us to build the image to calculate the tag. The other taggers can be determined independently of the build.

@r2d4 r2d4 added the area/tag label Jun 8, 2018
@dgageot
Copy link
Contributor

dgageot commented Jun 9, 2018

@r2d4 In fact envTemplate and datetime taggers have the same issue

@Miyurz
Copy link

Miyurz commented Aug 15, 2018

@r2d4 Not sure how I could use git short tag in deploy. Can you throw more light on this ?
This is how my skaffold.yaml looks like

apiVersion: skaffold/v1alpha2
kind: Config
build:
  tagPolicy:
    #sha256: {}
    gitCommit: {}
  artifacts:
  - imageName: org/backend
deploy:
  helm:
    releases:
    - name: org-backend
      chartPath: infra/charts/beam
      #wait: false
      #valuesFilePath: infra/charts/org/values.yaml
      #values:
      #  image: org/backend
      #overrides builds an override values.yaml file to run with the helm deploy
      #overrides:
      # some:
      #   key: someValue
      #setValues get appended to the helm deploy with --set.  
      setValues:
        image.tag: e290211

@balopat balopat added the priority/p2 May take a couple of releases label Sep 11, 2018
@tstromberg
Copy link
Contributor

I'm closing this issue as it hasn't seen activity in awhile, and if it does still exist, it doesn't seem to be getting any traction at the moment. If this issue appears in the most recent release of Skaffold, please feel free to add a follow-up comment and we will see about getting it prioritized appropriately.

If someone sees a similar issue to this one, please create a new issue, but do include a link to this issue if possible.

Thank you for sharing this issue with us!

@nkubala
Copy link
Contributor

nkubala commented Apr 23, 2020

yeah this issue isn't really relevant anymore. skaffold deploy now either requires tags for prebuilt artifacts, or the output of a skaffold build to consume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants