Implement spec.uid
for GrafanaFolder
#1686
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Disclaimer: I'm not a Go developer in any capacity, feel free to address any issues as I will gladly modify the PR to suit the project.
I took a stab at #1636 and limited it to the GrafanaFolder resource for now, I'm planning a separate PR for both
GrafanaNotificationPolicy
andGrafanaContactPoint
with almost identical changes once the design in this PR has been approved.The Makefile changes were mainly due to me trying to figure out how to work with the Operator locally and I found a lot of discrepancies with the
make help
target.I struggled a fair bit with testing and validating as I'm unfamiliar with the project, hence I spent a lot of time in the Makefile.
For now, I have yet to find an existing way to easily deploy the most recently built ko-image into my local kind cluster, specifically due to the default
imagePullPolicy: Always
that is default in theconfig/manager/manager.yaml
Local procedure for testing
../test-folders.yaml
The GrafanaFolder "test-folder2" is invalid: spec.uid: Invalid value: "string": Value is immutable
The GrafanaFolder "test-folder2" is invalid: spec: Invalid value: "object": uid is immutable
Old vs new make help