Skip to content

Commit

Permalink
fix build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Sep 30, 2024
1 parent d850c2d commit 02610ba
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkg/controller/stacks/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package stacks
import (
"context"

"github.com/pluralsh/deployment-operator/cmd/harness/args"
corev1 "k8s.io/api/core/v1"
apierrs "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand All @@ -13,18 +12,20 @@ import (

const (
jobRunSecretName = "job-run-env"
envConsoleUrl = "CONSOLE_URL"
envConsoleToken = "CONSOLE_TOKEN"
)

func (r *StackReconciler) getRunSecretData() map[string]string {
return map[string]string{
args.EnvConsoleUrl: r.consoleURL,
args.EnvConsoleToken: r.deployToken,
envConsoleUrl: r.consoleURL,
envConsoleToken: r.deployToken,
}
}

func (r *StackReconciler) hasRunSecretData(data map[string][]byte) bool {
token, hasToken := data[args.EnvConsoleToken]
url, hasUrl := data[args.EnvConsoleUrl]
token, hasToken := data[envConsoleToken]
url, hasUrl := data[envConsoleUrl]
return hasToken && hasUrl && string(token) == r.deployToken && string(url) == r.consoleURL
}

Expand Down

0 comments on commit 02610ba

Please sign in to comment.