Skip to content

Conversation

@wking
Copy link
Member

@wking wking commented Nov 10, 2020

Part of #65, but split up to make the fresh 0.19 scaffold a separate commit that gets merged into the main branch. This makes it easier to see which lines were written by SDK tooling, which were inherited from master, and which are new from the merge.
We don't want to commit bin, so the warning is fine.

Following [1]:

  $ git checkout --orphan 0.19-scaffolding
  $ git rm -rf .
  $ operator-sdk-v0.19.3 init --domain openshift.io --repo github.com/openshift/cincinnati-operator
  $ operator-sdk-v0.19.3 create api --group cincinnati --version v1beta1 --kind Cincinnati --resource --controller
  $ git add -A .gitignore *
  The following paths are ignored by one of your .gitignore files:
  bin
  hint: Use -f if you really want to add them.
  hint: Turn this message off by running
  hint: "git config advice.addIgnoredFile false"

We don't want to commit bin, so the warning is fine.
@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 Nov 10, 2020
@wking wking force-pushed the sdk-0.19 branch 11 times, most recently from 632bb5d to 4a4865a Compare November 10, 2020 22:46
@wking wking force-pushed the sdk-0.19 branch 12 times, most recently from 5825e91 to 54acdc7 Compare November 12, 2020 00:11
@wking wking force-pushed the sdk-0.19 branch 3 times, most recently from e17da7a to 2084fd2 Compare November 12, 2020 04:51
Generated with:

  $ git checkout -b sdk-0.19 origin/master
  $ git merge --allow-unrelated-histories 0.19-scaffolding
  $ git checkout --theirs .gitignore # drop lots of user-editor cruft, see "Which file to place a pattern in..." in https://git-scm.com/docs/gitignore#_description
  $ emacs api/v1beta1/cincinnati_types.go # keep some of the outgoing pkg/apis/cincinnati/v1beta1/cincinnati_types.go content
  $ emacs controllers # keep some of the outgoing pkg/controller content
  $ emacs main.go # incorperate some of the outgoing cmd/manager/main.go content
  $ emacs Dockerfile # keep most of the pre-0.19 content. We will still vendor deps, and don't want to have GOARCH, etc., opinions
  $ emacs Makefile # keep most of the 0.19 content, with a few pre-0.19 rules for openshift/release compatability
  $ emacs README.md # bump SDK references to 0.19
  $ make manifests
  $ git add .gitignore config Dockerfile main.go Makefile README.md
  $ git rm -rf cmd/manager pkg/apis pkg/controller
  $ git checkout HEAD -- go.sum # we'll auto-generate this in a future commit
  $ emacs go.mod # basically a union of the two sets.  Drop the hopefully-obsolete 'replace' block.
  $ make bundle
  $ emacs config/manifests/bases/cincinnati-operator.clusterserviceversion.yaml # keep some of the outgoing deploy/olm-catalog content
  $ make bundle
  $ go mod tidy
  $ go mod vendor
  $ git add -A go.* vendor

using:

  $ go version
  go version go1.15.2 linux/amd64
  $ kustomize version
  {Version:kustomize/v3.8.6 GitCommit:c1747439cd8bc956028ad483cdb30d9273c18b24 BuildDate:2020-10-29T23:07:50Z GoOs:linux GoArch:amd64}
  $ controller-gen --version
  Version: v0.3.0

'oc' has a kustomize subcommand, but even in the master oc branch,
that is currently v2 [1], while 'kustomize edit ...' needs v3 to avoid
[2]:

  cd config/manager && /cli/oc kustomize edit set image controller=controller:latest
  Error: specify one path to a kustomization directory

The 'docker build . -t ${IMG}' -> 'docker build -t ${IMG} .' change is
for Podman compatibility [3].

Commenting out the 'test' prerequisite allows us to run 'make
docker-build' without having functests try to run tests in whatever
cluster you may be pointed at.

The increased memory limits are based on peak measurements of ~11m CPU
and ~94MiB in a 4.6.4 amd64 cluster with a single Cincinnati object.

[1]: https://github.com/openshift/oc/blob/1bd1f5ff4aa98d6e4184c2948928b6111fa99191/vendor/modules.txt#L1293
[2]: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_cincinnati-operator/76/pull-ci-openshift-cincinnati-operator-master-operator-e2e/1326532618765733888
[3]: operator-framework/operator-sdk#4226
@wking
Copy link
Member Author

wking commented Nov 12, 2020

#65 landed the bulk of this. I'll file separate PRs for anything unique to this PR that I want to keep.

/close

@openshift-ci-robot
Copy link

@wking: Closed this PR.

Details

In response to this:

#65 landed the bulk of this. I'll file separate PRs for anything unique to this PR that I want to keep.

/close

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.

PratikMahajan pushed a commit to PratikMahajan/cincinnati-operator that referenced this pull request Mar 17, 2021
channels/fast-4.2: Promote 4.1.34 to fast-4.2
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants