Skip to content

Commit

Permalink
rename bootstrap token
Browse files Browse the repository at this point in the history
  • Loading branch information
jswoods committed Nov 17, 2023
1 parent 459ae75 commit a849065
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/kubernetes/humio_bootstrap_tokens.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package kubernetes

import (
"context"
"fmt"

humiov1alpha1 "github.com/humio/humio-operator/api/v1alpha1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -43,7 +42,7 @@ func LabelsForHumioBootstrapToken(clusterName string) map[string]string {
func ConstructHumioBootstrapToken(humioClusterName string, humioClusterNamespace string) *humiov1alpha1.HumioBootstrapToken {
return &humiov1alpha1.HumioBootstrapToken{
ObjectMeta: metav1.ObjectMeta{
Name: fmt.Sprintf("%s-%s", humioClusterName, BootstrapTokenNameSuffix),
Name: humioClusterName,
Namespace: humioClusterNamespace,
Labels: LabelsForHumioBootstrapToken(humioClusterName),
},
Expand Down

0 comments on commit a849065

Please sign in to comment.