Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Gerber <[email protected]>
  • Loading branch information
DebakelOrakel and simu committed Jun 19, 2024
1 parent c806751 commit 88447b3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion class/defaults.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ parameters:
tags: []
userDataSecret:
name: worker-user-data
cpDefaultSpecs:
controlPlaneDefaultSpecs:
vsphere: {}
aws: {}
azure: {}
Expand Down
2 changes: 1 addition & 1 deletion component/machine-sets.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ local machineSetSpecs = function(name, set, role)

local cpMachineSetSpecs = function(set)
kube._Object('machine.openshift.io/v1', 'ControlPlaneMachineSet', 'cluster') {
spec+: params.cpDefaultSpecs[inv.parameters.facts.cloud],
spec+: params.controlPlaneDefaultSpecs[inv.parameters.facts.cloud],
} + {
metadata+: {
annotations+: std.get(set, 'annotations', {}),
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/references/parameters.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ A dictionary holding the default values applied to each `machinesets.machine.ope
The top level keys are the names of cloud providers as reported by the cluster fact `${facts:cloud}`.
The values can be everything that's accepted in the `spec` field of a `machinesets.machine.openshift.io` object.

== `cpDefaultSpecs`
== `controlPlaneDefaultSpecs`

[horizontal]
type:: dictionary
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ spec:
tags:
- infra-id-master
userDataSecret:
name: worker-user-data
name: master-user-data
zone: europe-west6-a

0 comments on commit 88447b3

Please sign in to comment.