-
Notifications
You must be signed in to change notification settings - Fork 87
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
Allow assert of a key inside a resource without defining the actual value #224
Comments
kuttl current does very little to the declared assert files... however... there are lots of requests for this kind of ability. we need to put some thought on a good approach. This seems like a very useful enhancement. |
This is somewhat related to #76 in the sense that both probably need some kind of a language to express the condition. |
yeah... we are thinking along the same lines! |
This enhancement is exactly what we need for testing whether a deployment succeeded or failed, because when a Deployment succeeds, the apiVersion: v1
kind: Deployment
metadata:
namespace: kube-system
status:
readyReplicas: 1
# but can be any number, say "n" |
thanks @rishinair11 ! it helps to prioritize and make we have this use case covered! |
Another example requiring this type of partial matching asserter occurs when you're using kuttl to validate if the resources are set for deployments with integration level tests. Not caring about the specific values - just that they are set. So definitely a +1 for me. |
What would you like to be added:
A way to assert that a key in a resource is set, but without actually defining the value of that key - normally, because it will contain a semi-random value.
Why is this needed:
For example to check if cert-manager has inserted the
caBundle
into a resource. The caBundle value will be semi-random, so we can't put the value inside the00-assert.yaml
, but we still want to make sure that they key is set:An assert could maybe look like:
?
The text was updated successfully, but these errors were encountered: