Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,5 @@ tasks:
sources:
- hack/external-apis/*
cmds:
# - 'go run {{.ROOT_DIR}}/hack/external-apis/main.go'
- 'echo "TODO: Temporarily disabled due to github problems."'
- 'go run {{.ROOT_DIR}}/hack/external-apis/main.go'
internal: true
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ func addKnownTypes(scheme *runtime.Scheme) error {
&ControlPlaneConfig{},
&WorkerConfig{},
&WorkerStatus{},
&WorkloadIdentityConfig{},
&BackupBucketConfig{},
)
return nil
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0
package v1alpha1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0

Expand All @@ -16,7 +16,6 @@ type AdminKubeconfigRequest struct {
metav1.TypeMeta `json:",inline"`
// Standard object metadata.
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Spec is the specification of the AdminKubeconfigRequest.
Spec AdminKubeconfigRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
// Status is the status of the AdminKubeconfigRequest.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0

Expand All @@ -16,7 +16,6 @@ type ViewerKubeconfigRequest struct {
metav1.TypeMeta `json:",inline"`
// Standard object metadata.
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Spec is the specification of the ViewerKubeconfigRequest.
Spec ViewerKubeconfigRequestSpec `json:"spec" protobuf:"bytes,2,opt,name=spec"`
// Status is the status of the ViewerKubeconfigRequest.
Expand Down
31 changes: 1 addition & 30 deletions api/external/gardener/pkg/apis/core/types.go
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
// SPDX-FileCopyrightText: SAP SE or an SAP affiliate company and Gardener contributors
// SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Gardener contributors
//
// SPDX-License-Identifier: Apache-2.0

package core

import (
autoscalingv1 "k8s.io/api/autoscaling/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime"
)

const (
// GardenerSeedLeaseNamespace is the namespace in which Gardenlet will report Seeds'
// status using Lease resources for each Seed
GardenerSeedLeaseNamespace = "gardener-system-seed-lease"
// GardenerShootIssuerNamespace is the namespace in which Gardenlet
// will sync service account issuer discovery documents
// of Shoot clusters which require managed issuer
GardenerShootIssuerNamespace = "gardener-system-shoot-issuer"
// GardenerSystemPublicNamespace is the namespace which will contain a resources
// describing gardener installation itself. The resources in this namespace
// may be visible to all authenticated users.
GardenerSystemPublicNamespace = "gardener-system-public"
)

// Object is a core object resource.
Expand Down Expand Up @@ -59,26 +49,7 @@ type AccessRestriction struct {
// allows to specify additional options.
type AccessRestrictionWithOptions struct {
AccessRestriction

// Options is a map of additional options for the access restriction.
// +optional
Options map[string]string
}

// Extension contains type and provider information for extensions.
type Extension struct {
// Type is the type of the extension resource.
Type string
// ProviderConfig is the configuration passed to extension resource.
ProviderConfig *runtime.RawExtension
// Disabled allows to disable extensions that were marked as 'automatically enabled' by Gardener administrators.
Disabled *bool
}

// NamedResourceReference is a named reference to a resource.
type NamedResourceReference struct {
// Name of the resource reference.
Name string
// ResourceRef is a reference to a resource.
ResourceRef autoscalingv1.CrossVersionObjectReference
}
Loading
Loading