Skip to content

Commit b9755e7

Browse files
authored
Merge pull request #159 from hangscer8/fix_log_typo
Fix log typo
2 parents 2ce8b94 + 6520d2c commit b9755e7

File tree

6 files changed

+11
-9
lines changed

6 files changed

+11
-9
lines changed

api/hack/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function util::verify_go_version {
5353
IFS=" " read -ra go_version <<< "$(GOFLAGS='' go version)"
5454
if [[ "${MIN_Go_VERSION}" != $(echo -e "${MIN_Go_VERSION}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
5555
echo "Detected go version: ${go_version[*]}."
56-
echo "kpanda requires ${MIN_Go_VERSION} or greater."
56+
echo "kubean requires ${MIN_Go_VERSION} or greater."
5757
echo "Please install ${MIN_Go_VERSION} or later."
5858
exit 1
5959
fi

cmd/kubean-operator/app/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func StartManager(ctx context.Context, opt *Options) error {
8989
return err
9090
}
9191
if err := controllerManager.Start(ctx); err != nil {
92-
klog.Errorf("ControllerManager Egress exit ,%s", err)
92+
klog.Errorf("KubeanOperator ControllerManager exit ,%s", err)
9393
return err
9494
}
9595
return nil

cmd/kubean-operator/app/options.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const (
1616

1717
type Options struct {
1818
LeaderElection componentbaseconfig.LeaderElectionConfiguration
19-
// KubeAPIQPS is the QPS to use while talking with kpanda-apiserver.
19+
// KubeAPIQPS is the QPS to use while talking with kubean-apiserver.
2020
BindAddress string
2121
// SecurePort is the port that the server serves at.
2222
SecurePort int
2323

2424
KubeAPIQPS float32
25-
// KubeAPIBurst is the burst to allow while talking with kpanda-apiserver.
25+
// KubeAPIBurst is the burst to allow while talking with kubean-apiserver.
2626
KubeAPIBurst int
2727
}
2828

@@ -34,6 +34,8 @@ func NewOptions() *Options {
3434
ResourceNamespace: util.GetCurrentNSOrDefault(),
3535
ResourceName: "kubean-controller",
3636
},
37+
KubeAPIQPS: 100.0,
38+
KubeAPIBurst: 100,
3739
}
3840
}
3941

@@ -44,8 +46,8 @@ func (o *Options) AddFlags(flags *pflag.FlagSet) {
4446
"The secure port on which to serve HTTPS.")
4547
flags.BoolVar(&o.LeaderElection.LeaderElect, "leader-elect", true, "Start a leader election client and gain leadership before executing the main loop. Enable this when running replicated components for high availability.")
4648
flags.StringVar(&o.LeaderElection.ResourceNamespace, "leader-elect-resource-namespace", "default", "The namespace of resource object that is used for locking during leader election.")
47-
flags.Float32Var(&o.KubeAPIQPS, "kube-api-qps", 40.0, "QPS to use while talking with kpanda-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags.")
48-
flags.IntVar(&o.KubeAPIBurst, "kube-api-burst", 60, "Burst to use while talking with kpanda-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags.")
49+
flags.Float32Var(&o.KubeAPIQPS, "kube-api-qps", 100.0, "QPS to use while talking with kubean-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags.")
50+
flags.IntVar(&o.KubeAPIBurst, "kube-api-burst", 100, "Burst to use while talking with kubean-apiserver. Doesn't cover events and node heartbeat apis which rate limiting is controlled by a different set of flags.")
4951
}
5052

5153
func (o *Options) Validate() field.ErrorList {

hack/images.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ REPO_PATTERN='.*/.*'
1313
# Return: All images with repo (if not specified in hack/images.manifest will be the default)
1414
# and tags are required in installing kpanda
1515
function images::manifest() {
16-
local kubean_version=$1 # kpanda version was ought to be provided
16+
local kubean_version=$1 # kubean version was ought to be provided
1717
local default_registry=${2:-$DEFAULT_REGISTRY}
1818

1919
manifest=$(cat $IMAGE_MANIFEST_PATH | sed "s/#KUBEAN_VERSION#/${kubean_version}/g")

hack/util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function util::verify_go_version {
5353
IFS=" " read -ra go_version <<< "$(GOFLAGS='' go version)"
5454
if [[ "${MIN_Go_VERSION}" != $(echo -e "${MIN_Go_VERSION}\n${go_version[2]}" | sort -s -t. -k 1,1 -k 2,2n -k 3,3n | head -n1) && "${go_version[2]}" != "devel" ]]; then
5555
echo "Detected go version: ${go_version[*]}."
56-
echo "kpanda requires ${MIN_Go_VERSION} or greater."
56+
echo "kubean requires ${MIN_Go_VERSION} or greater."
5757
echo "Please install ${MIN_Go_VERSION} or later."
5858
exit 1
5959
fi

pkg/version/base.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package version
33
// Base version information.
44
//
55
// This is the fallback data used when version information from git is not
6-
// provided via go ldflags. It provides an approximation of the kpanda
6+
// provided via go ldflags. It provides an approximation of the kubean
77
// version for ad-hoc builds (e.g. `go build`) that cannot get the version
88
// information from git.
99
var (

0 commit comments

Comments
 (0)