Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the streamlined ToolchainCluster and update its CRD. #1094

Merged

Conversation

go.mod Outdated Show resolved Hide resolved
…-fields-contd3

# Conflicts:
#	go.mod
#	go.sum
Copy link

openshift-ci bot commented Oct 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexeykazakov, MatousJobanek, metlos, xcoulon

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [MatousJobanek,alexeykazakov,xcoulon]

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

@metlos
Copy link
Contributor Author

metlos commented Oct 4, 2024

/retest

1 similar comment
@metlos
Copy link
Contributor Author

metlos commented Oct 4, 2024

/retest

@metlos
Copy link
Contributor Author

metlos commented Oct 7, 2024

/retest

This seems environmental:

199. attempt (out of 200) of waiting for CRD memberoperatorconfigs.toolchain.dev.openshift.com to be available in the cluster and the InstallPlan to be complete
The installation takes suspiciously too long - deleting jobs. This may happen and is caused by flaky OLM installation.

@MatousJobanek
Copy link
Contributor

@metlos this is not an environmental issue - it's failing that OLM cannot update ToolchainCluster CRD with the version. The problem is most likely the required spec.apiEndpoint field - it looks like that we need to make it optional first 🤦‍♂️

   status:
    bundleLookups:
    - catalogSourceRef:
        name: member-operator-c7c5a23
        namespace: toolchain-member-07140122
      identifier: toolchain-member-operator.v0.0.543-commit-c7c5a23
      path: quay.io/codeready-toolchain-test/member-operator-bundle:from.host-operator.PR1094.a749281
      properties: '{"properties":[{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"Workspace","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"MemberOperatorConfig","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"UserAccount","version":"v1alpha1"}},{"type":"olm.package","value":{"packageName":"toolchain-member-operator","version":"0.0.543-commit-c7c5a23"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"MemberStatus","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"ToolchainCluster","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"Idler","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"SpaceBindingRequest","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"NSTemplateSet","version":"v1alpha1"}},{"type":"olm.gvk","value":{"group":"toolchain.dev.openshift.com","kind":"SpaceRequest","version":"v1alpha1"}}]}'
      replaces: ""
    catalogSources:
    - member-operator-c7c5a23
    conditions:
    - lastTransitionTime: "2024-10-07T14:08:16Z"
      lastUpdateTime: "2024-10-07T14:08:16Z"
      message: 'error validating existing CRs against new CRD''s schema for "toolchainclusters.toolchain.dev.openshift.com":
        error validating toolchain.dev.openshift.com/v1alpha1, Kind=ToolchainCluster
        "toolchain-host-07140122/member-ci-op-qi3khbci-1de72.devsandboxci.devcluster.openshift.1":
        updated validation is too restrictive: [].spec.apiEndpoint: Required value'
      reason: InstallComponentFailed
      status: "False"
      type: Installed
    message: 'error validating existing CRs against new CRD''s schema for "toolchainclusters.toolchain.dev.openshift.com":
      error validating toolchain.dev.openshift.com/v1alpha1, Kind=ToolchainCluster
      "toolchain-host-07140122/member-ci-op-qi3khbci-1de72.devsandboxci.devcluster.openshift.1":
      updated validation is too restrictive: [].spec.apiEndpoint: Required value'
    phase: Failed 

Copy link

sonarcloud bot commented Oct 8, 2024

@metlos metlos merged commit c0c4242 into codeready-toolchain:master Oct 8, 2024
8 of 9 checks passed
Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.08%. Comparing base (7c011f6) to head (b388186).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1094      +/-   ##
==========================================
- Coverage   85.10%   85.08%   -0.02%     
==========================================
  Files          55       55              
  Lines        5041     5041              
==========================================
- Hits         4290     4289       -1     
- Misses        580      581       +1     
  Partials      171      171              

see 1 file with indirect coverage changes

@metlos metlos deleted the deprecate-tc-spec-fields-contd3 branch October 8, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants