Skip to content

Commit

Permalink
chore: remove appid from messages as this was the only reason for the…
Browse files Browse the repository at this point in the history
… mq fork
  • Loading branch information
shreddedbacon committed Jul 6, 2023
1 parent 2aca119 commit 0bb9910
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import (
var (
scheme = runtime.NewScheme()
setupLog = ctrl.Log.WithName("setup")
lagoonAppID string
lagoonTargetName string
mqUser string
mqPass string
Expand Down Expand Up @@ -178,8 +177,6 @@ func main() {
"The address the metric endpoint binds to.")
flag.StringVar(&lagoonTargetName, "lagoon-target-name", "ci-local-control-k8s",
"The name of the target as it is in lagoon.")
flag.StringVar(&lagoonAppID, "lagoon-app-id", "builddeploymonitor",
"The appID to use that will be sent with messages.")
flag.StringVar(&mqUser, "rabbitmq-username", "guest",
"The username of the rabbitmq user.")
flag.StringVar(&mqPass, "rabbitmq-password", "guest",
Expand Down Expand Up @@ -373,7 +370,6 @@ func main() {
mqPass = helpers.GetEnv("RABBITMQ_PASSWORD", mqPass)
mqHost = helpers.GetEnv("RABBITMQ_HOSTNAME", mqHost)
lagoonTargetName = helpers.GetEnv("LAGOON_TARGET_NAME", lagoonTargetName)
lagoonAppID = helpers.GetEnv("LAGOON_APP_ID", lagoonAppID)
pendingMessageCron = helpers.GetEnv("PENDING_MESSAGE_CRON", pendingMessageCron)
overrideBuildDeployImage = helpers.GetEnv("OVERRIDE_BUILD_DEPLOY_DIND_IMAGE", overrideBuildDeployImage)
namespacePrefix = helpers.GetEnv("NAMESPACE_PREFIX", namespacePrefix)
Expand Down Expand Up @@ -578,7 +574,6 @@ func main() {
Name: "lagoon-logs",
Exchange: "lagoon-logs",
Options: mq.Options{
"app_id": lagoonAppID,
"delivery_mode": "2",
"headers": "",
"content_type": "",
Expand All @@ -589,7 +584,6 @@ func main() {
Exchange: "lagoon-tasks",
RoutingKey: "controller",
Options: mq.Options{
"app_id": lagoonAppID,
"delivery_mode": "2",
"headers": "",
"content_type": "",
Expand Down

0 comments on commit 0bb9910

Please sign in to comment.