Skip to content
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

Merged
merged 1 commit into from
May 10, 2024

Conversation

yuleichun-striving
Copy link
Contributor

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?


promotePolicies:
- labelSelector:
matchLabels:
kubernetes.io/hostname: kcs-zhisuan-test-ylc-s-bkgtc
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
kubernetes.io/hostname: kcs-zhisuan-test-ylc-s-bkgtc
kubernetes.io/hostname: kcs-zhisuan-test-ylc-s-bkgtc

@@ -203,6 +203,7 @@ func apiServerAltNamesMutator(cfg *AltNamesMutatorConfig) (*certutil.AltNames, e
net.IPv4(127, 0, 0, 1),
net.IPv4(100, 71, 7, 52),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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>
@duanmengkk
Copy link
Contributor

/lgtm
/approve

@kosmos-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kosmos-robot kosmos-robot merged commit 87c2e25 into kosmos-io:main May 10, 2024
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When the namespace type is int, the virtual control plane fails to be created
3 participants