diff --git a/go.mod b/go.mod index 181a494a..c5fb8188 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.0 require ( github.com/ahmetb/gen-crd-api-reference-docs v0.3.0 - github.com/gardener/gardener v1.80.1 + github.com/gardener/gardener v1.80.4 github.com/go-logr/logr v1.2.4 github.com/onsi/ginkgo/v2 v2.11.0 github.com/onsi/gomega v1.27.10 diff --git a/go.sum b/go.sum index aef10edc..fbd673df 100644 --- a/go.sum +++ b/go.sum @@ -136,8 +136,8 @@ github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4 github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= github.com/gardener/etcd-druid v0.19.2 h1:Z8TTbmVUxZ7UWU5iJAwUHUI6A9E5Mfd5JcvokVfYH1A= github.com/gardener/etcd-druid v0.19.2/go.mod h1:0Q9nKPiONDac/Gr0SZYFkVXHGt/Yt//rcRfDIUfftZo= -github.com/gardener/gardener v1.80.1 h1:VWDqZbf7E9UGWF8wYOtrbsYCXZWKYZ/+uxEY6/fZCiA= -github.com/gardener/gardener v1.80.1/go.mod h1:6X6NgG25u2qdhrGVndfHJnA8hOc6r/2UwtnJK+/9g2Q= +github.com/gardener/gardener v1.80.4 h1:2RzENvQ0TuXqLwrCOsVwWFc3B3btSLrj5Uu0HGvOY7A= +github.com/gardener/gardener v1.80.4/go.mod h1:6X6NgG25u2qdhrGVndfHJnA8hOc6r/2UwtnJK+/9g2Q= github.com/gardener/hvpa-controller/api v0.5.0 h1:f4F3O7YUrenwh4S3TgPREPiB287JjjUiUL18OqPLyAA= github.com/gardener/hvpa-controller/api v0.5.0/go.mod h1:QQl3ELkCaki+8RhXl0FZMfvnm0WCGwGJlGmrxJj6lvM= github.com/gardener/machine-controller-manager v0.48.1 h1:Oxr5e6gRm7P40Ds4nGlga/0nmfF7cH4rOfjthR6Mm38= diff --git a/pkg/apis/registry/helper/helper_test.go b/pkg/apis/registry/helper/helper_test.go index 800cbccc..c050879f 100644 --- a/pkg/apis/registry/helper/helper_test.go +++ b/pkg/apis/registry/helper/helper_test.go @@ -49,12 +49,12 @@ var _ = Describe("Helpers", func() { "docker.io", false, registry.RegistryCache{}, ), - Entry("no cache with the given upsteam", + Entry("no cache with the given upstream", []registry.RegistryCache{{Upstream: "gcr.io"}, {Upstream: "quay.io"}, {Upstream: "registry.k8s.io"}}, "docker.io", false, registry.RegistryCache{}, ), - Entry("with cache with the given upsteam", + Entry("with cache with the given upstream", []registry.RegistryCache{{Upstream: "gcr.io"}, {Upstream: "quay.io"}, {Upstream: "docker.io", Size: &size}, {Upstream: "registry.k8s.io"}}, "docker.io", true, registry.RegistryCache{Upstream: "docker.io", Size: &size}, diff --git a/pkg/component/registrycaches/registrycaches.go b/pkg/component/registrycaches/registrycaches.go index 55130425..9994424f 100644 --- a/pkg/component/registrycaches/registrycaches.go +++ b/pkg/component/registrycaches/registrycaches.go @@ -271,6 +271,9 @@ func computeResourcesDataForRegistryCache(cache *v1alpha1.RegistryCache, image s corev1.ResourceStorage: *cache.Size, }, }, + // We need to explicitly set the spec.storageClassName to default as marking the Gardener managed StorageClass as the default one is configurable on provider extensions side. + // For example, for provider-aws see the storage.managedDefaultClass field in the ControlPlaneConfig (https://github.com/gardener/gardener-extension-provider-aws/blob/v1.48.0/docs/usage/usage.md#controlplaneconfig). + StorageClassName: pointer.String("default"), }, }, }, diff --git a/pkg/component/registrycaches/registrycaches_test.go b/pkg/component/registrycaches/registrycaches_test.go index 5c3b8579..2a29dfdb 100644 --- a/pkg/component/registrycaches/registrycaches_test.go +++ b/pkg/component/registrycaches/registrycaches_test.go @@ -203,6 +203,7 @@ spec: resources: requests: storage: ` + size + ` + storageClassName: default status: {} status: availableReplicas: 0 diff --git a/vendor/modules.txt b/vendor/modules.txt index 18cce22a..609f31e0 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -74,7 +74,7 @@ github.com/fsnotify/fsnotify # github.com/gardener/etcd-druid v0.19.2 ## explicit; go 1.20 github.com/gardener/etcd-druid/api/v1alpha1 -# github.com/gardener/gardener v1.80.1 +# github.com/gardener/gardener v1.80.4 ## explicit; go 1.21 github.com/gardener/gardener/.github github.com/gardener/gardener/.github/ISSUE_TEMPLATE