Skip to content

Commit

Permalink
sysdump: avoid redefining constants
Browse files Browse the repository at this point in the history
Reuse constants defined in the 'defaults' package.

Signed-off-by: Bruno Miguel Custódio <brunomcustodio@gmail.com>
  • Loading branch information
bmcustodio committed Sep 2, 2021
1 parent 03824ac commit de37ae0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions sysdump/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,26 @@ package sysdump
import (
"regexp"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"

"github.com/cilium/cilium-cli/defaults"
)

const (
awsNodeDaemonSetName = "aws-node"
awsNodeDaemonSetNamespace = "kube-system"
awsNodeDaemonSetNamespace = metav1.NamespaceSystem
ciliumAgentContainerName = "cilium-agent"
ciliumConfigConfigMapName = "cilium-config"
ciliumDaemonSetName = "cilium"
ciliumConfigConfigMapName = defaults.ConfigMapName
ciliumDaemonSetName = defaults.AgentDaemonSetName
ciliumEtcdSecretsSecretName = "cilium-etcd-secrets"
ciliumOperatorDeploymentName = "cilium-operator"
clustermeshApiserverDeploymentName = "clustermesh-apiserver"
ciliumOperatorDeploymentName = defaults.OperatorDeploymentName
clustermeshApiserverDeploymentName = defaults.ClusterMeshDeploymentName
hubbleContainerName = "hubble"
hubbleDaemonSetName = "hubble"
hubbleRelayContainerName = "hubble-relay"
hubbleRelayDeploymentName = "hubble-relay"
hubbleUIDeploymentName = "hubble-ui"
hubbleRelayDeploymentName = defaults.RelayDeploymentName
hubbleUIDeploymentName = defaults.HubbleUIDeploymentName
redacted = "XXXXXX"
)

Expand Down

0 comments on commit de37ae0

Please sign in to comment.