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

operator sdk upgrade chores #1202

Closed
wants to merge 14 commits into from

Conversation

kaovilai
Copy link
Member

@kaovilai kaovilai commented Oct 27, 2023

hold for experiments

Approximately keeping Makefile in-line with latest operator-sdk via following https://sdk.operatorframework.io/docs/upgrading-sdk-version/ upgrade migrations

Why:

figuring out if this helpsmake bundle update the clusterserviceversion.spec.customresourcedefinitions.owned[]
git/operator-sdk/testdata/go/v3/memcached-operator is working, still digging why this repo is not working.

  • chore: operator-sdk v1.14.0 upgrade
  • chore: operator-sdk v1.16.0 upgrade
  • chore: operator-sdk v1.17.0 upgrade
  • chore: operator-sdk v1.18.0 upgrade
  • chore: operator-sdk v1.21.0 upgrade
  • chore: operator-sdk v1.22.0 upgrade
  • chore: operator-sdk v1.23.0 upgrade
  • Make operator-sdk replace old version if necessary; bump to v1.24.0
  • chore: operator-sdk v1.25.0 upgrade
  • chore: operator-sdk v1.28.0 upgrade
  • Upgrade operator-sdk to v1.32.0

Discoveries

Operator UI can be customizable somewhat with x-descriptors
https://github.com/openshift/console/blob/master/frontend/packages/operator-lifecycle-manager/src/components/descriptors/reference/reference.md
which if one authors the x_type.go can be added for generation like so
+operator-sdk:csv:customresourcedefinitions:type=[spec,status],xDescriptors={"urn:alm:descriptor:com.tectonic.ui:podCount","urn:alm:descriptor:io.kubernetes:custom"}

Otherwise, such as in Velero CRD case, you can manually specify them in config/manifests/oadp-operator.clusterserviceversion.yaml

These descriptors were previously added manually

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
@kaovilai kaovilai changed the title operator sdk chores operator sdk upgrade chores Oct 27, 2023
@openshift-ci
Copy link

openshift-ci bot commented Oct 27, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai

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:

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 Oct 27, 2023
https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.28.0/
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>

upgrade k8s to 1.26

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>

`make bundle`

Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
@kaovilai kaovilai force-pushed the operator-sdk-chores branch 2 times, most recently from 2383cc5 to ec3a350 Compare October 27, 2023 06:09
Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
Comment on lines +9 to +33
resources:
- api:
crdVersion: v1
namespaced: true
controller: true
domain: openshift.io
group: oadp
kind: DataProtectionApplication
path: github.com/openshift/oadp-operator/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: openshift.io
group: oadp
kind: CloudStorage
path: github.com/openshift/oadp-operator/api/v1alpha1
version: v1alpha1
webhooks:
defaulting: true
webhookVersion: v1
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a pre-requisite to get CSV owned generation to work.

@mateusoliveira43
Copy link
Contributor

These places grep -Iinr 'v1.10.0' . --exclude={go.sum,go.mod} should also be updated?

Do you know how operator sdk code was first generated? If yes, we could try this approach dora-metrics/pelorus#1045

@kaovilai
Copy link
Member Author

probably some init commands when operator-sdk used was about v1.12 or so.

@kaovilai kaovilai added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 27, 2023
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 31, 2023
@openshift-merge-robot
Copy link

PR needs rebase.

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.

Copy link

openshift-ci bot commented Feb 10, 2024

@kaovilai: The following tests 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/4.13-operator-e2e-aws 96e847a link true /test 4.13-operator-e2e-aws
ci/prow/4.13-operator-e2e-azure 96e847a link true /test 4.13-operator-e2e-azure
ci/prow/4.12-operator-e2e-aws 96e847a link true /test 4.12-operator-e2e-aws
ci/prow/4.14-operator-e2e-azure 96e847a link true /test 4.14-operator-e2e-azure
ci/prow/4.14-operator-e2e-aws 96e847a link true /test 4.14-operator-e2e-aws
ci/prow/4.14-images 96e847a link true /test 4.14-images
ci/prow/4.14-ci-index 96e847a link true /test 4.14-ci-index
ci/prow/4.14-operator-unit-test 96e847a link true /test 4.14-operator-unit-test
ci/prow/images 96e847a link true /test images
ci/prow/4.13-e2e-test-azure 96e847a link true /test 4.13-e2e-test-azure
ci/prow/4.13-e2e-test-aws 96e847a link true /test 4.13-e2e-test-aws
ci/prow/4.12-e2e-test-aws 96e847a link true /test 4.12-e2e-test-aws
ci/prow/4.14-e2e-test-azure 96e847a link true /test 4.14-e2e-test-azure
ci/prow/4.14-e2e-test-aws 96e847a link true /test 4.14-e2e-test-aws
ci/prow/unit-test 96e847a link true /test unit-test
ci/prow/4.12-e2e-test-azure 96e847a link true /test 4.12-e2e-test-azure
ci/prow/4.14-e2e-test-kubevirt-aws 96e847a link true /test 4.14-e2e-test-kubevirt-aws

Full PR test history. Your PR dashboard.

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.

@kaovilai kaovilai closed this Feb 12, 2024
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. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants