Skip to content

Commit

Permalink
Remove the v1alpha1 API
Browse files Browse the repository at this point in the history
  • Loading branch information
ialidzhikov committed Feb 7, 2024
1 parent 876e403 commit 7244869
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 894 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Gardener extension controller which deploys pull-through caches for container re

- [Configuring the Registry Cache Extension](docs/usage/registry-cache/configuration.md) - learn what is the use-case for a pull-through cache, how to enable it and configure it
- [How to provide credentials for upstream repository?](docs/usage/registry-cache/upstream-credentials.md)
- [Migration from `v1alpha1` to `v1alpha2`](docs/usage/registry-cache/migration-from-v1alpha1-to-v1alpha2.md) - learn how to migrate from the `v1alpha1` API version of the `RegistryConfig` to `v1alpha2`
- [Configuring the Registry Mirror Extension](docs/usage/registry-mirror/configuration.md) - learn what is the use-case for a registry mirror, how to enable and configure it

## Local setup and development
Expand Down
37 changes: 0 additions & 37 deletions docs/usage/registry-cache/migration-from-v1alpha1-to-v1alpha2.md

This file was deleted.

2 changes: 1 addition & 1 deletion hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ bash "${PROJECT_ROOT}"/vendor/k8s.io/code-generator/generate-internal-groups.sh
github.com/gardener/gardener-extension-registry-cache/pkg/client \
github.com/gardener/gardener-extension-registry-cache/pkg/apis \
github.com/gardener/gardener-extension-registry-cache/pkg/apis \
"registry:v1alpha1,v1alpha2" \
"registry:v1alpha2" \
--go-header-file "${PROJECT_ROOT}/vendor/github.com/gardener/gardener/hack/LICENSE_BOILERPLATE.txt"

bash "${PROJECT_ROOT}"/vendor/k8s.io/code-generator/generate-internal-groups.sh \
Expand Down
4 changes: 1 addition & 3 deletions pkg/apis/registry/install/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ import (
utilruntime "k8s.io/apimachinery/pkg/util/runtime"

"github.com/gardener/gardener-extension-registry-cache/pkg/apis/registry"
"github.com/gardener/gardener-extension-registry-cache/pkg/apis/registry/v1alpha1"
"github.com/gardener/gardener-extension-registry-cache/pkg/apis/registry/v1alpha2"
)

var (
schemeBuilder = runtime.NewSchemeBuilder(
v1alpha1.AddToScheme,
v1alpha2.AddToScheme,
registry.AddToScheme,
setVersionPriority,
Expand All @@ -36,7 +34,7 @@ var (
)

func setVersionPriority(scheme *runtime.Scheme) error {
return scheme.SetVersionPriority(v1alpha2.SchemeGroupVersion, v1alpha1.SchemeGroupVersion)
return scheme.SetVersionPriority(v1alpha2.SchemeGroupVersion)
}

// Install installs all APIs in the scheme.
Expand Down
53 changes: 0 additions & 53 deletions pkg/apis/registry/v1alpha1/conversions.go

This file was deleted.

121 changes: 0 additions & 121 deletions pkg/apis/registry/v1alpha1/conversions_test.go

This file was deleted.

33 changes: 0 additions & 33 deletions pkg/apis/registry/v1alpha1/defaults.go

This file was deleted.

73 changes: 0 additions & 73 deletions pkg/apis/registry/v1alpha1/defaults_test.go

This file was deleted.

22 changes: 0 additions & 22 deletions pkg/apis/registry/v1alpha1/doc.go

This file was deleted.

Loading

0 comments on commit 7244869

Please sign in to comment.