Skip to content

Commit fc68150

Browse files
authored
chore(fix): task generate (#134)
1 parent 4f955be commit fc68150

Some content is hidden

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

47 files changed

+1479
-183
lines changed

api/external/gardener-extension-provider-aws/pkg/apis/aws/v1alpha1/register.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
4545
&ControlPlaneConfig{},
4646
&WorkerConfig{},
4747
&WorkerStatus{},
48+
&WorkloadIdentityConfig{},
49+
&BackupBucketConfig{},
4850
)
4951
return nil
5052
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and Gardener contributors
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
package v1alpha1
6+
7+
import (
8+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
9+
)
10+
11+
// RetentionType defines the level at which immutability properties are applied on objects.
12+
type RetentionType string
13+
14+
// ModeType defines the type of object lock mode for immutability settings.
15+
type ModeType string
16+
17+
const (
18+
// BucketLevelImmutability sets the immutability feature on the bucket level.
19+
BucketLevelImmutability RetentionType = "bucket"
20+
// ComplianceMode sets the "compliance" mode immutability.
21+
ComplianceMode ModeType = "compliance"
22+
// GovernanceMode sets the "governance" mode immutability.
23+
GovernanceMode ModeType = "governance"
24+
)
25+
26+
// +genclient
27+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
28+
29+
// BackupBucketConfig represents the configuration for a backup bucket.
30+
type BackupBucketConfig struct {
31+
metav1.TypeMeta `json:",inline"`
32+
33+
// Immutability defines the immutability configuration for the backup bucket.
34+
// +optional
35+
Immutability *ImmutableConfig `json:"immutability,omitempty"`
36+
}
37+
38+
// ImmutableConfig represents the immutability configuration for a backup bucket.
39+
type ImmutableConfig struct {
40+
// RetentionType specifies the type of retention for the backup bucket.
41+
// Currently allowed value is:
42+
// - "bucket": retention policy applies on the entire bucket.
43+
RetentionType RetentionType `json:"retentionType"`
44+
45+
// RetentionPeriod specifies the immutability retention period for the backup bucket.
46+
// S3 only supports immutability durations in days or years, therefore this field must be set as multiple of 24h.
47+
RetentionPeriod metav1.Duration `json:"retentionPeriod"`
48+
49+
// S3 provides two retention modes that apply different levels of protection to objects:
50+
// Allowed values are: "governance" or "compliance" mode.
51+
Mode ModeType `json:"mode"`
52+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
2+
//
3+
// SPDX-License-Identifier: Apache-2.0
4+
5+
package v1alpha1
6+
7+
import (
8+
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
9+
)
10+
11+
// +genclient
12+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
13+
14+
// WorkloadIdentityConfig contains configuration settings for workload identity.
15+
type WorkloadIdentityConfig struct {
16+
metav1.TypeMeta
17+
18+
// RoleARN is the identifier of the role that the workload identity will assume.
19+
RoleARN string `json:"roleARN,omitempty"`
20+
}

api/external/gardener-extension-provider-aws/pkg/apis/aws/v1alpha1/zz_generated.deepcopy.go

Lines changed: 72 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/external/gardener/pkg/apis/authentication/v1alpha1/register.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
1+
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44
package v1alpha1

api/external/gardener/pkg/apis/authentication/v1alpha1/types_adminkubeconfigrequest.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
1+
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -16,6 +16,7 @@ type AdminKubeconfigRequest struct {
1616
metav1.TypeMeta `json:",inline"`
1717
// Standard object metadata.
1818
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
19+
1920
// Spec is the specification of the AdminKubeconfigRequest.
2021
Spec AdminKubeconfigRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
2122
// Status is the status of the AdminKubeconfigRequest.

api/external/gardener/pkg/apis/authentication/v1alpha1/types_viewerkubeconfigrequest.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
1+
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

@@ -16,6 +16,7 @@ type ViewerKubeconfigRequest struct {
1616
metav1.TypeMeta `json:",inline"`
1717
// Standard object metadata.
1818
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
19+
1920
// Spec is the specification of the ViewerKubeconfigRequest.
2021
Spec ViewerKubeconfigRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
2122
// Status is the status of the ViewerKubeconfigRequest.

api/external/gardener/pkg/apis/core/types.go

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,27 @@
1-
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
1+
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
22
//
33
// SPDX-License-Identifier: Apache-2.0
44

55
package core
66

77
import (
8+
autoscalingv1 "k8s.io/api/autoscaling/v1"
89
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
10+
"k8s.io/apimachinery/pkg/runtime"
911
)
1012

1113
const (
1214
// GardenerSeedLeaseNamespace is the namespace in which Gardenlet will report Seeds'
1315
// status using Lease resources for each Seed
1416
GardenerSeedLeaseNamespace = "gardener-system-seed-lease"
17+
// GardenerShootIssuerNamespace is the namespace in which Gardenlet
18+
// will sync service account issuer discovery documents
19+
// of Shoot clusters which require managed issuer
20+
GardenerShootIssuerNamespace = "gardener-system-shoot-issuer"
21+
// GardenerSystemPublicNamespace is the namespace which will contain a resources
22+
// describing gardener installation itself. The resources in this namespace
23+
// may be visible to all authenticated users.
24+
GardenerSystemPublicNamespace = "gardener-system-public"
1525
)
1626

1727
// Object is a core object resource.
@@ -49,7 +59,26 @@ type AccessRestriction struct {
4959
// allows to specify additional options.
5060
type AccessRestrictionWithOptions struct {
5161
AccessRestriction
62+
5263
// Options is a map of additional options for the access restriction.
5364
// +optional
5465
Options map[string]string
5566
}
67+
68+
// Extension contains type and provider information for extensions.
69+
type Extension struct {
70+
// Type is the type of the extension resource.
71+
Type string
72+
// ProviderConfig is the configuration passed to extension resource.
73+
ProviderConfig *runtime.RawExtension
74+
// Disabled allows to disable extensions that were marked as 'automatically enabled' by Gardener administrators.
75+
Disabled *bool
76+
}
77+
78+
// NamedResourceReference is a named reference to a resource.
79+
type NamedResourceReference struct {
80+
// Name of the resource reference.
81+
Name string
82+
// ResourceRef is a reference to a resource.
83+
ResourceRef autoscalingv1.CrossVersionObjectReference
84+
}

0 commit comments

Comments
 (0)