-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: rename project, align ci pipelines (#138)
* feat!: rename project, align ci pipelines * test: fix verfiy curl pod
- Loading branch information
Showing
44 changed files
with
332 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
project_name: k8skeycloak-controller | ||
project_name: keycloak-controller | ||
|
||
builds: | ||
- id: manager | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
# Image URL to use all building/pushing image targets | ||
IMG ?= k8skeycloak-controller:latest | ||
IMG ?= keycloak-controller:latest | ||
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. | ||
ENVTEST_K8S_VERSION = 1.23 | ||
ENVTEST_K8S_VERSION = 1.27 | ||
|
||
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set) | ||
ifeq (,$(shell go env GOBIN)) | ||
|
@@ -111,7 +111,7 @@ uninstall: manifests kustomize ## Uninstall CRDs from the K8s cluster specified | |
|
||
.PHONY: deploy | ||
deploy: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config. | ||
cd config/base/manager && $(KUSTOMIZE) edit set image ghcr.io/doodlescheduling/k8skeycloak-controller=${IMG} | ||
cd config/base/manager && $(KUSTOMIZE) edit set image ghcr.io/doodlescheduling/keycloak-controller=${IMG} | ||
$(KUSTOMIZE) build config/default | kubectl apply -f - | ||
|
||
.PHONY: undeploy | ||
|
@@ -122,22 +122,19 @@ TEST_PROFILE=keycloak-v20 | |
CLUSTER=kind | ||
|
||
.PHONY: kind-test | ||
kind-test: docker-build ## Deploy including test | ||
kind-test: ## Deploy including test | ||
kustomize build config/base/crd | kubectl --context kind-${CLUSTER} apply -f - | ||
kubectl --context kind-${CLUSTER} -n keycloak-system delete pods --all | ||
kind load docker-image ${IMG} --name ${CLUSTER} | ||
kustomize build config/tests/cases/${TEST_PROFILE} --enable-helm | kubectl --context kind-${CLUSTER} apply -f - | ||
kubectl --context kind-${CLUSTER} -n k8skeycloak-system delete pods --all | ||
kubectl --context kind-${CLUSTER} -n k8skeycloak-system wait --for=condition=Ready pods --all --timeout=3m | ||
kubectl --context kind-${CLUSTER} -n k8skeycloak-system wait keycloakrealm/test --for=condition=Ready --timeout=3m | ||
kubectl --context kind-${CLUSTER} -n k8skeycloak-system port-forward svc/keycloakx-http 8090:80 &>/dev/null & | ||
sleep 2 | ||
curl --fail http://localhost:8090/auth/realms/test/.well-known/openid-configuration | ||
kubectl --context kind-${CLUSTER} -n keycloak-system wait --for=condition=Ready pods -l control-plane=controller-manager -l app.kubernetes.io/managed-by!=Helm,verify!=yes --timeout=3m | ||
kubectl --context kind-${CLUSTER} -n keycloak-system wait --for=jsonpath='{.status.conditions[1].reason}'=PodCompleted pods -l app.kubernetes.io/managed-by!=Helm,verify=yes --timeout=3m | ||
|
||
CONTROLLER_GEN = $(GOBIN)/controller-gen | ||
.PHONY: controller-gen | ||
controller-gen: ## Download controller-gen locally if necessary. | ||
$(call go-install-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected]) | ||
cp config/base/crd/bases/* chart/k8skeycloak-controller/crds/ | ||
cp config/base/crd/bases/* chart/keycloak-controller/crds/ | ||
|
||
GOLANGCI_LINT = $(GOBIN)/golangci-lint | ||
.PHONY: golangci-lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.