-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: modify some codes about the bug of namespace is int #514
Conversation
e9fdbe3
to
e6a28f1
Compare
examples/vitual-cluster-demo.yaml
Outdated
promotePolicies: | ||
- labelSelector: | ||
matchLabels: | ||
kubernetes.io/hostname: kcs-zhisuan-test-ylc-s-bkgtc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kubernetes.io/hostname: kcs-zhisuan-test-ylc-s-bkgtc | |
kubernetes.io/hostname: kcs-zhisuan-test-ylc-s-bkgtc |
pkg/kubenest/util/cert/certs.go
Outdated
@@ -203,6 +203,7 @@ func apiServerAltNamesMutator(cfg *AltNamesMutatorConfig) (*certutil.AltNames, e | |||
net.IPv4(127, 0, 0, 1), | |||
net.IPv4(100, 71, 7, 52), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
net.IPv4(100, 71, 7, 52), | |
net.IPv4(100, 71, 7, 52), |
delete
@@ -136,10 +136,11 @@ func applyTemplatedManifests(component string, dynamicClient dynamic.Interface, | |||
templateData := bytesData | |||
// template doesn't suit for prometheus rules, we deploy it directly | |||
if component != constants.PrometheusRuleManifest { | |||
templateData, err = util.ParseTemplate(string(bytesData), templateMapping) | |||
templateBytes, err := util.ParseTemplate(string(bytesData), templateMapping) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
templateBytes, err := util.ParseTemplate(string(bytesData), templateMapping) | |
templateStr, err := util.ParseTemplate(string(bytesData), templateMapping) |
Signed-off-by: yuleichun2019 <yuleichun_yewu@cmss.chinamobile.com> modify some codes for templateString Signed-off-by: yuleichun2019 <yuleichun_yewu@cmss.chinamobile.com>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: duanmengkk, yuleichun-striving The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What does this PR do?
modify some codes about the bug of namespace is int
Which issue(s) does this PR fix?
Fixes #513
Special notes for your reviewer:
Does this PR introduce a user-facing change?