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

Deprecated DefaultRestartPolicy with NoneRestartPolicy #214

Merged
merged 2 commits into from
Sep 13, 2024

Conversation

kerthcet
Copy link
Contributor

What type of PR is this?

/kind feature
/kind cleanup

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #204

Special notes for your reviewer

Does this PR introduce a user-facing change?

Deprecated the DefaultRestartPolicy and replace with NoneRestartPolicy

Signed-off-by: kerthcet <kerthcet@gmail.com>
@k8s-ci-robot k8s-ci-robot added kind/feature Categorizes issue or PR as related to a new feature. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Sep 13, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kerthcet

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

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 13, 2024
@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 13, 2024
@kerthcet
Copy link
Contributor Author

@ahg-g maybe you're online.

Comment on lines 260 to 264
// DefaultRestartPolicy will recreate all the pods in the group if
// 1. Any individual pod in the group is recreated; 2. Any containers/init-containers
// in a pod is restarted. This is to ensure all pods/containers in the group will be
// started in the same time.
RecreateGroupOnPodRestart RestartPolicyType = "RecreateGroupOnPodRestart"
DefaultRestartPolicy RestartPolicyType = "RecreateGroupOnPodRestart"
Copy link
Contributor

Choose a reason for hiding this comment

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

Lets keep the parameter name as is and just add a comment that this is the default value.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done.

Signed-off-by: kerthcet <kerthcet@gmail.com>
@kerthcet kerthcet force-pushed the cleanup/add-none-policy branch from 1b9e7b7 to b3a8977 Compare September 13, 2024 05:58
@ahg-g
Copy link
Contributor

ahg-g commented Sep 13, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 13, 2024
@k8s-ci-robot k8s-ci-robot merged commit edc9eac into kubernetes-sigs:main Sep 13, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change default of restart policy to RecreateGroupOnPodRestart
3 participants