coreos-cincinnati: Move from deprecated DeploymentConfig to Deployment #2629
No reviewers
Labels
No labels
freeze-break-request
post-freeze
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Infrastructure/ansible#2629
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "PR/cincinnati"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a previous migration attempt wasn't completed successfully, this revised version is aiming to complete the previous steps. First in the first commit I moved all of the yaml templates to j2. In the second commit I am removing the fields which are invalid for the new Deployment, which appeared while running the
sudo rbac-playbook -l os_control_stg openshift-apps/coreos-cincinnati.yml
command on batcave.Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/824da687289a4ea18c345cfec194afe9
Did you get a specific error with the templates? or why do we need to rename them?
Is there a way to port the following options to Deployment?
activeDeadlineSeconds
recreateParams
resources
rollingParams
I am not sure how critical they are for the application, @dustymabe can weigh in 😄
I could be wrong but the reason we needed to convert all the others to
.j2
is because they were being treated as templates already (see below where we specifyobject_template: imagestream.yml.j2
.Here, however, these are just vars and we aren't saying they are templates, so I don't think we should change production and staging yaml files to
.j2
here.According to https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/ none of those options exist anymore. What @c4rt0 has here LGTM, but I will note that the link I posted says that "25%" is the default for
maxSurge
andmaxUnavailable
so we could just droprollingUpdate:
from this too.Instead of deleting this let's just spacebar it over to be under metadata (i.e. at the same level as
labels
, not under it).https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/#ObjectMeta
This was my understanding , I didn't realize these were just vars. This is now fixed in the next push.
Thanks, this is also now amended.
Done... the links are quite useful.
rebased onto
bcb01c42d6
rebased onto
bcb01c42d6
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/03bca90819144cc49abfaf9b5ab9b8c7
Most of your changes look good here.. but I don't think you quite understood me fully when I said:
Basically anything under
roles/openshift-apps/coreos-cincinnati/vars/
should not be considered a template. i.e. you can leave them asproduction.yml
andstaging.yml
.Anything under
roles/openshift-apps/coreos-cincinnati/templates/
are, well, templates :)Those need the
.j2
on them.In your most recent upload you switched them all back, which goes too far. I hope my explanation above makes things more clear.
1 new commit added
coreos-cincinnati: move templates from yml to j2
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/6b0ffbf25e7d415c9b3951efbd5617ef
LGTM
rebased onto
24ef980a8a
Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/f896d83586e34b078ef3ca07e421a502
Pull-Request has been merged by dustymabe