-
Notifications
You must be signed in to change notification settings - Fork 27
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
feat: mount redfish credentials #191
feat: mount redfish credentials #191
Conversation
Signed-off-by: Vimal Kumar <[email protected]>
@@ -49,6 +49,8 @@ const ( | |||
ServiceName = prefix + "svc" | |||
|
|||
StableImage = "quay.io/sustainable_computing_io/kepler:release-0.5.4" | |||
|
|||
RedfishSecretName = "redfish" |
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.
Where are we creating the secret ? 🤔
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.
If the redfish secret is optional, how about we allow
exporter:
redfish:
secretRef:
Also, why are we using secret instead of say configmap?
@@ -175,6 +178,7 @@ func NewDaemonSet(detail components.Detail, k *v1alpha1.Kepler) *appsv1.DaemonSe | |||
k8s.VolumeFromHost("proc", "/proc"), | |||
k8s.VolumeFromHost("kernel-debug", "/sys/kernel/debug"), | |||
k8s.VolumeFromHost("kernel-src", "/usr/src/kernels"), | |||
k8s.VolumeFromSecret("redfish-cred", RedfishSecretName), |
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.
On a related note, there is a down side to this that we should solve .. which is that secrets will be deleted when kepler
is deleted :( ... Need to find a way to optionally delete ns if user created objects (including grafana exists).
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.
Lets discuss this further before providing this feature.
/hold |
closing this since #364 is merged 🎊 |
This PR mounts redfish credentials to the kepler exporter pod