-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
operator: Enable Route by default on OpenShift clusters #9346
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a code improvement suggestion, otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can still find two references of gatewayRoute
:
- in
feature_gates.md
(needs amake web-pre
) - in
config.grafana.com_projectconfigs.yaml
The second one seems to be an old reference that has not been updated in a while. I currently do not remember how to update that file... Is it possible that we generated that file once "by accident" and did not delete it afterwards?
The generate YAML file is actually obsolete as per this CRD is not used for the API. However kubebuilder/operator-sdk generated this file initially. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a rebase, but otherwise lgtm 👍
[release-5.7] Backport PR grafana#9346
[release-5.6] Backport PR grafana#9346
What this PR does / why we need it:
With the availability of the
community-openshift
(See #8881) bundle we control all available hubs for OpenShift clusters. Thus we can assume that a user using either theredhat-openshift-ecosystem/community-operators-prod
hub or the RedHat internal catalogs installs this Operator on an OpenShift clusters. Therefore we can always assume that the following facilities are available:This PR decouples reconciling a Route and a CABundle ConfigMap from the user selection of tenant mode. Formerly the user had to select either tenant mode
openshift-logging
oropenshift-network
to inform the operator that the hosting cluster is OpenShift. In the proposed change the cluster flavor is controlled automatically via the bundled feature gates configuration.In addition this enables using the tenant modes
static
anddynamic
with public OIDC providers via the route.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)CHANGELOG.md
updateddocs/sources/upgrading/_index.md