Skip to content

Conversation

@zaneb
Copy link
Member

@zaneb zaneb commented Aug 17, 2022

The InstallConfig schema does not have a Spec subresource, so
configuration items are added directly at the top level of the file. It
is desirable that the AgentConfig should behave the same. There is no
Status subresource for an AgentConfig either, and in fact not even any
plans to ever install AgentConfig into clusters as a CRD, so there is no
need for a Spec.

Set the initial version of AgentConfig to v1alpha1, since we are not yet
committing to not changing it. This will now be required.

This is a breaking change that will require users to change their
existing agent-config.yaml files, so better that it happen now.

This was testing for the incorrect indentation, instead of the extra
invalid field as intended.
@openshift-ci openshift-ci bot requested review from celebdor and jstuever August 17, 2022 19:07
zaneb added 3 commits August 17, 2022 15:38
The InstallConfig schema does not have a Spec subresource, so
configuration items are added directly at the top level of the file. It
is desirable that the AgentConfig should behave the same. There is no
Status subresource for an AgentConfig either, and in fact not even any
plans to ever install AgentConfig into clusters as a CRD, so there is no
need for a Spec.

This is a breaking change that will require users to change their
existing agent-config.yaml files, so better that it happen now.
Set the initial version of AgentConfig to v1alpha1, since we are not yet
committing to not changing it.

This is itself a breaking change, as a version will now be required.
@zaneb zaneb force-pushed the agentconfig-no-spec branch from 289f060 to dd9f88f Compare August 17, 2022 19:56
@zaneb zaneb changed the title Collapse AgentConfig spec Collapse AgentConfig spec and add versioning Aug 17, 2022
Copy link
Contributor

@pawanpinjarkar pawanpinjarkar left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 18, 2022
Copy link
Contributor

@rwsu rwsu left a comment

Choose a reason for hiding this comment

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

Thanks Zane for explaining what Spec is for.

/lgtm

@pawanpinjarkar
Copy link
Contributor

/approve

@zaneb
Copy link
Member Author

zaneb commented Aug 18, 2022

/assign @patrickdillon

@zaneb
Copy link
Member Author

zaneb commented Aug 18, 2022

/assign @jhixson74

@jhixson74
Copy link
Member

/lgtm
/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 18, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhixson74, pawanpinjarkar

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:

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 18, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 19, 2022

@zaneb: all tests passed!

Full PR test history. Your PR dashboard.

Details

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. I understand the commands that are listed here.

@openshift-merge-robot openshift-merge-robot merged commit ddf29b4 into openshift:agent-installer Aug 19, 2022
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants