Skip to content

Commit

Permalink
[metal-operator] base64 encoded secret (#6584)
Browse files Browse the repository at this point in the history
* [metal-operator] base64 encoded secret

* moves to new vault secret injector

* use ipmi ironic user

* typo

* adds remoteboard values (now in secrets)
  • Loading branch information
stefanhipfel authored and niranba committed Jun 4, 2024
1 parent 0886ba3 commit 2eedd0e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
args:
- --leader-elect
- --mac-prefixes-file=/etc/macdb/macdb.yaml
- --probe-image=ghcr.io/afritzler/metalprobe:latest
- --probe-image=keppel.eu-de-1.cloud.sap/ccloud-ghcr-io-mirror/afritzler/metalprobe:latest
- --probe-os-image=ghcr.io/ironcore-dev/os-images/gardenlinux:1443.3
- --insecure=false
- --registry-url=http://[2a10:afc0:e013:d002::]:30010
Expand Down
9 changes: 9 additions & 0 deletions system/metal-operator-core/templates/etc/macdb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
macPrefixes:
- macPrefix: c4cbe1b1
manufacturer: Dell
protocol: Redfish
port: 80
type: bmc
defaultCredentials:
- username: {{ .Values.remoteboard.dell.username }}
password: {{ .Values.remoteboard.dell.password }}
12 changes: 2 additions & 10 deletions system/metal-operator-core/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,5 @@ metadata:
namespace: metal-operator-system
type: Opaque
data:
macdb.yaml: |
macPrefixes:
- macPrefix: c4cbe1b1
manufacturer: Dell
protocol: Redfish
port: 80
type: bmc
defaultCredentials:
- username: support
password: *vault(path: shared/ironic/remoteboard-user/support, field: password)
macdb.yaml: {{ include (print .Template.BasePath "/etc/macdb.yaml") . | b64enc }}

5 changes: 5 additions & 0 deletions system/metal-operator-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,8 @@ metricsService:
targetPort: https
type: ClusterIP
fullnameOverride: metal-operator

remoteboard:
dell:
username: DEFINE_IN_REGION_VALUES
password: DEFINE_IN_REGION_VALUES

0 comments on commit 2eedd0e

Please sign in to comment.