Skip to content

Commit

Permalink
chore: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Oct 4, 2023
1 parent 5931e45 commit 6f0ab72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func run(cmd *cobra.Command, args []string) {
includeNamespaces := []string{}
if operatorNamespace != "" {
includeNamespaces = strings.Split(operatorNamespace, ",")
canary.SyncCanaryNamspaces = includeNamespaces
canary.CanaryNamespaces = includeNamespaces
}
runner.RunnerLabels = labels.LoadFromFile("/etc/podinfo/labels")

Expand Down
4 changes: 2 additions & 2 deletions pkg/jobs/canary/canary_jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var LogPass, LogFail bool

// List of namespaces whose canary specs should be synced.

Check failure on line 33 in pkg/jobs/canary/canary_jobs.go

View workflow job for this annotation

GitHub Actions / lint

ST1022: comment on exported var CanaryNamespaces should be of the form "CanaryNamespaces ..." (stylecheck)
// If empty, all namespaces will be synced
var SyncCanaryNamspaces []string
var CanaryNamespaces []string

var Kommons *kommons.Client
var Kubernetes kubernetes.Interface
Expand Down Expand Up @@ -350,7 +350,7 @@ func SyncCanaryJob(dbCanary pkg.Canary) error {
func SyncCanaryJobs() {
logger.Debugf("Syncing canary jobs")

canaries, err := db.GetAllCanariesForSync(SyncCanaryNamspaces...)
canaries, err := db.GetAllCanariesForSync(CanaryNamespaces...)
if err != nil {
logger.Errorf("Failed to get canaries: %v", err)

Expand Down

0 comments on commit 6f0ab72

Please sign in to comment.