Skip to content

Commit

Permalink
refactor: enable single queue by default so the controller listens to…
Browse files Browse the repository at this point in the history
… all queues
  • Loading branch information
shreddedbacon committed Nov 2, 2022
1 parent 7f88c45 commit 4ef498b
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion .github/workflows/remote-controller.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,5 @@ 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: 1 addition & 2 deletions config/default/config.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
OVERRIDE_BUILD_DEPLOY_DIND_IMAGE
HARBOR_URL
HARBOR_API
ENABLE_SINGLE_QUEUE
HARBOR_API
7 changes: 1 addition & 6 deletions config/default/envs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,4 @@ spec:
valueFrom:
configMapKeyRef:
name: overrides
key: HARBOR_API
- name: ENABLE_SINGLE_QUEUE
valueFrom:
configMapKeyRef:
name: overrides
key: ENABLE_SINGLE_QUEUE
key: HARBOR_API
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func main() {
"The number of workers to start with.")
flag.IntVar(&rabbitRetryInterval, "rabbitmq-retry-interval", 30,
"The retry interval for rabbitmq.")
flag.BoolVar(&enableSingleQueue, "enable-single-queue", false, "Flag to have this controller use the single queue option.")
flag.BoolVar(&enableSingleQueue, "enable-single-queue", true, "Flag to have this controller use the single queue option.")
flag.StringVar(&leaderElectionID, "leader-election-id", "lagoon-builddeploy-leader-election-helper",
"The ID to use for leader election.")
flag.StringVar(&pendingMessageCron, "pending-message-cron", "15,45 * * * *",
Expand Down

0 comments on commit 4ef498b

Please sign in to comment.