You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please fill out the issue checklist below and provide ALL the requested information.
I reviewed open and closed Github issues that may be related to my problem.
I am reporting a bug that others will be able to reproduce.
Describe the bug
After creating a workload using Local Source Proxy with a subpath, if the workload is to be updated from a file using --local-path again, the subpath is removed from the workload specification.
After creating a workload using source image with a subpath, if the workload is to be updated from a file using --local-path again, the subpath is removed from the workload specification.
If a workload is created from file, with a subpath specified, and then --local-path is specified from flags, the subpath is not being saved in the workload specification.
Expected behavior
A clear and concise description of what you expected to happen.
Steps to Reproduce
Create a workload using LSP
tanzu apps workload apply tanzu-java-web-app --local-path . --sub-path path
The files and/or directories listed in the .tanzuignore file are being excluded from the uploaded source code.
Publishing source in "." to "local-source-proxy.tap-local-source-system.svc.cluster.local/source:default-tanzu-java-web-app"...
37.56 kB / 37.56 kB [---------------------------------------------------------------------------------------------------------------------------------------] 100.00% 63.15 kB p/s
37.56 kB / 37.56 kB [---------------------------------------------------------------------------------------------------------------------------------------] 100.00% 63.14 kB p/s
📥 Published source
🔎 Create workload:
1 + |---
2 + |apiVersion: carto.run/v1alpha1
3 + |kind: Workload
4 + |metadata:
5 + | annotations:
6 + | local-source-proxy.apps.tanzu.vmware.com: gcr.io/tanzu-framework-playground/source:default-tanzu-java-web-app@sha256:724bcd14c3a84fc7a918cd8ee7a6a987de1699617a17c5af166e8c689a2becf7
7 + | labels:
8 + | apps.tanzu.vmware.com/workload-type: web
9 + | name: tanzu-java-web-app
10 + | namespace: default
11 + |spec:
12 + | source:
13 + | image: gcr.io/tanzu-framework-playground/source:default-tanzu-java-web-app@sha256:724bcd14c3a84fc7a918cd8ee7a6a987de1699617a17c5af166e8c689a2becf7
14 + | subPath: path
❓ Do you want to create this workload? [yN]: y
👍 Created workload "tanzu-java-web-app"
To see logs: "tanzu apps workload tail tanzu-java-web-app --timestamp --since 1h"
To get status: "tanzu apps workload get tanzu-java-web-app"
Update the workload to take some fields from a file
Please fill out the issue checklist below and provide ALL the requested information.
Describe the bug
--local-path
again, thesubpath
is removed from the workload specification.--local-path
again, thesubpath
is removed from the workload specification.--local-path
is specified from flags, the subpath is not being saved in the workload specification.Expected behavior
A clear and concise description of what you expected to happen.
Steps to Reproduce
--local-path
Screenshots
If applicable, add screenshots to help explain your problem.
Version (Apps plugin version, Version of K8s running on cluster)
Put the output of the following commad
tanzu version && tanzu apps version version: v0.90.0-alpha.0 buildDate: 2023-04-08 sha: 198b3730 v0.12.0-build.2-dev-9344335a
Environment where the bug was observed (cloud, OS, etc)
MacOS Ventura 13.3.1
Additional context & Relevant Debug Output (Logs, etc)
Workaround for this is to use
--sub-path
flag while updating the workload if using ayaml
file.The text was updated successfully, but these errors were encountered: