Skip to content

[WRKLDS-730] react to route-controller-manager refactoring#2674

Merged
openshift-merge-robot merged 2 commits intoopenshift:mainfrom
atiratree:rcm-updates
Aug 1, 2023
Merged

[WRKLDS-730] react to route-controller-manager refactoring#2674
openshift-merge-robot merged 2 commits intoopenshift:mainfrom
atiratree:rcm-updates

Conversation

@atiratree
Copy link
Member

What this PR does / why we need it:

  • split config from OCM and pass only relevant data
  • pass kubeconfig and pod name/namespace

This has to be merged before openshift/route-controller-manager#28

Which issue(s) this PR fixes
Fixes # https://issues.redhat.com/browse/WRKLDS-730

Checklist

  • Subject and description added to both, commit and PR.
  • Relevant issues have been referenced.
  • This change includes docs.
  • This change includes unit tests.

@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

/test ?

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 12, 2023

@atiratree: The following commands are available to trigger required jobs:

  • /test e2e-aws
  • /test images
  • /test unit
  • /test verify

The following commands are available to trigger optional jobs:

  • /test e2e-aws-4-12
  • /test e2e-aws-4-13
  • /test e2e-aws-metrics
  • /test e2e-conformance
  • /test e2e-ibmcloud-iks
  • /test e2e-ibmcloud-roks
  • /test e2e-kubevirt-aws-ovn

Use /test all to run the following jobs that were automatically triggered:

  • pull-ci-openshift-hypershift-main-e2e-aws
  • pull-ci-openshift-hypershift-main-e2e-kubevirt-aws-ovn
  • pull-ci-openshift-hypershift-main-images
  • pull-ci-openshift-hypershift-main-unit
  • pull-ci-openshift-hypershift-main-verify
Details

In response to this:

/test ?

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.

@atiratree
Copy link
Member Author

let's see if it passes 4.13 job
/test e2e-aws-4-13

configKey = "config.yaml"
)

func ReconcileOpenShiftRouteControllerManagerConfig(cm *corev1.ConfigMap, ownerRef config.OwnerRef, minTLSVersion string, cipherSuites []string, networkConfig *configv1.NetworkSpec) error {
Copy link
Member

Choose a reason for hiding this comment

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

can we please have a unit test for this?

Copy link
Member Author

Choose a reason for hiding this comment

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

added tests for both OCM and RCM

@atiratree
Copy link
Member Author

atiratree commented Jul 3, 2023

@enxebre can you please take a look again? Also this has to be merged at the same exact time as openshift/route-controller-manager#28 since they are dependent on each other. And openshift/cluster-openshift-controller-manager-operator#295 is a prerequisite.

@atiratree
Copy link
Member Author

/test verify

@ardaguclu
Copy link
Member

@enxebre would you mind taking a look at this?. Thanks.

@atiratree
Copy link
Member Author

/retest

3 similar comments
@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

/retest

@atiratree
Copy link
Member Author

/retest

@ingvagabund
Copy link
Member

/retest-required

@atiratree
Copy link
Member Author

@enxebre the tests are passing, could you please do another review?

if cm.Data == nil {
cm.Data = map[string]string{}
}
config := &openshiftcpv1.OpenShiftControllerManagerConfig{}
Copy link
Member

Choose a reason for hiding this comment

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

why do we need to deserialize this instead of just construct the struct, serialize and store it?

Copy link
Member Author

Choose a reason for hiding this comment

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

@enxebre I thought it was to potentially allow changes to the config by another actor (similar to OCM). But I can remove the deserialization part if that is not needed.

- split config from OCM and pass only relevant data
- pass kubeconfig and pod name/namespace
@netlify
Copy link

netlify bot commented Aug 1, 2023

Deploy Preview for hypershift-docs ready!

Name Link
🔨 Latest commit b8cec42
🔍 Latest deploy log https://app.netlify.com/sites/hypershift-docs/deploys/64c8ded58ee7760008d0944f
😎 Deploy Preview https://deploy-preview-2674--hypershift-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@enxebre
Copy link
Member

enxebre commented Aug 1, 2023

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 1, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: atiratree, enxebre

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 1, 2023
@enxebre
Copy link
Member

enxebre commented Aug 1, 2023

/label tide/merge-method-squash

@openshift-ci openshift-ci bot added the tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. label Aug 1, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 1, 2023

@atiratree: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-aws-4-13 cfcf955 link false /test e2e-aws-4-13

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.

@atiratree
Copy link
Member Author

/test e2e-kubevirt-aws-ovn

@sjenning
Copy link
Contributor

sjenning commented Aug 1, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 1, 2023
@openshift-merge-robot openshift-merge-robot merged commit 1fc3c32 into openshift:main Aug 1, 2023
@atiratree atiratree deleted the rcm-updates branch August 1, 2023 20:27
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. area/control-plane-operator Indicates the PR includes changes for the control plane operator - in an OCP release lgtm Indicates that a PR is ready to be merged. tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants