Comments (7)
Just FYI, for tilt we require the --export (in general) to be able to return the workload in the cluster. Tilt requires the uid field which is what it then bases its tracking off of.
The idea behind --export
is that it takes a resource in the cluster and makes it appropriate to write into a gitops store and share. It intentionally strips off the uid and other cluster specific fields. You want something more like -o yaml
for create/update/apply
from apps-cli-plugin.
comments originally submitted by @paulcwarren
Just FYI, for tilt we require the --export (in general) to be able to return the workload in the cluster. Tilt requires the uid field which is what it then bases its tracking off of.
We would also require the ability to --quiet any other output that isn't the eventual workload yaml.
from apps-cli-plugin.
@paulcwarren - do you see any issue with --export
implying --yes
and --quiet
?
from apps-cli-plugin.
do you see any issue with
--export
implying--yes
and--quiet
?
I do, --yes
is an explicit opt-in to not be prompted before potentially destructive actions. Making it implicit weakens its purpose. In the case here of using a script to drive the command, the script can specify the extra flags it cares about. One flag changing the implicit value of an unrelated flag is a good way to surprise users.
from apps-cli-plugin.
@scothis - I agree with the sentiment in your previous comment and have updated the issue accordingly.
--yes
is not implied if a user includes --export
(users must provide --yes
to skip prompts).
from apps-cli-plugin.
It's worth double checking that the prompts are on stderr so that stdout can be piped to another tool with the exported content.
from apps-cli-plugin.
After further clarifying discussions with @paulcwarren and my team, I've decided against implementing this and we'll stick with the 2 command approach which works today.
apps workload apply...
followed by apps workload get -o yaml/json
to get the uid.
from apps-cli-plugin.
Related Issues (20)
- tanzu apps workload create/apply -oyaml --- should not imply --wait
- Publish the Apps CLI plugin release as OCI artifact stored in ghcr
- Create combined coverage report for unit and integration tests
- Add --output flag in `clustersupplychain list/get` HOT 1
- Stern latest version (v1.24.0) introduced bugs in Apps Plugin
- `tanzu apps lsp health` for reporting health of the local source registry proxy
- remove `tanzu apps workload update`
- lsp health check error message formatting HOT 1
- `apply` command throws panic error when switching from `--image` source to `--local-path`
- `apply` command doesn't handle switching from `git` to `local-path`
- `apply` doesn't remove the `LSP` workload annotation when switching from `--local-source` to `--git*`
- Workload create/apply lacks validation to prevent inclusion of multiple source types
- workload create/apply includes triplet reference to "error" in output when there's an issue with LSP
- apply/create - `local-source-proxy.apps.tanzu.vmware.com` isn't being removed when included in workload.yaml AND `--source-image` flag/value is included HOT 1
- subpath is being removed when updating lsp or source image workload from file
- Workload create/apply using a workload yaml file lacks validation to prevent inclusion of multiple source types HOT 1
- tail feature does not work with Dockerfile builds
- Make it possible to force an unchanged workload to re-run through the supply chain HOT 2
- Deprecate `create`
- Add `-A` as shorthand for `--all` in `tanzu apps workload delete`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apps-cli-plugin.