Replies: 4 comments 7 replies
-
Obviously I know you can just change L76 of
|
Beta Was this translation helpful? Give feedback.
-
Thank you for staring this discussion from a user perspective! To be more consistent with rest of the commands:
FYI: The To stay backward compatible, the
There is one more use case, where you could define a specific cluster or current cluster. |
Beta Was this translation helpful? Give feedback.
-
Thinking about it today, we seem to have 4 cases.
@j-zimnowoda's suggestion was to add the following options as well:
I think it would be useful for development purposes. But let's come to an agreement here. It would result in 7 cases:
tl;dr
|
Beta Was this translation helpful? Give feedback.
-
That could indeed be useful IF we gain simultaneous deployments with that. Otherwise we mimic kubectl with `otomi configure` for setting target cluster
… On 19 Feb 2021, at 14:20, Sebastiaan Verbeek ***@***.***> wrote:
Thinking about it today, we seem to have 4 cases.
otomi validate-templates # error: please specify all
otomi validate-templates --label name=some-release # validate 1 manifest against all clusters
otomi validate-templates --all # validate all manifests against all clusters
otomi validate-templates --all --label name=some-release # error: can't specify all and label simultaneously
@j-zimnowoda's suggestion was to add the following options as well:
otomi validate-templates --cluster aws-dev
I think it would be useful for development purposes. But let's come to an agreement here.
It would result in 7 cases:
otomi validate-templates # error: please specify all
otomi validate-templates --label name=some-release # validate 1 manifest against all clusters
otomi validate-templates --label name=some-release --cluster aws-dev
otomi validate-templates --all # validate all manifests against all clusters
otomi validate-templates --all --label name=some-release # error: can't specify all and label simultaneously
otomi validate-templates --all --cluster aws-dev # validate all manifests against aws-dev
otomi validate-templates --all --cluster aws-dev --label name=some-release # error: can't specify all and label simultaneously against aws-dev
tl;dr
most easy: only add --label flag
best for development: --label and --cluster
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
I just had a conversation with @Jehoszafat Zimnowoda about #290. @Morriz has said it could be done in 2 lines of code. This might be true, but @Jehoszafat Zimnowoda and I also came to a conclusion that the addition is a bit more nuanced and needs some extra discussion.
To avoid that we will endlessly go into the details, this is what the the implementation will look like to an end-user. We have one case right now:
From requirements setting it is inferred that we need two cases now:
and
To me it seems there are two nuances:
validate-templates
function.Please consider my experience, I might have made mistakes in my thinking, so just let me know if this is the wrong way to go about it.
Beta Was this translation helpful? Give feedback.
All reactions