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

New version of the trait not picked up by applications #6451

Open
oanasc opened this issue Jan 22, 2024 · 1 comment
Open

New version of the trait not picked up by applications #6451

oanasc opened this issue Jan 22, 2024 · 1 comment

Comments

@oanasc
Copy link

oanasc commented Jan 22, 2024

Describe the bug
Publishing a new version of a trait and rerunning the application doesn't pick up the latest version of a trait

To Reproduce

Steps to reproduce the behavior:

  1. Create a trait
  2. Create an application using the trait
  3. Update the trait
  4. Rerun the application deployment 'vela up -f myapp.yaml'

Expected behavior
The latest version of the trait should be applied as per the docs "If no revision is specified for a definition, KubeVela will use the latest revision available at evaluation time. This will usually be the next time you upgrade your application."

Screenshots

KubeVela Version
1.9.8

Cluster information

  • Kubernetes Version v1.25.11

Additional context

@oanasc
Copy link
Author

oanasc commented Jan 30, 2024

Workarounds found, there are 2 options:

  1. Use the exact version mytrait@v1 that will work
  2. If you require the latest and don't want explicit versioning use a unique parameter that is always updating (a timestamp) that is passed to the definitions all the time, that will refresh it. I've used a timestamp that is passed in the definition labels and keeps the version current.

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

No branches or pull requests

2 participants