-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update go dependencies Signed-off-by: Waleed Malik <[email protected]> * Fix RBAC in helm charts: Signed-off-by: Waleed Malik <[email protected]> * Use golang 1.22.5 and corresponding build images Signed-off-by: Waleed Malik <[email protected]> * Add helm lint make target Signed-off-by: Waleed Malik <[email protected]> * Add icons for helm chart Signed-off-by: Waleed Malik <[email protected]> * Update Dockerfiles Signed-off-by: Waleed Malik <[email protected]> * Add NOTES.txt for charts Signed-off-by: Waleed Malik <[email protected]> * Enable automation for helm charts Signed-off-by: Waleed Malik <[email protected]> * Disable automation for helm charts Signed-off-by: Waleed Malik <[email protected]> * Remove dedicated topology Signed-off-by: Waleed Malik <[email protected]> * Update generated CRDs Signed-off-by: Waleed Malik <[email protected]> * Fix tests Signed-off-by: Waleed Malik <[email protected]> * Make controllers for CCM optional Signed-off-by: Waleed Malik <[email protected]> * Use upstream controller utils for finalizers Signed-off-by: Waleed Malik <[email protected]> * Additional prow jobs for code verification Signed-off-by: Waleed Malik <[email protected]> * Fix images Signed-off-by: Waleed Malik <[email protected]> * Upgrade to Envoy Proxy v1.31.0 Signed-off-by: Waleed Malik <[email protected]> * Refactored code Signed-off-by: Waleed Malik <[email protected]> * Add additional printer columns for loadbalancer and routes Signed-off-by: Waleed Malik <[email protected]> * Add option to disable Gateway API Signed-off-by: Waleed Malik <[email protected]> * Minor fixes Signed-off-by: Waleed Malik <[email protected]> --------- Signed-off-by: Waleed Malik <[email protected]>
- Loading branch information
1 parent
d38bce6
commit c14cd1e
Showing
57 changed files
with
937 additions
and
386 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ postsubmits: | |
preset-goproxy: "true" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- /bin/bash | ||
- -c | ||
|
@@ -60,35 +60,34 @@ postsubmits: | |
preset-goproxy: "true" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- "./hack/ci/upload-gocache.sh" | ||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 1Gi | ||
|
||
# - name: ci-push-kubelb-charts | ||
# always_run: true | ||
# decorate: true | ||
# clone_uri: "ssh://[email protected]/kubermatic/kubelb.git" | ||
# branches: | ||
# # Match on tags | ||
# - ^v\d+\.\d+\.\d+.* | ||
# reporter_config: | ||
# slack: | ||
# channel: dev-kubelb | ||
# labels: | ||
# preset-docker-push: "true" | ||
# preset-goproxy: "true" | ||
# spec: | ||
# containers: | ||
# - image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
# command: | ||
# - make | ||
# args: | ||
# - release-charts | ||
# resources: | ||
# requests: | ||
# cpu: 100m | ||
# memory: 500m | ||
# - name: ci-push-kubelb-charts | ||
# always_run: true | ||
# decorate: true | ||
# clone_uri: "ssh://[email protected]/kubermatic/kubelb.git" | ||
# branches: | ||
# # Match on tags | ||
# - ^v\d+\.\d+\.\d+.* | ||
# reporter_config: | ||
# slack: | ||
# channel: dev-kubelb | ||
# labels: | ||
# preset-docker-push: "true" | ||
# preset-goproxy: "true" | ||
# spec: | ||
# containers: | ||
# - image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
# command: | ||
# - make | ||
# args: | ||
# - release-charts | ||
# resources: | ||
# requests: | ||
# cpu: 100m | ||
# memory: 500m |
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 |
---|---|---|
|
@@ -39,7 +39,7 @@ presubmits: | |
preset-goproxy: "true" | ||
spec: | ||
containers: | ||
- image: golangci/golangci-lint:v1.59.0 | ||
- image: golangci/golangci-lint:v1.59.1 | ||
command: | ||
- make | ||
args: | ||
|
@@ -57,7 +57,7 @@ presubmits: | |
preset-goproxy: "true" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- make | ||
args: | ||
|
@@ -72,7 +72,7 @@ presubmits: | |
clone_uri: "ssh://[email protected]/kubermatic/kubelb.git" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- make | ||
args: | ||
|
@@ -84,7 +84,7 @@ presubmits: | |
clone_uri: "ssh://[email protected]/kubermatic/kubelb.git" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- make | ||
args: | ||
|
@@ -142,7 +142,7 @@ presubmits: | |
preset-goproxy: "true" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.22-4 | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
securityContext: | ||
privileged: true | ||
env: | ||
|
@@ -169,3 +169,47 @@ presubmits: | |
limits: | ||
memory: 16Gi | ||
cpu: 4 | ||
|
||
- name: pull-kubelb-verify-shfmt | ||
run_if_changed: "^hack/" | ||
decorate: true | ||
clone_uri: "ssh://[email protected]/kubermatic/kubelb.git" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- shfmt | ||
args: | ||
# -l list files whose formatting differs from shfmt's | ||
# -d error with a diff when the formatting differs | ||
# -i uint indent: 0 for tabs (default), >0 for number of spaces | ||
# -sr redirect operators will be followed by a space | ||
- "-l" | ||
- "-sr" | ||
- "-i" | ||
- "2" | ||
- "-d" | ||
- "hack" | ||
resources: | ||
requests: | ||
memory: 32Mi | ||
cpu: 50m | ||
limits: | ||
memory: 256Mi | ||
cpu: 250m | ||
|
||
- name: pull-kubelb-license-validation | ||
always_run: true | ||
decorate: true | ||
clone_uri: "ssh://[email protected]/kubermatic/kubelb.git" | ||
labels: | ||
preset-goproxy: "true" | ||
spec: | ||
containers: | ||
- image: quay.io/kubermatic/build:go-1.22-node-20-kind-0.23-11 | ||
command: | ||
- ./hack/verify-licenses.sh | ||
resources: | ||
requests: | ||
memory: 2Gi | ||
cpu: 2 |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Copyright 2024 The KubeLB Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
blacklist: | ||
- GPL-2.0 | ||
|
||
whitelist: | ||
- Apache-2.0 | ||
- BSD-2-Clause | ||
- BSD-3-Clause | ||
- FreeBSD | ||
- ISC | ||
- LGPL-3.0 | ||
- MIT | ||
- MPL-2.0 | ||
- NewBSD | ||
|
||
exceptions: | ||
- github.com/ajeddeloh/go-json # Since it's a fork, https://github.com/golang/go/blob/master/LICENSE |
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 |
---|---|---|
|
@@ -3,8 +3,13 @@ SHELL = /bin/bash -eu -o pipefail | |
# Image URL to use all building/pushing image targets | ||
KUBELB_IMG ?= quay.io/kubermatic/kubelb-manager | ||
KUBELB_CCM_IMG ?= quay.io/kubermatic/kubelb-ccm | ||
|
||
## Tool Versions | ||
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. | ||
ENVTEST_K8S_VERSION = 1.28.0 | ||
ENVTEST_K8S_VERSION = 1.30.0 | ||
KUSTOMIZE_VERSION ?= v5.4.3 | ||
CONTROLLER_TOOLS_VERSION ?= v0.15.0 | ||
GO_VERSION = 1.22.5 | ||
|
||
export GOPATH?=$(shell go env GOPATH) | ||
export CGO_ENABLED=0 | ||
|
@@ -13,10 +18,11 @@ export GO111MODULE=on | |
export GOFLAGS?=-mod=readonly -trimpath | ||
export GIT_TAG ?= $(shell git tag --points-at HEAD) | ||
|
||
GO_VERSION = 1.22.2 | ||
|
||
IMAGE_TAG = \ | ||
$(shell echo $$(git rev-parse HEAD && if [[ -n $$(git status --porcelain) ]]; then echo '-dirty'; fi)|tr -d ' ') | ||
|
||
VERSION = $(shell cat VERSION) | ||
|
||
CCM_IMAGE_NAME ?= $(KUBELB_CCM_IMG):$(IMAGE_TAG) | ||
KUBELB_IMAGE_NAME ?= $(KUBELB_IMG):$(IMAGE_TAG) | ||
|
||
|
@@ -71,6 +77,8 @@ manifests: generate controller-gen ## Generate WebhookConfiguration, ClusterRole | |
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations. | ||
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate/boilerplate.go.txt" paths="./..." | ||
|
||
update-codegen: generate controller-gen manifests fmt vet go-mod-tidy | ||
|
||
.PHONY: fmt | ||
fmt: ## Run go fmt against code. | ||
go fmt ./... | ||
|
@@ -88,6 +96,9 @@ yamllint: ## Run yamllint against code. | |
check-dependencies: ## Verify go.mod. | ||
go mod verify | ||
|
||
go-mod-tidy: | ||
go mod tidy | ||
|
||
verify-boilerplate: ## Run verify-boilerplate code. | ||
./hack/verify-boilerplate.sh | ||
|
||
|
@@ -185,10 +196,6 @@ KUSTOMIZE ?= $(LOCALBIN)/kustomize | |
CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen | ||
ENVTEST ?= $(LOCALBIN)/setup-envtest | ||
|
||
## Tool Versions | ||
KUSTOMIZE_VERSION ?= v5.3.0 | ||
CONTROLLER_TOOLS_VERSION ?= v0.14.0 | ||
|
||
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | ||
.PHONY: kustomize | ||
kustomize: $(KUSTOMIZE) ## Download kustomize locally if necessary. | ||
|
@@ -205,12 +212,19 @@ envtest: $(ENVTEST) ## Download envtest-setup locally if necessary. | |
$(ENVTEST): $(LOCALBIN) | ||
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest | ||
|
||
.PHONY: shfmt | ||
shfmt: | ||
shfmt -w -sr -i 2 hack | ||
|
||
HELM_DOCS ?= $(LOCALBIN)/helm-docs | ||
|
||
.PHONY: helm-docs | ||
helm-docs: $(HELM_DOCS) ## Download helm-docs locally if necessary. | ||
$(HELM_DOCS): $(LOCALBIN) | ||
test -s $(LOCALBIN)/helm-docs || GOBIN=$(LOCALBIN) go install github.com/norwoodj/helm-docs/cmd/[email protected] | ||
test -s $(LOCALBIN)/helm-docs || GOBIN=$(LOCALBIN) go install github.com/norwoodj/helm-docs/cmd/[email protected] | ||
|
||
helm-lint: | ||
helm lint charts/* | ||
|
||
generate-helm-docs: helm-docs | ||
$(LOCALBIN)/helm-docs charts/ | ||
|
@@ -222,5 +236,5 @@ bump-chart: | |
$(SED) -i "s/tag:.*/tag: $(IMAGE_TAG)/" charts/*/values.yaml | ||
|
||
.PHONY: release-charts helm-docs generate-helm-docs | ||
release-charts: bump-chart | ||
release-charts: helm-lint generate-helm-docs bump-chart | ||
CHART_VERSION=$(IMAGE_TAG) ./hack/release-helm-charts.sh |
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Thank you for installing KubeLB CCM! 🎉 | ||
|
||
Your release is named: {{ .Release.Name }} and exists in namespace: {{ .Release.Namespace }}. | ||
|
||
For more details, please check the official documentation at https://docs.kubermatic.com/kubelb |
Oops, something went wrong.