-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(agent): add vcluster crd and controller #259
Merged
Merged
Changes from 12 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
99bb9ad
feat(agent): add vcluster crd and controller
floreks 4fa6ee1
fix vcluster/agent provisioning and improve cleanup logic
floreks 7d57790
fix lint
floreks b7d601c
Merge remote-tracking branch 'origin/main' into sebastian/prod-2544-v…
floreks 0046884
support cluster bindings properly
floreks c8e0db6
minor fixes and improvements
floreks f5869f5
bump go version in dockerfile
floreks c437b0e
fix nil pointer
floreks 232c2f5
use operator helm cache based on tmpdir
floreks e8b12f4
improve vcluster/agent redeploy logic and values override
floreks 9107227
fix yaml/json values unmarshall
floreks ab5b178
add external flag to virtual cluster crd
floreks 68da2a2
remove unused methods
floreks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Check notice
Code scanning / Trivy
No HEALTHCHECK defined Low