Skip to content

Add dev resources to improve local testing capability#4511

Merged
erikgb merged 4 commits intoweaveworks:mainfrom
mproffitt:add-tools-resources
Jan 13, 2025
Merged

Add dev resources to improve local testing capability#4511
erikgb merged 4 commits intoweaveworks:mainfrom
mproffitt:add-tools-resources

Conversation

@mproffitt
Copy link
Copy Markdown
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
Copy Markdown
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. 😸

Comment thread doc/development-process.md Outdated
Comment thread tools/dev-resources/monitoring/monitoring.yaml Outdated
- 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
Copy Markdown
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
Copy Markdown
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!

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