Skip to content

Commit

Permalink
Remove the v1alpha2 API (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
ialidzhikov authored Mar 28, 2024
1 parent 613f8b1 commit c731e0d
Show file tree
Hide file tree
Showing 16 changed files with 2 additions and 850 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,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 `v1alpha2` to `v1alpha3`](docs/usage/registry-cache/migration-from-v1alpha2-to-v1alpha3.md) - learn how to migrate from the `v1alpha2` API version of the `RegistryConfig` to `v1alpha3`
- [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
48 changes: 0 additions & 48 deletions docs/usage/registry-cache/migration-from-v1alpha2-to-v1alpha3.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 @@ -26,7 +26,7 @@ bash "${CODE_GEN_DIR}/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:v1alpha2,v1alpha3" \
"registry:v1alpha3" \
--go-header-file "${PROJECT_ROOT}/hack/LICENSE_BOILERPLATE.txt"

bash "${CODE_GEN_DIR}/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 @@ -9,13 +9,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/v1alpha2"
"github.com/gardener/gardener-extension-registry-cache/pkg/apis/registry/v1alpha3"
)

var (
schemeBuilder = runtime.NewSchemeBuilder(
v1alpha2.AddToScheme,
v1alpha3.AddToScheme,
registry.AddToScheme,
setVersionPriority,
Expand All @@ -26,7 +24,7 @@ var (
)

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

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

This file was deleted.

89 changes: 0 additions & 89 deletions pkg/apis/registry/v1alpha2/conversions_test.go

This file was deleted.

30 changes: 0 additions & 30 deletions pkg/apis/registry/v1alpha2/defaults.go

This file was deleted.

67 changes: 0 additions & 67 deletions pkg/apis/registry/v1alpha2/defaults_test.go

This file was deleted.

12 changes: 0 additions & 12 deletions pkg/apis/registry/v1alpha2/doc.go

This file was deleted.

32 changes: 0 additions & 32 deletions pkg/apis/registry/v1alpha2/register.go

This file was deleted.

Loading

0 comments on commit c731e0d

Please sign in to comment.