Skip to content

Commit

Permalink
Cleanup core\v1alpha1 from local-setup (gardener#8000)
Browse files Browse the repository at this point in the history
  • Loading branch information
acumino authored May 31, 2023
1 parent f6bed26 commit e85964a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion docs/development/local_setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ service/gardener-apiserver created
service/gardener-admission-controller created
endpoints/gardener-apiserver created
endpoints/gardener-admission-controller created
apiservice.apiregistration.k8s.io/v1alpha1.core.gardener.cloud created
apiservice.apiregistration.k8s.io/v1beta1.core.gardener.cloud created
apiservice.apiregistration.k8s.io/v1alpha1.seedmanagement.gardener.cloud created
apiservice.apiregistration.k8s.io/v1alpha1.settings.gardener.cloud created
Expand Down
20 changes: 0 additions & 20 deletions hack/local-development/dev-setup-register-gardener
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ if [[ "$(uname -s)" == *"Darwin"* ]] || [[ "$(uname -s)" == "Linux" && "$(uname
APISERVER_EXTERNAL_NAME=host.docker.internal
fi

CORE_V1ALPHA1_APISERVICE_NAME="v1alpha1.core.gardener.cloud"
CORE_V1BETA1_APISERVICE_NAME="v1beta1.core.gardener.cloud"
SEEDMANAGEMENT_APISERVICE_NAME="v1alpha1.seedmanagement.gardener.cloud"
SETTINGS_APISERVICE_NAME="v1alpha1.settings.gardener.cloud"
Expand All @@ -63,10 +62,6 @@ if [[ $(k8s_env) == "$NODELESS" ]]; then
fi
ADMISSION_CONTROLLER_PORT_STRING=" port: $ADMISSION_CONTROLLER_SERVICE_PORT"

if kubectl get apiservice "$CORE_V1ALPHA1_APISERVICE_NAME" &> /dev/null; then
kubectl delete apiservice $CORE_V1ALPHA1_APISERVICE_NAME --wait=false
kubectl patch apiservice $CORE_V1ALPHA1_APISERVICE_NAME -p '{"metadata":{"finalizers":null}}' 2> /dev/null || true
fi
if kubectl get apiservice "$CORE_V1BETA1_APISERVICE_NAME" &> /dev/null; then
kubectl delete apiservice $CORE_V1BETA1_APISERVICE_NAME --wait=false
kubectl patch apiservice $CORE_V1BETA1_APISERVICE_NAME -p '{"metadata":{"finalizers":null}}' 2> /dev/null || true
Expand Down Expand Up @@ -175,21 +170,6 @@ fi
cat <<EOF | kubectl apply -f -
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: $CORE_V1ALPHA1_APISERVICE_NAME
spec:
insecureSkipTLSVerify: true
group: core.gardener.cloud
version: v1alpha1
groupPriorityMinimum: 9999
versionPriority: 19
service:
name: gardener-apiserver
namespace: garden
$APISERVICE_PORT_STRING
---
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
name: $CORE_V1BETA1_APISERVICE_NAME
spec:
Expand Down

0 comments on commit e85964a

Please sign in to comment.