-
Notifications
You must be signed in to change notification settings - Fork 94
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
add seperate openshift block to handle openshift related configurations #245
base: main
Are you sure you want to change the base?
Conversation
Any news on this one? This looks promising... |
Hi @mittal-ishaan. Is there a conversation or specific problem this is trying to solve? It looks like it is several backwards incompatible changes and doesn't provide any functionality that can't already be achieved using the existing: Appears like its an attempt to maybe simplify configuration for openshift clusters? |
Hi @toscott, The primary goal here is to simplify the installation process for OpenCost in OpenShift environments. Currently, setting up OpenCost in OpenShift is challenging, as users need to sift through various issues and discussions to find the necessary volume mounts, as detailed in this issue. By including these configurations directly in the Helm chart, I hope to make the installation process more straightforward for OpenShift users. Additionally, I want to centralize and gate other OpenShift-specific configurations. What are your thoughts? |
Sorry for the delay. I like the idea of simplifying configuration for new users. It does make me a little nervous to break backward compatibility though. What do you think about bumping the chart to 2.0.0 and calling it good? Also glad to see you were added as a contributor! Welcome! |
Thank you @toscott |
Signed-off-by: Ishaan Mittal <[email protected]>
where are we on this? |
Adding separate openshift block to handle openshift-related configurations and make it easier for users to install opencost in an openshift environment.
However, this comes with some breaking changes:
The following helm values will now work for openshift opencost installation:
With #244 changes
For installing opencost with in-cluster prometheus in openshift environment:
Although it is recommended to remove OpenShift-specific
extraVolumes
andextraVolumeMounts
, keeping them as they are will not cause any issues. Kubernetes applies only the first defined volume mount for a given path, ensuring that duplicates do not break anything.I have placed
extraVolumes
andextraVolumeMounts
in the deployment before the OpenShift-specific ones so that user-defined values always take precedence in case of duplicate. While I could not find official documentation confirming this behavior, I have tested it by installing OpenCost with these changes in an OpenShift cluster.The only scenario where this could result in an error is if we install OpenCost for the first time with these changes and define
extraVolumes
andextraVolumeMounts
withempty-var-www
. In that case, Kubernetes would throw the following error:However, if OpenCost is already installed with this volume and volume mount, upgrading with this chart will not produce an error.