-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support for Kubernetes ApplySets
#5
Comments
The current implementation is a bit bumpy.
Presumably this works a bit better with |
I've added a
What's not so pretty yet:
|
I've added a |
There's also an issue that maybe stems from generating a wrong kind in the annotation for ArgoCD CronWorkflows:
|
Kubernetes "ApplySets" are objects that group resources that are applied together, allowing resources that are removed in a subsequent apply to be pruned or even pruning the entire group of objects.
It would be nice if Nyl supported ApplySets in such a fashion that they are straight forward to use when applying manifests with
kubectl
, allowing users to easily upgrade applications and pruning removed resources.In an ideal scenario, one would simply run something like:
Though it may be necessary to reference the apply set with
--applyset=kind/name
. If the invokation of kubectl is error prone, we could also consider adding a command or option to Nyl to actually run kubectl for you.$ nyl template . --apply
Nyl can provide it's own parent resource (e.g.
ApplySet.nyl.io/v1
). It can automatically detect the presence of the apply set resource in the file, and as part of a source file where manifests are loaded from, Nyl can automatically assign thepart-of
labels (although that may not be what the ApplySet spec intended/how kubectl implements it, I'm not 100% sure yet).Relevant resources:
The text was updated successfully, but these errors were encountered: