Skip to content

Add support for CRIO drop-in config files#1660

Merged
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
umohnani8:dropin-files
Apr 22, 2020
Merged

Add support for CRIO drop-in config files#1660
openshift-merge-robot merged 2 commits intoopenshift:masterfrom
umohnani8:dropin-files

Conversation

@umohnani8
Copy link
Copy Markdown
Contributor

@umohnani8 umohnani8 commented Apr 16, 2020

- What I did

CRI-O now has support for drop-in files in /etc/crio/crio.conf.d
so add that functionality to the ctrcfg controller.
This will help avoid the issues we run into when we make config
changes in cri-o and don't carry them over to the MCO.
Remove the crio.conf template and put the MCO overrides in 00-default
under the /etc/crio/crio.conf.d directory.
Also update the vendor as we no longer depend on cri-o.

- How to verify it

Create ctrcfg CR and the updates should be added to /etc/crio/crio.conf.d/01-newconfig.

- Description for the changelog

Signed-off-by: Urvashi Mohnani umohnani@redhat.com

Comment thread templates/master/01-master-container-runtime/_base/files/crio.yaml Outdated
Comment thread templates/master/01-master-container-runtime/_base/files/crio.yaml Outdated
Comment thread templates/master/01-master-container-runtime/_base/files/crio.yaml Outdated
@haircommander
Copy link
Copy Markdown
Member

yowzers that's a lot of files, we gotta remember to bump the vendor in 4.6 🙃

looks good to start, I'll do a more thorough review tomorrow 🎉 😄

Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
@umohnani8 umohnani8 force-pushed the dropin-files branch 8 times, most recently from ed69e88 to 7742abf Compare April 17, 2020 03:30
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
@umohnani8 umohnani8 force-pushed the dropin-files branch 2 times, most recently from a23d58e to 0a2f2db Compare April 17, 2020 21:15
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
@haircommander
Copy link
Copy Markdown
Member

looks great @umohnani8 one more nit then LGTM 😄

@umohnani8
Copy link
Copy Markdown
Contributor Author

@mtrmac @runcom PTAL

Copy link
Copy Markdown
Contributor

@kikisdeliveryservice kikisdeliveryservice left a comment

Choose a reason for hiding this comment

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

I noticed this before, but I think that your custom type called ignitionConfig is confusing and misnamed (seems like it should be dropinFiles or something. Not blocking, but should be fixed.

Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 17, 2020
Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
Comment thread pkg/controller/container-runtime-config/container_runtime_config_controller.go Outdated
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
Comment thread templates/master/01-master-container-runtime/_base/files/crio.yaml Outdated
Comment thread templates/worker/01-worker-container-runtime/_base/files/crio.yaml Outdated
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
@mtrmac
Copy link
Copy Markdown
Contributor

mtrmac commented Apr 18, 2020

(I have only reviewed the mechanism of the thing, not the substance of change to how CRI-O is configured.)

Comment thread test/e2e/ctrcfg_test.go Outdated
@runcom
Copy link
Copy Markdown
Member

runcom commented Apr 19, 2020

This should be good now pending CI which hasn't cooperated so far, we'll figure out follow ups then - going to lgtm this as it's definitely done but we need to hear from CI, the lgtm will go away if the code needs changing ofc.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 19, 2020
@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

/skip

@kikisdeliveryservice
Copy link
Copy Markdown
Contributor

/retest

1 similar comment
@umohnani8
Copy link
Copy Markdown
Contributor Author

/retest

@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Apr 20, 2020
@umohnani8 umohnani8 force-pushed the dropin-files branch 2 times, most recently from 5527e3e to 1cf769b Compare April 20, 2020 14:04
@runcom
Copy link
Copy Markdown
Member

runcom commented Apr 20, 2020

/retest

@runcom
Copy link
Copy Markdown
Member

runcom commented Apr 20, 2020

/skip

@umohnani8 umohnani8 force-pushed the dropin-files branch 2 times, most recently from 9cd492a to 86350ca Compare April 20, 2020 18:31
Comment thread pkg/controller/container-runtime-config/helpers.go Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@runcom What do you mean?

Comment thread test/e2e/ctrcfg_test.go Outdated
Comment thread test/e2e/ctrcfg_test.go Outdated
CRI-O now has support for drop-in files in /etc/crio/crio.conf.d
so add that functionality to the ctrcfg controller.
This will help avoid the issues we run into when we make config
changes in cri-o and don't carry them over to the MCO.
Remove the crio.conf template and put the MCO overrides in 00-default
under the /etc/crio/crio.conf.d directory.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
Since we don't depend on cri-o anymore, we no longer
need to vendor it.
Update other vendor dependencies as well.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
@runcom
Copy link
Copy Markdown
Member

runcom commented Apr 22, 2020

/retest
/skip

@runcom
Copy link
Copy Markdown
Member

runcom commented Apr 22, 2020

@mrunalp I think this should be merged but we're past that date and it's now asking for a bugzilla, do you know how to proceed here?

@mrunalp mrunalp added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Apr 22, 2020
@mrunalp
Copy link
Copy Markdown
Member

mrunalp commented Apr 22, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 22, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kikisdeliveryservice, mrunalp, runcom, umohnani8

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [kikisdeliveryservice,runcom]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit e7baf4e into openshift:master Apr 22, 2020
@umohnani8 umohnani8 deleted the dropin-files branch January 22, 2026 17:04
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. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants