Skip to content
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

[Question]: Test without actually deploying anything? #559

Closed
siredmar opened this issue Sep 3, 2024 · 3 comments
Closed

[Question]: Test without actually deploying anything? #559

siredmar opened this issue Sep 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@siredmar
Copy link

siredmar commented Sep 3, 2024

Hi!

I'm searching for a test tool that supports me testing my kustomize overlays in terms of:
"What you define in your overlay matches the expected outcome."

What i basically need is:

  1. It can run commands like kustomize build ${myoverlay} > foo.yaml
  2. It compares the manifests from foo.yaml with some asserted resources. The minimum i need is kind, apiVersion, metadata.name and metadata.namespace.

For this i don't need or even want deploy this anywhere.

Is this kind of setup possible with kuttl?

@siredmar siredmar added the bug Something isn't working label Sep 3, 2024
@siredmar
Copy link
Author

siredmar commented Sep 3, 2024

@porridge
Copy link
Member

porridge commented Sep 3, 2024

Thanks @siredmar , reported and deleted.

@kudobuilder kudobuilder deleted a comment Sep 3, 2024
@porridge
Copy link
Member

porridge commented Sep 3, 2024

@siredmar this is not possible, but it looks like what you need is a subset of #552
Let me close this one as a duplicate and we can continue there.

In the meantime, you would probably be able to achieve something close with not much overhead if you used the mocked control plane feature.

@porridge porridge closed this as not planned Won't fix, can't repro, duplicate, stale Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants