Skip to content

Commit

Permalink
V2 bdd (#286)
Browse files Browse the repository at this point in the history
* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: added makefile for test-bdd module

Signed-off-by: sbadla1 <[email protected]>

* #2122: added makefile for test-bdd module

Signed-off-by: sbadla1 <[email protected]>

* #2122: update rolling-update template

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>

* #2122: bdd changes for v2

Signed-off-by: sbadla1 <[email protected]>
  • Loading branch information
sahilbadla authored Aug 3, 2021
1 parent 998de0d commit 835fd0d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bdd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,6 @@ jobs:
$HOME/go/bin/godog
- name: Cleanup
run: kubectl delete deployment upgrade-manager-controller-manager -n upgrade-manager-system
run: |
kubectl delete deployment upgrade-manager-controller-manager -n upgrade-manager-system
kubectl delete ru test-rollup -n upgrade-manager-system
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ test: generate fmt vet manifests
test -f ${ENVTEST_ASSETS_DIR}/setup-envtest.sh || curl -sSLo ${ENVTEST_ASSETS_DIR}/setup-envtest.sh https://raw.githubusercontent.com/kubernetes-sigs/controller-runtime/v0.7.0/hack/setup-envtest.sh
source ${ENVTEST_ASSETS_DIR}/setup-envtest.sh; fetch_envtest_tools $(ENVTEST_ASSETS_DIR); setup_envtest_env $(ENVTEST_ASSETS_DIR); go test ./... -coverprofile coverage.txt
go tool cover -html=./coverage.txt -o cover.html
$(MAKE) -C test-bdd/ test

# make test target for test-bdd module
test-bdd: $(MAKE) -C test-bdd/ test

# Build manager binary
manager: generate fmt vet
Expand Down
5 changes: 3 additions & 2 deletions config/default/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: test-system
namespace: upgrade-manager-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: test-
namePrefix: upgrade-manager-

# Labels to add to all resources and selectors.
#commonLabels:
Expand All @@ -25,6 +25,7 @@ bases:
#- ../prometheus

patchesStrategicMerge:
- manager_image_patch.yaml
# Protect the /metrics endpoint by putting it behind auth.
# If you want your controller-manager to expose the /metrics
# endpoint w/o any authn/z, please comment the following line.
Expand Down
2 changes: 0 additions & 2 deletions config/default/manager_auth_proxy_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,4 @@ spec:
name: https
- name: manager
args:
- "--health-probe-bind-address=:8081"
- "--metrics-bind-address=127.0.0.1:8080"
- "--leader-elect"
2 changes: 1 addition & 1 deletion config/default/manager_image_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ spec:
spec:
containers:
# Change the value of image field below to your controller image URL
- image: keikoproj/rolling-upgrade-controller:1.0.0
- image: keikoproj/rolling-upgrade-controller:controller-v2
name: manager

0 comments on commit 835fd0d

Please sign in to comment.