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

[improve](dcr) enable skip default SystemInit for be #321

Merged
merged 5 commits into from
Jan 9, 2025

Conversation

catpineapple
Copy link
Contributor

@catpineapple catpineapple commented Dec 27, 2024

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

@catpineapple catpineapple changed the title add skipSystemInit for be [improve](dcr) enable skip default SystemInit for be Dec 27, 2024
@@ -220,7 +220,7 @@ func ApplySecurityContext(containers []corev1.Container, securityContext *corev1
return containers
}

func constructInitContainers(componentType v1.ComponentType, podSpec *corev1.PodSpec, si *v1.SystemInitialization) {
Copy link
Contributor

Choose a reason for hiding this comment

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

skip as a parameter, and dcr will not be needed. the if logic will be concise.
if !skip && (compoentType==v1.Component_be || component==v1.Componet_CN){

}

Copy link
Contributor

@intelligentfu8 intelligentfu8 left a comment

Choose a reason for hiding this comment

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

check

@intelligentfu8 intelligentfu8 merged commit 16d250a into apache:master Jan 9, 2025
1 check passed
@catpineapple catpineapple deleted the enable-skip-system-init branch January 24, 2025 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants