Skip to content

USHIFT-1061: auto config generator#1639

Merged
openshift-merge-robot merged 13 commits intoopenshift:mainfrom
eggfoobar:ushift-1061-auto-config-generator
Apr 19, 2023
Merged

USHIFT-1061: auto config generator#1639
openshift-merge-robot merged 13 commits intoopenshift:mainfrom
eggfoobar:ushift-1061-auto-config-generator

Conversation

@eggfoobar
Copy link
Contributor

Which issue(s) this PR addresses:

This PR adds automatic generation of our config from the struct, we then are able to use go generate to update both our default yaml as well as our document yaml to keep things in sync with minimal effort and the source of truth being our source struct.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Apr 9, 2023
@openshift-ci-robot
Copy link

openshift-ci-robot commented Apr 9, 2023

@eggfoobar: This pull request references USHIFT-1061 which is a valid jira issue.

Details

In response to this:

Which issue(s) this PR addresses:

This PR adds automatic generation of our config from the struct, we then are able to use go generate to update both our default yaml as well as our document yaml to keep things in sync with minimal effort and the source of truth being our source struct.

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.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 9, 2023
@openshift-ci openshift-ci bot requested review from pacevedom and pmtk April 9, 2023 17:55
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 9, 2023
@eggfoobar eggfoobar force-pushed the ushift-1061-auto-config-generator branch 2 times, most recently from 59838b9 to 2efdf57 Compare April 17, 2023 05:00
Copy link
Contributor

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

I like the direction this is going better than earlier versions. I have a few questions/comments inline about details. The actual YAML generator is pretty small, but could use some comments as an aid to future maintainers.

@eggfoobar eggfoobar force-pushed the ushift-1061-auto-config-generator branch from 2efdf57 to dd99b59 Compare April 18, 2023 01:02
Copy link
Contributor

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

This is looking really good! I have a few questions inline.

Copy link
Contributor

@dhellmann dhellmann left a comment

Choose a reason for hiding this comment

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

I like this version. We mentioned a few improvements in comment threads, but those can come later. Remove the hold when you're ready.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2023
@eggfoobar eggfoobar force-pushed the ushift-1061-auto-config-generator branch from b576ab3 to 4e55618 Compare April 18, 2023 19:09
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Apr 18, 2023
@eggfoobar eggfoobar changed the title [WIP]: USHIFT-1061: auto config generator USHIFT-1061: auto config generator Apr 18, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 18, 2023
@eggfoobar eggfoobar force-pushed the ushift-1061-auto-config-generator branch from 768e970 to 3cb5677 Compare April 18, 2023 20:28
@eggfoobar
Copy link
Contributor Author

/test microshift-e2e-arm

added tool to convert config crd to yaml wwith comments and kubebuilder syntax

Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
moved wording to config-gen for the tool
ran make vendor-etcd
removed header info from generated config yaml

Signed-off-by: ehila <ehila@redhat.com>
Signed-off-by: ehila <ehila@redhat.com>
@eggfoobar eggfoobar force-pushed the ushift-1061-auto-config-generator branch from 3cb5677 to 30d711c Compare April 18, 2023 22:28
@dhellmann
Copy link
Contributor

/lgtm

@dhellmann
Copy link
Contributor

/hold

give @pmtk a chance to look at this

@openshift-ci openshift-ci bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm Indicates that a PR is ready to be merged. labels Apr 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 19, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dhellmann, eggfoobar

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 [dhellmann,eggfoobar]

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

@pmtk
Copy link
Member

pmtk commented Apr 19, 2023

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Apr 19, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Apr 19, 2023

@eggfoobar: 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.

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. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants