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

Cannot update Task with outputImageDir #1717

Closed
afrittoli opened this issue Dec 10, 2019 · 8 comments
Closed

Cannot update Task with outputImageDir #1717

afrittoli opened this issue Dec 10, 2019 · 8 comments
Labels
kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@afrittoli
Copy link
Member

Expected Behavior

An old version of a Task includes outputImageDir, which is not supported by Tekton anymore.
It should be possible to update the task with a new version that does not include outputImageDir.

Actual Behavior

Cannot update the Task:

for: "tekton/publish.yaml": Internal error occurred: admission webhook "webhook.tekton.dev" denied the request: mutation failed: cannot decode incoming old object: json: unknown field "outputImageDir"

Steps to Reproduce the Problem

  1. On an old version of Tekton v0.8.0, create a Task that uses with outputImageDir
  2. Upgrade Tekton to v0.9.0
  3. Try to update the Task

Additional Info

Support for outputImageDir has been dropped in #1467. We skipped the usual deprecation cycle - I updated now v0.9.0 release notes to include a note that outputImageDir has been removed.

We should make a v0.9.2 that provides a valid upgrade path, or else document that old Tasks will have to be deleted and recreated if they use outputImageDir.

@afrittoli
Copy link
Member Author

/kind bug
/kind api-change

@tekton-robot tekton-robot added kind/bug Categorizes issue or PR as related to a bug. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Dec 10, 2019
@afrittoli
Copy link
Member Author

/priority important-soon

@tekton-robot tekton-robot added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Dec 10, 2019
@afrittoli afrittoli added this to the Pipelines 0.9.2 🐱 milestone Dec 11, 2019
@bobcatfish
Copy link
Collaborator

@afrittoli I moved this to the 0.10 milestone since 0.9.2 happened - or should we make a 0.9.3 release?

@vdemeester
Copy link
Member

@afrittoli given the new timeline for 0.10 we may want to do a 0.9.3 if the fix did not get in yet

@afrittoli
Copy link
Member Author

Do we need to bring the field back or is it enough to tweak validation to accept it and then ignore it?

@rakhbari
Copy link

rakhbari commented Jan 3, 2020

Just FYI... I just hit this issue while attempting to apply the latest 0.3.0 dashboard release YAML.
👍 for @afrittoli 's suggestion to bring the field back & just ignore it for now until this can be resolved. As of right now I'm not entirely sure if my attempt to upgrade to latest dashboard release YAML worked or not because of this error.

@bobcatfish
Copy link
Collaborator

After discussing this a bit with @sbwsg @dibyom @vdemeester we're not sure if it's worth making the 0.9.3 release at this point since our 0.10 release is in ~2 weeks. If we do the 0.9.3 release, folks would have to migrate to it in order to get this field back, then we'd be asking them to switch to 0.10 almost immediately.

For your issue with the dashboard @rakhbari I think the dashboard project would also have to migrate to 0.9.3 in order for it to help you - and then they'd probably migrate to 0.10 right after that so I'm not sure it's worth it :S

If we'd done this 27 days ago it would have made more sense 🙇‍♀ I'm going to close this for now but if folks feel strongly please comment/re-open.

@dibyom
Copy link
Member

dibyom commented Jan 29, 2020

Ran into this today while doing the Triggers release 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

6 participants