Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Operator: use reflection to discover references to secrets and configsmaps - #760

Merged
rfratto merged 2 commits into
grafana-cold-storage:mainfrom
rfratto:reflect-secret-refs
Jul 22, 2021
Merged

Operator: use reflection to discover references to secrets and configsmaps#760
rfratto merged 2 commits into
grafana-cold-storage:mainfrom
rfratto:reflect-secret-refs

Conversation

@rfratto

@rfratto rfratto commented Jul 21, 2021

Copy link
Copy Markdown
Contributor

PR Description

Modifies the AssetReferences code to no longer manually traverse the resource hierarchy and instead use reflection to find all secret and configmap selectors.

This allows AssetReferences to always work regardless of changes we make to the CRDs and removes the risk of forgetting to update it.

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG updated (N/A)
  • Documentation added (N/A)
  • Tests updated

@rfratto
rfratto requested a review from mattdurham July 21, 2021 19:05

@mattdurham mattdurham left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Very light review but LGTM

@rfratto
rfratto merged commit fb0203b into grafana-cold-storage:main Jul 22, 2021
@mattdurham mattdurham mentioned this pull request Sep 7, 2021
3 tasks
mattdurham pushed a commit that referenced this pull request Nov 11, 2021
@rfratto
rfratto deleted the reflect-secret-refs branch March 14, 2022 18:19
@github-actions github-actions Bot added the frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed. label Apr 2, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Locked due to a period of inactivity. Please open new issues or PRs if more discussion is needed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants