Skip to content

Commit

Permalink
test: update test to use the new single queue
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Nov 2, 2022
1 parent 758eccb commit 770aac5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/remote-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,6 @@ jobs:
export HARBOR_API="http://harbor.$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[0].address}').nip.io:32080/api"
export KIND_NODE_IP="$(kubectl get nodes -o jsonpath='{.items[0].status.addresses[0].address}')"
export HARBOR_VERSION=${{matrix.harbor}}
export ENABLE_SINGLE_QUEUE=true
# export GO111MODULE=on
make controller-test
3 changes: 2 additions & 1 deletion config/default/config.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
OVERRIDE_BUILD_DEPLOY_DIND_IMAGE
HARBOR_URL
HARBOR_API
HARBOR_API
ENABLE_SINGLE_QUEUE
7 changes: 6 additions & 1 deletion config/default/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ spec:
valueFrom:
configMapKeyRef:
name: overrides
key: HARBOR_API
key: HARBOR_API
- name: ENABLE_SINGLE_QUEUE
valueFrom:
configMapKeyRef:
name: overrides
key: ENABLE_SINGLE_QUEUE
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ func main() {
mqUser = helpers.GetEnv("RABBITMQ_USERNAME", mqUser)
mqPass = helpers.GetEnv("RABBITMQ_PASSWORD", mqPass)
mqHost = helpers.GetEnv("RABBITMQ_HOSTNAME", mqHost)
enableSingleQueue = helpers.GetEnvBool("ENABLE_SINGLE_QUEUE", enableSingleQueue)
lagoonTargetName = helpers.GetEnv("LAGOON_TARGET_NAME", lagoonTargetName)
lagoonAppID = helpers.GetEnv("LAGOON_APP_ID", lagoonAppID)
pendingMessageCron = helpers.GetEnv("PENDING_MESSAGE_CRON", pendingMessageCron)
Expand Down

0 comments on commit 770aac5

Please sign in to comment.