forked from kubernetes/cloud-provider-openstack
-
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.
[occm] Support re-use load balancer between Services (kubernetes#1648)
By default, different Services of LoadBalancer type should have different corresponding cloud load balancers, however, openstack-cloud-controller-manager allows multiple Services to share a single load balancer if the Octavia service supports the tag feature (since version 2.5). Added a new annotation `loadbalancer.openstack.org/load-balancer-id` that can be specified for creating Services. Added a new config option `[LoadBalancer] max-shared-lb` to limit the number of Services that share a load balancer. Check the doc for more details.
- Loading branch information
1 parent
c44d941
commit 197604c
Showing
15 changed files
with
1,484 additions
and
736 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 |
---|---|---|
|
@@ -23,7 +23,6 @@ DEST := $(GOPATH)/src/$(GIT_HOST)/$(BASE_DIR) | |
SOURCES := $(shell find $(DEST) -name '*.go' 2>/dev/null) | ||
HAS_LINT := $(shell command -v golint;) | ||
HAS_GOX := $(shell command -v gox;) | ||
HAS_IMPORT_BOSS := $(shell command -v import-boss;) | ||
GOX_PARALLEL ?= 3 | ||
|
||
TARGETS ?= darwin/amd64 linux/amd64 linux/386 linux/arm linux/arm64 linux/ppc64le linux/s390x | ||
|
@@ -156,7 +155,7 @@ build-cmd-%: work $(SOURCES) | |
|
||
test: unit functional | ||
|
||
check: work fmt vet lint import-boss | ||
check: work fmt vet lint | ||
|
||
unit: work | ||
go test -tags=unit $(shell go list ./... | sed -e '/sanity/ { N; d; }' | sed -e '/tests/ {N; d;}') $(TESTARGS) | ||
|
@@ -176,17 +175,10 @@ fmt: | |
lint: | ||
ifndef HAS_LINT | ||
echo "installing lint" | ||
GO111MODULE=off go get -u golang.org/x/lint/golint | ||
go get -u golang.org/x/lint/golint | ||
endif | ||
hack/verify-golint.sh | ||
|
||
import-boss: | ||
ifndef HAS_IMPORT_BOSS | ||
echo "installing import-boss" | ||
go install k8s.io/code-generator/cmd/[email protected] | ||
endif | ||
hack/verify-import-boss.sh | ||
|
||
vet: | ||
go vet ./... | ||
|
||
|
@@ -333,5 +325,5 @@ dist: build-cross | |
$(DIST_DIRS) zip -r cloud-provider-openstack-$(VERSION)-{}.zip {} \; \ | ||
) | ||
|
||
.PHONY: bindep build clean cover work docs fmt functional lint import-boss realclean \ | ||
.PHONY: bindep build clean cover work docs fmt functional lint realclean \ | ||
relnotes test translation version build-cross dist |
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.