Skip to content

Commit

Permalink
Use camel case instead of snake case
Browse files Browse the repository at this point in the history
  • Loading branch information
wangchenglong01 authored and oilbeater committed Feb 18, 2022
1 parent 046448b commit af0baa0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/ovn_leader_checker/ovn.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ import (
)

const (
EnvSSL = "ENABLE_SSL"
EnvPodName = "POD_NAME"
EnvPodNameSpace = "POD_NAMESPACE"
OvnNorthdPid = "/var/run/ovn/ovn-northd.pid"
DEFAULT_PROBE_INTERVAL = 15000
EnvSSL = "ENABLE_SSL"
EnvPodName = "POD_NAME"
EnvPodNameSpace = "POD_NAMESPACE"
OvnNorthdPid = "/var/run/ovn/ovn-northd.pid"
DefaultProbeInterval = 15000
)

// Configuration is the controller conf
Expand All @@ -41,7 +41,7 @@ type Configuration struct {
func ParseFlags() (*Configuration, error) {
var (
argKubeConfigFile = pflag.String("kubeconfig", "", "Path to kubeconfig file with authorization and master location information. If not set use the inCluster token.")
argProbeInterval = pflag.Int("probeInterval", DEFAULT_PROBE_INTERVAL, "interval of probing leader: ms unit")
argProbeInterval = pflag.Int("probeInterval", DefaultProbeInterval, "interval of probing leader: ms unit")
)

klogFlags := flag.NewFlagSet("klog", flag.ContinueOnError)
Expand All @@ -68,7 +68,7 @@ func ParseFlags() (*Configuration, error) {
if err != nil {
defconfig := &Configuration{
KubeConfigFile: "",
ProbeInterval: DEFAULT_PROBE_INTERVAL,
ProbeInterval: DefaultProbeInterval,
}
return defconfig, err
}
Expand All @@ -80,7 +80,7 @@ func ParseFlags() (*Configuration, error) {
return config, nil
}

// funcs to check apiserver alive
// KubeClientInit funcs to check apiserver alive
func KubeClientInit(cfg *Configuration) error {
// init kubeconfig here
var kubecfg *rest.Config
Expand Down

0 comments on commit af0baa0

Please sign in to comment.