Skip to content

Add dev resources to improve local testing capability #4511

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

Merged
merged 4 commits into from
Jan 13, 2025

Conversation

mproffitt
Copy link
Contributor

What changed?

Adds a base set of resources to apply to a kind cluster for local testing.

Why was this change made?

To improve testing capabilities when developing locally

How was this change implemented?

How did you validate the change?

By applying all resources under tools/dev-resources with

kubectl apply -k tools/dev-resources

Release notes

N/A

Documentation Changes

No.

@mproffitt mproffitt changed the title Add some dev resources Add dev resources to improve local testing capability Jan 13, 2025
Copy link
Contributor

@erikgb erikgb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mproffitt! Some minor suggestions from me. I would also appreciate if list of kustomize resource filenames are organized alphabetically and an empty line at the end of all files. But none of this is a blocker. 😸

- Resource alphabetical ordering
- fix `-f` to become `-k` as otherwise specified (muscle memory)
- split monitoring namespace to earlier in kustomize tree
- drop `targetNamespace` from monitoring
- podinfo targetNamespace remains as this enforces namespace to
  resources that do not have it set in upstream repo
@mproffitt
Copy link
Contributor Author

I added an additional note to the readme in tools/dev-resources - the resource ImageUpdateAutomation will fail if GitRepository/flux-system.flux-system doesn't exist or the path can't be found.

I'm happy to let this remain broken as it shows a "failed resource" in the UI which can be useful for testing.

@mproffitt mproffitt requested a review from erikgb January 13, 2025 21:22
@mproffitt mproffitt force-pushed the add-tools-resources branch from 31ae487 to f46f5da Compare January 13, 2025 21:24
@mproffitt mproffitt force-pushed the add-tools-resources branch from ca6d2a4 to d6b6511 Compare January 13, 2025 21:32
Copy link
Contributor

@erikgb erikgb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@erikgb erikgb merged commit d625d91 into weaveworks:main Jan 13, 2025
18 checks passed
@mproffitt mproffitt deleted the add-tools-resources branch January 13, 2025 22:20
This was referenced Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants