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

chore: cleanup duplicated functions packages and add more for godoc #981

Merged
merged 4 commits into from
Apr 23, 2024

Conversation

zdtsw
Copy link
Member

@zdtsw zdtsw commented Apr 22, 2024

  • move GetPlatform() from deploy package to cluster package
  • move const ManagedRhods SelfManagedRhods OpenDataHub from deploy to cluster package
  • move WaitForDeploymentAvailable() monitoring package to cluster package
  • remove monitoring package
  • move UpdatePodSecurityRolebinding() from common package to cluster package
  • deprecate GetDomain from common package, to only use GetDomain from cluster package.
  • remove gvk package, move its GVK to cluster package
  • rename variables, chop off GVK from the name
  • move DeleteExistingSubscription() from deploy package to upgrade package
  • do not export getSubscription()

Description

How Has This Been Tested?

local build quay.io/wenzhou/opendatahub-operator-catalog:v2.10.0-48

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

- move GetPlatform() from deploy package to cluster package
- move const ManagedRhods SelfManagedRhods OpenDataHub from deploy to cluster package
- move WaitForDeploymentAvailable() monitoring package to cluster package
- remove monitoring package
- move UpdatePodSecurityRolebinding() from common package to cluster package
- deprecate GetDomain from common package, to only use GetDomain from cluster package.
- remove gvk package, move its GVK to cluster package
- move DeleteExistingSubscription() from deploy package to upgrade package
- do not export getSubscription()

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
pkg/cluster/const.go Outdated Show resolved Hide resolved
pkg/upgrade/upgrade.go Outdated Show resolved Hide resolved
@zdtsw zdtsw force-pushed the chore_48 branch 2 times, most recently from 0985042 to aa36cec Compare April 22, 2024 15:52
pkg/cluster/gvik.go Outdated Show resolved Hide resolved
pkg/cluster/gvik.go Outdated Show resolved Hide resolved
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
pkg/cluster/gvk.go Outdated Show resolved Hide resolved
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
@zdtsw zdtsw requested a review from ykaliuta April 23, 2024 11:56
Copy link

openshift-ci bot commented Apr 23, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ykaliuta

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-merge-bot openshift-merge-bot bot merged commit 96c85f2 into opendatahub-io:incubation Apr 23, 2024
8 checks passed
zdtsw added a commit to zdtsw-forking/rhods-operator that referenced this pull request May 9, 2024
…pendatahub-io#981)

* chore: cleanup duplicated functions/package and add godoc

- move GetPlatform() from deploy package to cluster package
- move const ManagedRhods SelfManagedRhods OpenDataHub from deploy to cluster package
- move WaitForDeploymentAvailable() monitoring package to cluster package
- remove monitoring package
- move UpdatePodSecurityRolebinding() from common package to cluster package
- deprecate GetDomain from common package, to only use GetDomain from cluster package.
- remove gvk package, move its GVK to cluster package
- move DeleteExistingSubscription() from deploy package to upgrade package
- do not export getSubscription()

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* update: remove gvk into one file but under cluster package

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* update: rename variable, removing GVK from it

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* update: move gvk into a sub package under cluster

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
@VaishnaviHire VaishnaviHire mentioned this pull request May 22, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants