Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Oct 5, 2020

Followed https://sdk.operatorframework.io/docs/upgrading-sdk-version/v0.18.0/:

  • modified go.mod
$ go mod tidy
$ go mod vendor
$ chmod 0755 deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml
$ chmod 0755 deploy/olm-catalog/cincinnati-operator/0.0.1/*
$ operator-sdk generate crds

Spun out from #65, so we can land it while continuing to work on the 0.19 and later stuff.

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: wking

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 5, 2020
@wking
Copy link
Member Author

wking commented Oct 6, 2020

operator-e2e:

The CustomResourceDefinition "cincinnatis.cincinnati.openshift.io" is invalid: spec.validation.openAPIV3Schema.properties[metadata]: Forbidden: must not specify anything other than name and generateName, but metadata is implicitly specified

@wking
Copy link
Member Author

wking commented Oct 6, 2020

I've pushed 0bf3dba -> caa9448, manually dropping metadata in the CRD to hopefully address the previous CI failure.

@openshift-ci-robot
Copy link

@wking: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/cincinnati-operator-e2e-aws caa9448 link /test cincinnati-operator-e2e-aws

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.

@wking
Copy link
Member Author

wking commented Oct 6, 2020

operator-e2e:

Retrieving ginkgo and gomega build dependencies
go: github.com/openshift/cluster-image-registry-operator@v0.0.0-20200415091009-99c06ee64540 requires
	github.com/openshift/[email protected] requires
	bitbucket.org/ww/[email protected]: reading https://api.bitbucket.org/2.0/repositories/ww/goautoneg?fields=scm: 404 Not Found
go: github.com/openshift/cluster-image-registry-operator@v0.0.0-20200415091009-99c06ee64540 requires
	github.com/openshift/[email protected] requires
	bitbucket.org/ww/[email protected]: reading https://api.bitbucket.org/2.0/repositories/ww/goautoneg?fields=scm: 404 Not Found
hack/functest.sh: line 17: /go/bin/ginkgo: No such file or directory

@wking
Copy link
Member Author

wking commented Oct 26, 2020

Rebased onto #74 with caa9448 -> b9c5073.

jottofar and others added 3 commits October 27, 2020 10:17
Followed
https://sdk.operatorframework.io/docs/upgrading-sdk-version/v0.18.0/:

- modified go.mod
$ go mod tidy
$ go mod vendor
$ chmod 0755 deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml
$ chmod 0755 deploy/olm-catalog/cincinnati-operator/0.0.1/*
$ operator-sdk generate crds

- check that it builds
$ go build -mod=vendor -o \
~/Documents/Eng/OSUS-Operator/cincinnati-operator \
github.com/openshift/cincinnati-operator/cmd/manager
Avoid [1]:

  The CustomResourceDefinition "cincinnatis.cincinnati.openshift.io" is invalid: spec.validation.openAPIV3Schema.properties[metadata]: Forbidden: must not specify anything other than name and generateName, but metadata is implicitly specified

On the Kubernetes 1.19 CI cluster, because metadata is validated
implicitly [2].

[1]: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_cincinnati-operator/67/pull-ci-openshift-cincinnati-operator-master-cincinnati-operator-e2e-aws/1313249109418708992
[2]: https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/#specifying-a-structural-schema
These are needed by the updated Kube clients.  And trim some unused
cruft out of utils.go, so we don't have to maintain dead code.
@jottofar
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2020
@openshift-merge-robot openshift-merge-robot merged commit 554106f into openshift:master Oct 27, 2020
@wking wking deleted the sdk-0.18 branch October 27, 2020 20:37
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 13, 2020
Generated with:

  $ find . -name '*.go' -execdir chmod 644 {} \+
  $ find . -name '*.yaml' -execdir chmod 644 {} \+

Tracking one of the files:

  $ git log -p --follow origin/master api/v1/groupversion_info.go | grep '^commit\|new.*mode'
  ...
  commit d9f361a
  new file mode 100755

So that was born executable in d9f361a (Migrate operator from
v0.18.2 to v0.19.3, 2020-09-30, openshift#65).

Three more buggy bits are from that commit:

  $ git show d9f361a | grep -B2 'new mode'
  diff --git a/pkg/apis/cincinnati/v1beta1/cincinnati_types.go b/api/v1beta1/cincinnati_types.go
  old mode 100644
  new mode 100755
  --
  diff --git a/pkg/apis/cincinnati/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go
  old mode 100644
  new mode 100755
  --
  diff --git a/pkg/controller/cincinnati/cincinnati_controller.go b/controllers/cincinnati_controller.go
  old mode 100644
  new mode 100755

The last three are from 36a102f (Migrate operator from v0.16.0 to
v0.18.2, 2020-09-17, openshift#67):

  $ git show 36a102f | grep -B2 'new mode'
  diff --git a/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati-operator.v0.0.1.clusterserviceversion.yaml b/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati-operator.v0.0.1.clusterserviceversion.yaml
  old mode 100644
  new mode 100755
  diff --git a/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati.openshift.io_cincinnatis_crd.yaml b/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati.openshift.io_cincinnatis_crd.yaml
  old mode 100644
  new mode 100755
  diff --git a/deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml b/deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml
  old mode 100644
  new mode 100755
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 13, 2020
Generated with:

  $ find . -name '*.go' -execdir chmod 644 {} \+
  $ find . -name '*.yaml' -execdir chmod 644 {} \+

Tracking one of the files:

  $ git log -p --follow origin/master api/v1/groupversion_info.go | grep '^commit\|new.*mode'
  ...
  commit d9f361a
  new file mode 100755

So that was born executable in d9f361a (Migrate operator from
v0.18.2 to v0.19.3, 2020-09-30, openshift#65).

Three more buggy bits are from that commit:

  $ git show d9f361a | grep -B2 'new mode'
  diff --git a/pkg/apis/cincinnati/v1beta1/cincinnati_types.go b/api/v1beta1/cincinnati_types.go
  old mode 100644
  new mode 100755
  --
  diff --git a/pkg/apis/cincinnati/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go
  old mode 100644
  new mode 100755
  --
  diff --git a/pkg/controller/cincinnati/cincinnati_controller.go b/controllers/cincinnati_controller.go
  old mode 100644
  new mode 100755

The last three are from 36a102f (Migrate operator from v0.16.0 to
v0.18.2, 2020-09-17, openshift#67):

  $ git show 36a102f | grep -B2 'new mode'
  diff --git a/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati-operator.v0.0.1.clusterserviceversion.yaml b/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati-operator.v0.0.1.clusterserviceversion.yaml
  old mode 100644
  new mode 100755
  diff --git a/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati.openshift.io_cincinnatis_crd.yaml b/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati.openshift.io_cincinnatis_crd.yaml
  old mode 100644
  new mode 100755
  diff --git a/deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml b/deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml
  old mode 100644
  new mode 100755
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 16, 2020
Generated with:

  $ find . -name '*.go' -execdir chmod 644 {} \+
  $ find . -name '*.yaml' -execdir chmod 644 {} \+

Tracking one of the files:

  $ git log -p --follow origin/master api/v1/groupversion_info.go | grep '^commit\|new.*mode'
  ...
  commit d9f361a
  new file mode 100755

So that was born executable in d9f361a (Migrate operator from
v0.18.2 to v0.19.3, 2020-09-30, openshift#65).

Three more buggy bits are from that commit:

  $ git show d9f361a | grep -B2 'new mode'
  diff --git a/pkg/apis/cincinnati/v1beta1/cincinnati_types.go b/api/v1beta1/cincinnati_types.go
  old mode 100644
  new mode 100755
  --
  diff --git a/pkg/apis/cincinnati/v1beta1/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go
  old mode 100644
  new mode 100755
  --
  diff --git a/pkg/controller/cincinnati/cincinnati_controller.go b/controllers/cincinnati_controller.go
  old mode 100644
  new mode 100755

The last three are from 36a102f (Migrate operator from v0.16.0 to
v0.18.2, 2020-09-17, openshift#67):

  $ git show 36a102f | grep -B2 'new mode'
  diff --git a/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati-operator.v0.0.1.clusterserviceversion.yaml b/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati-operator.v0.0.1.clusterserviceversion.yaml
  old mode 100644
  new mode 100755
  diff --git a/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati.openshift.io_cincinnatis_crd.yaml b/deploy/olm-catalog/cincinnati-operator/0.0.1/cincinnati.openshift.io_cincinnatis_crd.yaml
  old mode 100644
  new mode 100755
  diff --git a/deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml b/deploy/olm-catalog/cincinnati-operator/cincinnati-operator.package.yaml
  old mode 100644
  new mode 100755
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.

4 participants