Skip to content

Commit d80706e

Browse files
Merge pull request #272 from razo7/update-tools-apis-25.9
Update SNR tool versions
2 parents 91c7cae + 6c5a5b3 commit d80706e

File tree

3,745 files changed

+368605
-135276
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,745 files changed

+368605
-135276
lines changed

.ci-operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
build_root_image:
22
namespace: openshift
33
name: release
4-
tag: rhel-9-release-golang-1.23-openshift-4.19
4+
tag: rhel-9-release-golang-1.24-openshift-4.20

Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@
22
SHELL := /bin/bash
33

44
# versions at https://github.com/kubernetes-sigs/controller-tools/releases
5-
CONTROLLER_GEN_VERSION = v0.14.0
5+
CONTROLLER_GEN_VERSION = v0.19.0
66

77
# GO_VERSION refers to the version of Golang to be downloaded when running dockerized version
8-
GO_VERSION = 1.23
8+
GO_VERSION = 1.24
99

1010
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary, align with k8s.io/client-go in go.mod
11-
ENVTEST_K8S_VERSION = 1.26
11+
ENVTEST_K8S_VERSION = 1.34
1212

1313
# versions at https://github.com/operator-framework/operator-sdk/releases
1414
# Make sure to update /config/scorecard/patches/basic.config.yaml and /config/scorecard/patches/olm.config.yaml
1515
OPERATOR_SDK_VERSION = v1.33.0
1616

1717
# versions at https://github.com/operator-framework/operator-registry/releases
18-
OPM_VERSION = v1.36.0
18+
OPM_VERSION = v1.60.0
1919

2020

2121
# update for major version updates to KUSTOMIZE_VERSION!
@@ -24,20 +24,20 @@ KUSTOMIZE_API_VERSION = v5
2424
KUSTOMIZE_VERSION = v5.3.0
2525

2626
# https://pkg.go.dev/sigs.k8s.io/controller-runtime/tools/setup-envtest/env?tab=versions
27-
ENVTEST_VERSION = v0.0.0-20240215124517-56159419231e
27+
ENVTEST_VERSION = v0.0.0-20250308055145-5fe7bb3edc86
2828

2929
# versions at https://github.com/slintes/sort-imports/tags
3030
SORT_IMPORTS_VERSION = v0.3.0
3131

3232
# version at https://github.com/a8m/envsubst/releases
33-
ENVSUBST_VERSION = v1.4.2
33+
ENVSUBST_VERSION = v1.4.3
3434

3535
# OCP Version: for Red Hat bundle community
36-
OCP_VERSION = 4.14
36+
OCP_VERSION = 4.16
3737

3838
# update for major version updates to YQ_VERSION! see https://github.com/mikefarah/yq
3939
YQ_API_VERSION = v4
40-
YQ_VERSION = v4.44.1
40+
YQ_VERSION = v4.48.1
4141

4242
OPERATOR_NAME ?= self-node-remediation
4343
OPERATOR_NAMESPACE ?= openshift-workload-availability

api/v1alpha1/selfnoderemediationconfig_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,14 @@ func (r *SelfNodeRemediationConfig) validateTimes() error {
137137
}
138138

139139
if errMsg != "" {
140-
return fmt.Errorf(errMsg)
140+
return fmt.Errorf("%s", errMsg)
141141
}
142142
return nil
143143
}
144144

145145
func (f *field) validate() error {
146146
if f.durationValue < f.minDurationValue {
147-
err := fmt.Errorf(f.name + " cannot be less than " + f.minDurationValue.String())
147+
err := fmt.Errorf("%s cannot be less than %s", f.name, f.minDurationValue.String())
148148
return err
149149
}
150150

api/v1alpha1/webhook_suite_test.go

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ import (
3838
"sigs.k8s.io/controller-runtime/pkg/envtest"
3939
logf "sigs.k8s.io/controller-runtime/pkg/log"
4040
"sigs.k8s.io/controller-runtime/pkg/log/zap"
41+
metricsServer "sigs.k8s.io/controller-runtime/pkg/metrics/server"
42+
"sigs.k8s.io/controller-runtime/pkg/webhook"
4143
)
4244

4345
// These tests use Ginkgo (BDD-style Go testing framework). Refer to
@@ -87,12 +89,14 @@ var _ = BeforeSuite(func() {
8789
// start webhook server using Manager
8890
webhookInstallOptions := &testEnv.WebhookInstallOptions
8991
mgr, err := ctrl.NewManager(cfg, ctrl.Options{
90-
Scheme: scheme,
91-
Host: webhookInstallOptions.LocalServingHost,
92-
Port: webhookInstallOptions.LocalServingPort,
93-
CertDir: webhookInstallOptions.LocalServingCertDir,
94-
LeaderElection: false,
95-
MetricsBindAddress: "0",
92+
Scheme: scheme,
93+
WebhookServer: webhook.NewServer(webhook.Options{
94+
Host: webhookInstallOptions.LocalServingHost,
95+
Port: webhookInstallOptions.LocalServingPort,
96+
CertDir: webhookInstallOptions.LocalServingCertDir,
97+
}),
98+
LeaderElection: false,
99+
Metrics: metricsServer.Options{BindAddress: "0"},
96100
})
97101
Expect(err).NotTo(HaveOccurred())
98102

bundle/manifests/self-node-remediation.clusterserviceversion.yaml

Lines changed: 13 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -136,28 +136,11 @@ spec:
136136
- get
137137
- list
138138
- watch
139-
- apiGroups:
140-
- apps
141-
resources:
142-
- daemonsets
143-
verbs:
144-
- create
145-
- delete
146-
- get
147-
- list
148-
- patch
149-
- update
150-
- watch
151-
- apiGroups:
152-
- apps
153-
resources:
154-
- daemonsets/finalizers
155-
verbs:
156-
- update
157139
- apiGroups:
158140
- ""
159141
resources:
160142
- nodes
143+
- secrets
161144
verbs:
162145
- create
163146
- delete
@@ -178,9 +161,9 @@ spec:
178161
- update
179162
- watch
180163
- apiGroups:
181-
- ""
164+
- apps
182165
resources:
183-
- secrets
166+
- daemonsets
184167
verbs:
185168
- create
186169
- delete
@@ -189,6 +172,12 @@ spec:
189172
- patch
190173
- update
191174
- watch
175+
- apiGroups:
176+
- apps
177+
resources:
178+
- daemonsets/finalizers
179+
verbs:
180+
- update
192181
- apiGroups:
193182
- machine.openshift.io
194183
resources:
@@ -221,57 +210,7 @@ spec:
221210
- self-node-remediation.medik8s.io
222211
resources:
223212
- selfnoderemediationconfigs
224-
verbs:
225-
- create
226-
- delete
227-
- get
228-
- list
229-
- patch
230-
- update
231-
- watch
232-
- apiGroups:
233-
- self-node-remediation.medik8s.io
234-
resources:
235-
- selfnoderemediationconfigs/finalizers
236-
verbs:
237-
- update
238-
- apiGroups:
239-
- self-node-remediation.medik8s.io
240-
resources:
241-
- selfnoderemediationconfigs/status
242-
verbs:
243-
- get
244-
- patch
245-
- update
246-
- apiGroups:
247-
- self-node-remediation.medik8s.io
248-
resources:
249213
- selfnoderemediations
250-
verbs:
251-
- create
252-
- delete
253-
- get
254-
- list
255-
- patch
256-
- update
257-
- watch
258-
- apiGroups:
259-
- self-node-remediation.medik8s.io
260-
resources:
261-
- selfnoderemediations/finalizers
262-
verbs:
263-
- update
264-
- apiGroups:
265-
- self-node-remediation.medik8s.io
266-
resources:
267-
- selfnoderemediations/status
268-
verbs:
269-
- get
270-
- patch
271-
- update
272-
- apiGroups:
273-
- self-node-remediation.medik8s.io
274-
resources:
275214
- selfnoderemediationtemplates
276215
verbs:
277216
- create
@@ -284,12 +223,16 @@ spec:
284223
- apiGroups:
285224
- self-node-remediation.medik8s.io
286225
resources:
226+
- selfnoderemediationconfigs/finalizers
227+
- selfnoderemediations/finalizers
287228
- selfnoderemediationtemplates/finalizers
288229
verbs:
289230
- update
290231
- apiGroups:
291232
- self-node-remediation.medik8s.io
292233
resources:
234+
- selfnoderemediationconfigs/status
235+
- selfnoderemediations/status
293236
- selfnoderemediationtemplates/status
294237
verbs:
295238
- get

bundle/manifests/self-node-remediation.medik8s.io_selfnoderemediationconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.14.0
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
creationTimestamp: null
77
labels:
88
self-node-remediation-operator: ""

bundle/manifests/self-node-remediation.medik8s.io_selfnoderemediations.yaml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.14.0
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
creationTimestamp: null
77
labels:
88
self-node-remediation-operator: ""
@@ -68,16 +68,8 @@ spec:
6868
Represents the observations of a SelfNodeRemediation's current state.
6969
Known .status.conditions.type are: "Processing"
7070
items:
71-
description: "Condition contains details for one aspect of the current
72-
state of this API Resource.\n---\nThis struct is intended for
73-
direct use as an array at the field path .status.conditions. For
74-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
75-
observations of a foo's current state.\n\t // Known .status.conditions.type
76-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
77-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
78-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
79-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
80-
\ // other fields\n\t}"
71+
description: Condition contains details for one aspect of the current
72+
state of this API Resource.
8173
properties:
8274
lastTransitionTime:
8375
description: |-
@@ -118,12 +110,7 @@ spec:
118110
- Unknown
119111
type: string
120112
type:
121-
description: |-
122-
type of condition in CamelCase or in foo.example.com/CamelCase.
123-
---
124-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
125-
useful (see .node.status.conditions), the ability to deconflict is important.
126-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
113+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
127114
maxLength: 316
128115
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
129116
type: string

bundle/manifests/self-node-remediation.medik8s.io_selfnoderemediationtemplates.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
44
annotations:
5-
controller-gen.kubebuilder.io/version: v0.14.0
5+
controller-gen.kubebuilder.io/version: v0.19.0
66
creationTimestamp: null
77
labels:
88
self-node-remediation-operator: ""

config/crd/bases/self-node-remediation.medik8s.io_selfnoderemediationconfigs.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.14.0
6+
controller-gen.kubebuilder.io/version: v0.19.0
77
name: selfnoderemediationconfigs.self-node-remediation.medik8s.io
88
spec:
99
group: self-node-remediation.medik8s.io

config/crd/bases/self-node-remediation.medik8s.io_selfnoderemediations.yaml

Lines changed: 4 additions & 17 deletions
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.14.0
6+
controller-gen.kubebuilder.io/version: v0.19.0
77
name: selfnoderemediations.self-node-remediation.medik8s.io
88
spec:
99
group: self-node-remediation.medik8s.io
@@ -66,16 +66,8 @@ spec:
6666
Represents the observations of a SelfNodeRemediation's current state.
6767
Known .status.conditions.type are: "Processing"
6868
items:
69-
description: "Condition contains details for one aspect of the current
70-
state of this API Resource.\n---\nThis struct is intended for
71-
direct use as an array at the field path .status.conditions. For
72-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
73-
observations of a foo's current state.\n\t // Known .status.conditions.type
74-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
75-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
76-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
77-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
78-
\ // other fields\n\t}"
69+
description: Condition contains details for one aspect of the current
70+
state of this API Resource.
7971
properties:
8072
lastTransitionTime:
8173
description: |-
@@ -116,12 +108,7 @@ spec:
116108
- Unknown
117109
type: string
118110
type:
119-
description: |-
120-
type of condition in CamelCase or in foo.example.com/CamelCase.
121-
---
122-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
123-
useful (see .node.status.conditions), the ability to deconflict is important.
124-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
111+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
125112
maxLength: 316
126113
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
127114
type: string

0 commit comments

Comments
 (0)