Skip to content

Commit 4e0853c

Browse files
Renovate: Update External dependencies (#23)
* Renovate: Update External dependencies * fix --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anton Paulovich <a.paulovich@sap.com>
1 parent d6637bd commit 4e0853c

8 files changed

Lines changed: 362 additions & 407 deletions

File tree

.claude/settings.local.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
"Bash(gh pr:*)",
55
"WebFetch(domain:github.com)",
66
"WebFetch(domain:raw.githubusercontent.com)",
7-
"Bash(curl:*)"
7+
"Bash(curl:*)",
8+
"Bash(go build *)",
9+
"Bash(golangci-lint run *)",
10+
"Bash(go test *)",
11+
"Bash(gofmt *)",
12+
"Bash(gmake *)"
813
]
914
}
1015
}

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.DS_Store
2-
build/.claude/
2+
build/
3+
4+
.idea

.typos.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
[default.extend-words]
66

7+
[default]
8+
extend-ignore-identifiers-re = ["ANDed"]
9+
710
[files]
811
extend-exclude = [
912
"go.mod",

api/v1alpha1/groupversion_info.go

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,27 @@
77
package v1alpha1
88

99
import (
10+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
11+
"k8s.io/apimachinery/pkg/runtime"
1012
"k8s.io/apimachinery/pkg/runtime/schema"
11-
"sigs.k8s.io/controller-runtime/pkg/scheme"
1213
)
1314

1415
var (
1516
// GroupVersion is group version used to register these objects.
1617
GroupVersion = schema.GroupVersion{Group: "cloudprofilesync.cobaltcore.dev", Version: "v1alpha1"}
1718

1819
// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
19-
SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}
20+
SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
2021

2122
// AddToScheme adds the types in this group-version to the given scheme.
2223
AddToScheme = SchemeBuilder.AddToScheme
2324
)
25+
26+
func addKnownTypes(s *runtime.Scheme) error {
27+
s.AddKnownTypes(GroupVersion,
28+
&ManagedCloudProfile{},
29+
&ManagedCloudProfileList{},
30+
)
31+
metav1.AddToGroupVersion(s, GroupVersion)
32+
return nil
33+
}

api/v1alpha1/managedcloudprofile.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ import (
99
runtime "k8s.io/apimachinery/pkg/runtime"
1010
)
1111

12-
func init() {
13-
SchemeBuilder.Register(&ManagedCloudProfile{}, &ManagedCloudProfileList{})
14-
}
15-
1612
type ManagedCloudProfileSpec struct {
1713
// CloudProfile contains the base spec of the CloudProfile.
1814
CloudProfile CloudProfileSpec `json:"cloudProfile"`

crd/cloudprofilesync.cobaltcore.dev_managedcloudprofiles.yaml

Lines changed: 81 additions & 12 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.20.0
6+
controller-gen.kubebuilder.io/version: v0.21.0
77
name: managedcloudprofiles.cloudprofilesync.cobaltcore.dev
88
spec:
99
group: cloudprofilesync.cobaltcore.dev
@@ -85,19 +85,48 @@ spec:
8585
description: Versions is the list of allowed Kubernetes versions
8686
with optional expiration dates for Shoot clusters.
8787
items:
88-
description: ExpirableVersion contains a version and an
89-
expiration date.
88+
description: ExpirableVersion contains a version with associated
89+
lifecycle information.
9090
properties:
9191
classification:
9292
description: |-
9393
Classification defines the state of a version (preview, supported, deprecated).
94-
To get the currently valid classification, use CurrentLifecycleClassification().
94+
95+
Deprecated: Is replaced by Lifecycle. mutually exclusive with it.
9596
type: string
9697
expirationDate:
97-
description: ExpirationDate defines the time at which
98-
this version expires.
98+
description: |-
99+
ExpirationDate defines the time at which this version expires.
100+
101+
Deprecated: Is replaced by Lifecycle; mutually exclusive with it.
99102
format: date-time
100103
type: string
104+
lifecycle:
105+
description: |-
106+
Lifecycle defines the lifecycle stages for this version.
107+
Mutually exclusive with Classification and ExpirationDate.
108+
This can only be used when the VersionClassificationLifecycle feature gate is enabled.
109+
items:
110+
description: |-
111+
LifecycleStage describes a stage in the versions lifecycle.
112+
Each stage defines the classification of the version (e.g. unavailable, preview, supported, deprecated, expired)
113+
and the time at which this classification becomes effective.
114+
properties:
115+
classification:
116+
description: Classification is the category of
117+
this lifecycle stage (unavailable, preview,
118+
supported, deprecated, expired).
119+
type: string
120+
startTime:
121+
description: |-
122+
StartTime defines when this lifecycle stage becomes active.
123+
StartTime can be omitted for the first lifecycle stage, implying a start time in the past.
124+
format: date-time
125+
type: string
126+
required:
127+
- classification
128+
type: object
129+
type: array
101130
version:
102131
description: Version is the version identifier.
103132
type: string
@@ -184,7 +213,8 @@ spec:
184213
classification:
185214
description: |-
186215
Classification defines the state of a version (preview, supported, deprecated).
187-
To get the currently valid classification, use CurrentLifecycleClassification().
216+
217+
Deprecated: Is replaced by Lifecycle. mutually exclusive with it.
188218
type: string
189219
cri:
190220
description: CRI list of supported container runtime
@@ -223,8 +253,10 @@ spec:
223253
type: object
224254
type: array
225255
expirationDate:
226-
description: ExpirationDate defines the time at which
227-
this version expires.
256+
description: |-
257+
ExpirationDate defines the time at which this version expires.
258+
259+
Deprecated: Is replaced by Lifecycle; mutually exclusive with it.
228260
format: date-time
229261
type: string
230262
inPlaceUpdates:
@@ -253,6 +285,32 @@ spec:
253285
- '>= 1.26' - supports only kubelet versions greater than or equal to 1.26
254286
- '< 1.26' - supports only kubelet versions less than 1.26
255287
type: string
288+
lifecycle:
289+
description: |-
290+
Lifecycle defines the lifecycle stages for this version.
291+
Mutually exclusive with Classification and ExpirationDate.
292+
This can only be used when the VersionClassificationLifecycle feature gate is enabled.
293+
items:
294+
description: |-
295+
LifecycleStage describes a stage in the versions lifecycle.
296+
Each stage defines the classification of the version (e.g. unavailable, preview, supported, deprecated, expired)
297+
and the time at which this classification becomes effective.
298+
properties:
299+
classification:
300+
description: Classification is the category
301+
of this lifecycle stage (unavailable, preview,
302+
supported, deprecated, expired).
303+
type: string
304+
startTime:
305+
description: |-
306+
StartTime defines when this lifecycle stage becomes active.
307+
StartTime can be omitted for the first lifecycle stage, implying a start time in the past.
308+
format: date-time
309+
type: string
310+
required:
311+
- classification
312+
type: object
313+
type: array
256314
version:
257315
description: Version is the version identifier.
258316
type: string
@@ -303,6 +361,17 @@ spec:
303361
type.
304362
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
305363
x-kubernetes-int-or-string: true
364+
machineControllerManager:
365+
description: MachineControllerManagerSettings contains a
366+
subset of the MachineControllerManagerSettings which can
367+
be defaulted for a machine type in a CloudProfile.
368+
properties:
369+
machineCreationTimeout:
370+
description: MachineCreationTimeout is the period after
371+
which creation of a machine of this machine type is
372+
declared failed.
373+
type: string
374+
type: object
306375
memory:
307376
anyOf:
308377
- type: integer
@@ -431,7 +500,7 @@ spec:
431500
properties:
432501
matchExpressions:
433502
description: matchExpressions is a list of label selector
434-
requirements. The requirements are ANDead.
503+
requirements. The requirements are ANDed.
435504
items:
436505
description: |-
437506
A label selector requirement is a selector that contains values, a key, and an operator that
@@ -468,7 +537,7 @@ spec:
468537
description: |-
469538
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
470539
map is equivalent to an element of matchExpressions, whose key field is "key", the
471-
operator is "In", and the values array contains only "value". The requirements are ANDead.
540+
operator is "In", and the values array contains only "value". The requirements are ANDed.
472541
type: object
473542
providerTypes:
474543
description: Providers is optional and can be used by restricting
@@ -521,7 +590,7 @@ spec:
521590
garbage collection
522591
properties:
523592
enabled:
524-
description: Enabled toggles garbage collection for this resource.
593+
description: Enabled toggles garbage collection for this image.
525594
type: boolean
526595
maxAge:
527596
description: |-

0 commit comments

Comments
 (0)