update mysql/mongo/other for 4.15 error on restartPolicy#1365
Conversation
Error: `The Deployment "mysql" is invalid: spec.template.spec.containers[0].restartPolicy: Forbidden: may not be set for non-init containers`
|
spec.container.restartPolicy is new as of kube 1.28/OCP4.15 and only valid for init containers. It didn't exist at all prior to 1.28, so removing it from the mysql and mongo yaml files is necessary. The parks-app removal is a different field (spec.restartPolicy) which should be valid across all versions, but it's fine to remove if the test doesn't require it to remove any confusion it might cause. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mateusoliveira43, sseago, weshayutin The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/lgtm |
|
/retest |
|
@weshayutin: you cannot LGTM your own PR. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/lgtm |
|
@weshayutin: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
|
/cherry-pick oadp-1.3 |
|
@mateusoliveira43: #1365 failed to apply on top of branch "oadp-1.3": DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
This seems to be a OCP 4.15 issue only. The restartPolicy is not required on any version afaict.
Error:
The Deployment "mysql" is invalid: spec.template.spec.containers[0].restartPolicy: Forbidden: may not be set for non-init containers