Skip to content
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

Closed

Conversation

vimalk78
Copy link
Collaborator

This PR mounts redfish credentials to the kepler exporter pod

@vimalk78 vimalk78 requested review from rootfs and sthaha August 31, 2023 05:08
@@ -49,6 +49,8 @@ const (
ServiceName = prefix + "svc"

StableImage = "quay.io/sustainable_computing_io/kepler:release-0.5.4"

RedfishSecretName = "redfish"
Copy link
Collaborator

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 ? 🤔

Copy link
Collaborator

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),
Copy link
Collaborator

@sthaha sthaha Aug 31, 2023

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).

Copy link
Collaborator

@sthaha sthaha left a 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.

@vimalk78
Copy link
Collaborator Author

/hold

@sthaha
Copy link
Collaborator

sthaha commented Mar 11, 2024

closing this since #364 is merged 🎊

@sthaha sthaha closed this Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants