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

workloads with lifecycle:tekton templates go healthy==False #1315

Closed
tbr11 opened this issue Aug 16, 2023 · 0 comments · Fixed by #1316
Closed

workloads with lifecycle:tekton templates go healthy==False #1315

tbr11 opened this issue Aug 16, 2023 · 0 comments · Fixed by #1316

Comments

@tbr11
Copy link
Contributor

tbr11 commented Aug 16, 2023

Bug description:

Please provide a clear and concise description of what the bug is.

Steps to reproduce:

Please provide a set of steps to reproduce the behavior (example):

  • Get a fresh cluster,
  • Checkout catalog main
  • Install TAP 1.7.0-build.35
  • Install a basic supply chain
  • Then:
k create ns foo

k label namespace foo apps.tanzu.vmware.com/tap-ns=""

tanzu apps workload create foo --git-branch main --git-repo https://github.com/vmware-tanzu/application-accelerator-samples --sub-path tanzu-java-web-app --label apps.tanzu.vmware.com/has-tests=true --label app.kubernetes.io/part-of=tanzu-java-web-app --type web -n foo -y --wait

This will fail with the following error:
Error: Failed to become ready: unable to retrieve outputs for resource [config-writer] in supply chain [source-to-url]: failed to find any healthy object in the set of immutable stamped object

A few minutes later the workload will show as healthy.

Expected behavior:

When a workload pairs with a template that is lifecycle:immutable/tekton

If the set of objects that has been stamped out contains at least one object that is in unknown state

Then the workload reports healthy==unknown.

Actual behavior:

When lifecycle:immutable/tekton

If the set of objects that has been stamped out does not contain at least one object that is in healthy state

Then the workload reports healthy==false.

tbr11 pushed a commit that referenced this issue Aug 16, 2023
Co-authored-by: Waciuma Wanjohi <lwanjohi@vmware.com>
waciumawanjohi added a commit that referenced this issue Aug 25, 2023
Co-authored-by: Waciuma Wanjohi <lwanjohi@vmware.com>
waciumawanjohi added a commit that referenced this issue Aug 25, 2023
Co-authored-by: Waciuma Wanjohi <lwanjohi@vmware.com>
waciumawanjohi added a commit that referenced this issue Aug 26, 2023
Co-authored-by: Waciuma Wanjohi <lwanjohi@vmware.com>
waciumawanjohi added a commit that referenced this issue Sep 12, 2023
Co-authored-by: Waciuma Wanjohi <lwanjohi@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant