-
Notifications
You must be signed in to change notification settings - Fork 149
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
Expose OPENSHIFT_CLUSTER_NAME
as an env variable
#2899
base: master
Are you sure you want to change the base?
Expose OPENSHIFT_CLUSTER_NAME
as an env variable
#2899
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: danilo-gemoli The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@danilo-gemoli: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
/hold |
The templating logic should be restricted to object path, as it currently is. If we want to expose this var, we should implement a specific way of using it. The current function may be able to be adopted, but I would not feel comfortable just adding this var and env "injection" off-hand. QE should also be involved in this decision. cc: @anpingli |
I suggest we discuss further in either a new Jira in the LOG project (@danilo-gemoli), or separate meeting where we can discuss and update this PR. |
@danilo-gemoli Test failed using your PR.
My CLF:
Question: |
Description
Expose the name of the cluster the operator is running on:
$ oc get infrastructure/cluster -o json | jq .status.infrastructureName
as an environment variable
OPENSHIFT_CLUSTER_NAME
on the collector container.The previous major release
v5.x
of the operator used to set the cluster name as the default value of thegroupPrefix
field on theClusterLogForwarder
:check the validation function here.
As far as I'm able to understand, that's not the case anymore in
v6.x
.The old behavior was pretty convenient for a cluster admin because, with no configuration at all, it was possible to give meaningful names to log groups in AWS CloudWatch.
By exposing
OPENSHIFT_CLUSTER_NAME
it would allowed to mimic it once again:/cc @jcantrill
/assign @jcantrill