Skip to content

Commit bed458b

Browse files
Merge branch 'main' into biosSettingsFlow
2 parents cf5a5a8 + 8261698 commit bed458b

37 files changed

+400
-459
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ GOIMPORTS ?= $(LOCALBIN)/goimports
253253

254254
## Tool Versions
255255
KUSTOMIZE_VERSION ?= v5.5.0
256-
CONTROLLER_TOOLS_VERSION ?= v0.17.1
256+
CONTROLLER_TOOLS_VERSION ?= v0.18.0
257257
#ENVTEST_VERSION is the version of controller-runtime release branch to fetch the envtest setup script (i.e. release-0.20)
258258
ENVTEST_VERSION ?= $(shell go list -m -f "{{ .Version }}" sigs.k8s.io/controller-runtime | awk -F'[v.]' '{printf "release-%d.%d", $$2, $$3}')
259259
#ENVTEST_K8S_VERSION is the version of Kubernetes to use for setting up ENVTEST binaries (i.e. 1.31)

bmc/redfish.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const (
3535
DefaultPowerPollingTimeout = 5 * time.Minute
3636
)
3737

38-
// BMCOptions contains the options for the BMC redfish client.
39-
type BMCOptions struct {
38+
// Options contain the options for the BMC redfish client.
39+
type Options struct {
4040
Endpoint string
4141
Username string
4242
Password string
@@ -51,7 +51,7 @@ type BMCOptions struct {
5151
// RedfishBMC is an implementation of the BMC interface for Redfish.
5252
type RedfishBMC struct {
5353
client *gofish.APIClient
54-
options BMCOptions
54+
options Options
5555
}
5656

5757
var pxeBootWithSettingUEFIBootMode = redfish.Boot{
@@ -67,7 +67,7 @@ var pxeBootWithoutSettingUEFIBootMode = redfish.Boot{
6767
// NewRedfishBMCClient creates a new RedfishBMC with the given connection details.
6868
func NewRedfishBMCClient(
6969
ctx context.Context,
70-
options BMCOptions,
70+
options Options,
7171
) (*RedfishBMC, error) {
7272
clientConfig := gofish.ClientConfig{
7373
Endpoint: options.Endpoint,
@@ -356,7 +356,7 @@ func (r *RedfishBMC) GetBiosPendingAttributeValues(
356356
}
357357

358358
// unfortunately, some vendors fill the pending attribute with copy of actual bios attribute
359-
// remove if there are same
359+
// remove if there are the same
360360
if len(tBios.Attributes) == len(tBiosPendingSetting.Attributes) {
361361
pendingAttr := redfish.SettingsAttributes{}
362362
for key, attr := range tBiosPendingSetting.Attributes {
@@ -448,7 +448,7 @@ func (r *RedfishBMC) getFilteredBiosRegistryAttributes(
448448
return
449449
}
450450

451-
// check if the arrtibutes need to reboot when changed, and are correct type.
451+
// CheckBiosAttributes checks if the attributes need to reboot when changed and are the correct type.
452452
func (r *RedfishBMC) CheckBiosAttributes(attrs redfish.SettingsAttributes) (reset bool, err error) {
453453
reset = false
454454
// filter out immutable, readonly and hidden attributes

bmc/redfish_kube.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ type RedfishKubeBMC struct {
3737
// NewRedfishKubeBMCClient creates a new RedfishKubeBMC with the given connection details.
3838
func NewRedfishKubeBMCClient(
3939
ctx context.Context,
40-
options BMCOptions,
40+
options Options,
4141
c client.Client,
4242
ns string,
4343
) (BMC, error) {

bmc/redfish_local.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ type RedfishLocalBMC struct {
2222
// NewRedfishLocalBMCClient creates a new RedfishLocalBMC with the given connection details.
2323
func NewRedfishLocalBMCClient(
2424
ctx context.Context,
25-
options BMCOptions,
25+
options Options,
2626
) (BMC, error) {
2727
bmc, err := NewRedfishBMCClient(ctx, options)
2828
if err != nil {

cmd/manager/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func main() { // nolint: gocyclo
319319
EnforceFirstBoot: enforceFirstBoot,
320320
EnforcePowerOff: enforcePowerOff,
321321
MaxConcurrentReconciles: serverMaxConcurrentReconciles,
322-
BMCOptions: bmc.BMCOptions{
322+
BMCOptions: bmc.Options{
323323
BasicAuth: true,
324324
PowerPollingInterval: powerPollingInterval,
325325
PowerPollingTimeout: powerPollingTimeout,
@@ -368,7 +368,7 @@ func main() { // nolint: gocyclo
368368
ManagerNamespace: managerNamespace,
369369
Insecure: insecure,
370370
ResyncInterval: serverResyncInterval,
371-
BMCOptions: bmc.BMCOptions{
371+
BMCOptions: bmc.Options{
372372
BasicAuth: true,
373373
PowerPollingInterval: powerPollingInterval,
374374
PowerPollingTimeout: powerPollingTimeout,
@@ -392,7 +392,7 @@ func main() { // nolint: gocyclo
392392
ManagerNamespace: managerNamespace,
393393
Insecure: insecure,
394394
ResyncInterval: serverResyncInterval,
395-
BMCOptions: bmc.BMCOptions{
395+
BMCOptions: bmc.Options{
396396
BasicAuth: true,
397397
PowerPollingInterval: powerPollingInterval,
398398
PowerPollingTimeout: powerPollingTimeout,

cmdutils/suite_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ var _ = BeforeSuite(func() {
5757
// Note that you must have the required binaries setup under the bin directory to perform
5858
// the tests directly. When we run make test it will be setup and used automatically.
5959
BinaryAssetsDirectory: filepath.Join("..", "bin", "k8s",
60-
fmt.Sprintf("1.31.0-%s-%s", runtime.GOOS, runtime.GOARCH)),
60+
fmt.Sprintf("1.33.0-%s-%s", runtime.GOOS, runtime.GOARCH)),
6161
}
6262

6363
sourceCfg, err := sourceEnv.Start()
@@ -84,7 +84,7 @@ var _ = BeforeSuite(func() {
8484
// Note that you must have the required binaries setup under the bin directory to perform
8585
// the tests directly. When we run make test it will be setup and used automatically.
8686
BinaryAssetsDirectory: filepath.Join("..", "bin", "k8s",
87-
fmt.Sprintf("1.31.0-%s-%s", runtime.GOOS, runtime.GOARCH)),
87+
fmt.Sprintf("1.33.0-%s-%s", runtime.GOOS, runtime.GOARCH)),
8888
}
8989

9090
// cfg is defined in this file globally.

config/crd/bases/metal.ironcore.dev_biossettings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.1
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: biossettings.metal.ironcore.dev
88
spec:
99
group: metal.ironcore.dev

config/crd/bases/metal.ironcore.dev_biosversions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.1
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: biosversions.metal.ironcore.dev
88
spec:
99
group: metal.ironcore.dev

config/crd/bases/metal.ironcore.dev_bmcs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.1
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: bmcs.metal.ironcore.dev
88
spec:
99
group: metal.ironcore.dev

config/crd/bases/metal.ironcore.dev_bmcsecrets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33
kind: CustomResourceDefinition
44
metadata:
55
annotations:
6-
controller-gen.kubebuilder.io/version: v0.17.1
6+
controller-gen.kubebuilder.io/version: v0.18.0
77
name: bmcsecrets.metal.ironcore.dev
88
spec:
99
group: metal.ironcore.dev

0 commit comments

Comments
 (0)