-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(agent): add vcluster crd and controller (#259)
* feat(agent): add vcluster crd and controller * fix vcluster/agent provisioning and improve cleanup logic * fix lint * support cluster bindings properly * minor fixes and improvements * bump go version in dockerfile * fix nil pointer * use operator helm cache based on tmpdir * improve vcluster/agent redeploy logic and values override * fix yaml/json values unmarshall * add external flag to virtual cluster crd * remove unused methods
- Loading branch information
Showing
29 changed files
with
6,027 additions
and
4,660 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
run: | ||
modules-download-mode: readonly | ||
allow-parallel-runners: true | ||
timeout: 5m | ||
|
||
linters: | ||
|
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 @@ | ||
FROM golang:1.22.4-alpine3.20 as builder | ||
FROM golang:1.22.6-alpine3.20 AS builder | ||
|
||
ARG TARGETARCH | ||
|
||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ $(LOCALBIN): | |
mkdir -p $(LOCALBIN) | ||
|
||
ENVTEST_K8S_VERSION := 1.28.3 | ||
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen | ||
CONTROLLER_GEN ?= $(shell which controller-gen) | ||
MOCKERY ?= $(shell which mockery) | ||
include tools.mk | ||
|
||
|
@@ -35,10 +35,6 @@ PRE = --ensure | |
help: ## Display this help. | ||
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST) | ||
|
||
.PHONY: controller-gen | ||
controller-gen: ## Download controller-gen locally if necessary. | ||
$(call go-get-tool,$(CONTROLLER_GEN),sigs.k8s.io/controller-tools/cmd/[email protected]) | ||
|
||
.PHONY: crd-docs | ||
crd-docs: ##generate docs from the CRDs | ||
$(CRDDOCS) --source-path=./api --renderer=markdown --output-path=./docs/api.md --config=config.yaml | ||
|
@@ -177,6 +173,10 @@ mockery: --tool | |
crd-ref-docs: TOOL = crd-ref-docs | ||
crd-ref-docs: --tool | ||
|
||
.PHONY: controller-gen | ||
controller-gen: TOOL = controller-gen | ||
controller-gen: --tool | ||
|
||
# go-get-tool will 'go get' any package $2 and install it to $1. | ||
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST)))) | ||
define go-get-tool | ||
|
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.