Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

Add KCP APIs to scheme, enforce kind image version #34

Merged
merged 1 commit into from
Dec 6, 2022
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
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ kind-image: docker-build ## Load the controller-manager image into the kind clus
kind load docker-image $(REGISTRY)/$(IMG) --name controller-runtime-example

$(ARTIFACT_DIR)/kind.kubeconfig: $(ARTIFACT_DIR) ## Run a kind cluster and generate a $KUBECONFIG for it.
@if ! kind get clusters --quiet | grep --quiet controller-runtime-example; then kind create cluster --name controller-runtime-example; fi
@if ! kind get clusters --quiet | grep --quiet controller-runtime-example; then kind create cluster --name controller-runtime-example --image kindest/node:v1.24.2; fi
kind get kubeconfig --name controller-runtime-example > $(ARTIFACT_DIR)/kind.kubeconfig

$(ARTIFACT_DIR): ## Create a directory for test artifacts.
Expand Down Expand Up @@ -211,7 +211,7 @@ ifndef ignore-not-found
ignore-not-found = false
endif

KUBECONFIG ?= $(abspath ~/.kube/config )
KUBECONFIG ?= $(abspath ${HOME}/.kube/config )

.PHONY: install
install: manifests $(KUSTOMIZE) ## Install APIResourceSchemas and APIExport into kcp (using $KUBECONFIG or ~/.kube/config).
Expand Down
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ var (

func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))
utilruntime.Must(apisv1alpha1.AddToScheme(scheme))
utilruntime.Must(datav1alpha1.AddToScheme(scheme))
// +kubebuilder:scaffold:scheme

Expand Down