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

🐛 Get clusterId from managedcluster #1290

Merged
merged 4 commits into from
Dec 19, 2024

Conversation

clyang82
Copy link
Contributor

Summary

Get ClusterId from managedcluster, because there is no clusterId in managedclusterinfo object for non-OpenShift Cluster.

Related issue(s)

Fixes # https://issues.redhat.com/browse/ACM-15814

Tests

  • Unit/function tests have been added and incorporated into make unit-tests.
  • Integration tests have been added and incorporated into make integration-test.
  • E2E tests have been added and incorporated into make e2e-test-all.
  • List other manual tests you have done.

@@ -174,10 +180,13 @@ func GetK8SCluster(clusterInfo *clusterinfov1beta1.ManagedClusterInfo,
k8sCluster.ResourceData.VendorVersion = clusterInfo.Status.DistributionInfo.OCP.Version
case clusterinfov1beta1.KubeVendorEKS:
k8sCluster.ResourceData.KubeVendor = kessel.K8SClusterDetail_EKS
k8sCluster.ResourceData.VendorVersion = clusterInfo.Status.Version
Copy link
Contributor Author

Choose a reason for hiding this comment

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

temporarily set kubeversion as vendorversion to ensure it can send non-OCP cluster information. we need to adopt the latest inventory api in the future.

Signed-off-by: clyang82 <[email protected]>
@yanmxa
Copy link
Member

yanmxa commented Dec 19, 2024

/lgtm

Copy link

openshift-ci bot commented Dec 19, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: clyang82, yanmxa

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 d9b4816 into stolostron:main Dec 19, 2024
14 checks passed
yanmxa pushed a commit to yanmxa/hub-of-hubs that referenced this pull request Dec 19, 2024
* Get clusterId from managedcluster

Signed-off-by: clyang82 <[email protected]>

* Enable deploy GH agent when inventory is enabled

Signed-off-by: clyang82 <[email protected]>

* add vendor version temporarily

Signed-off-by: clyang82 <[email protected]>

* Fix UT

Signed-off-by: clyang82 <[email protected]>

---------

Signed-off-by: clyang82 <[email protected]>
yanmxa added a commit to yanmxa/hub-of-hubs that referenced this pull request Dec 19, 2024
Signed-off-by: myan <[email protected]>

Revert "Bump go version to 1.23.4 (stolostron#1283)"

This reverts commit 06ab030.

remove duplicate pannel in kafkadashboard (stolostron#1289)

Signed-off-by: root <[email protected]>

:seedling:  bump the embedded postgres to 1.30.0 (stolostron#1278)

* 🐛 integration test error for localpolicy event filter (stolostron#1280)

* local policy event integration error

Signed-off-by: myan <[email protected]>

* add the time'

Signed-off-by: myan <[email protected]>

---------

Signed-off-by: myan <[email protected]>

Use Containerfile.operator in Konflux build (stolostron#1279)

Signed-off-by: clyang82 <[email protected]>

Bump go version to 1.23.4 (stolostron#1283)

Signed-off-by: clyang82 <[email protected]>

bump the embedded postgres to 1.30.0

Signed-off-by: myan <[email protected]>

remove the pgx/v4

Signed-off-by: myan <[email protected]>

create the dir for pg

Signed-off-by: myan <[email protected]>

fix the it

Signed-off-by: myan <[email protected]>

format mod

Signed-off-by: myan <[email protected]>

avoid overflow

Signed-off-by: myan <[email protected]>

* rebase

Signed-off-by: myan <[email protected]>

* rebase

Signed-off-by: myan <[email protected]>

---------

Signed-off-by: myan <[email protected]>

:sparkles: Build bundle image (stolostron#1275)

* Build bundle image

Signed-off-by: clyang82 <[email protected]>

* add konflux-patch.sh

Signed-off-by: clyang82 <[email protected]>

* add konflux-patch.sh

Signed-off-by: clyang82 <[email protected]>

* correct postgres-exporter image sha

Signed-off-by: clyang82 <[email protected]>

---------

Signed-off-by: clyang82 <[email protected]>

:bug: Get clusterId from managedcluster (stolostron#1290)

* Get clusterId from managedcluster

Signed-off-by: clyang82 <[email protected]>

* Enable deploy GH agent when inventory is enabled

Signed-off-by: clyang82 <[email protected]>

* add vendor version temporarily

Signed-off-by: clyang82 <[email protected]>

* Fix UT

Signed-off-by: clyang82 <[email protected]>

---------

Signed-off-by: clyang82 <[email protected]>

reply review

Signed-off-by: myan <[email protected]>
@clyang82 clyang82 deleted the cluster_id branch December 19, 2024 06:03
yanmxa added a commit to yanmxa/hub-of-hubs that referenced this pull request Dec 19, 2024
Signed-off-by: myan <[email protected]>

Revert "Bump go version to 1.23.4 (stolostron#1283)"

This reverts commit 06ab030.

remove duplicate pannel in kafkadashboard (stolostron#1289)

Signed-off-by: root <[email protected]>

:seedling:  bump the embedded postgres to 1.30.0 (stolostron#1278)

* 🐛 integration test error for localpolicy event filter (stolostron#1280)

* local policy event integration error

Signed-off-by: myan <[email protected]>

* add the time'

Signed-off-by: myan <[email protected]>

---------

Signed-off-by: myan <[email protected]>

Use Containerfile.operator in Konflux build (stolostron#1279)

Signed-off-by: clyang82 <[email protected]>

Bump go version to 1.23.4 (stolostron#1283)

Signed-off-by: clyang82 <[email protected]>

bump the embedded postgres to 1.30.0

Signed-off-by: myan <[email protected]>

remove the pgx/v4

Signed-off-by: myan <[email protected]>

create the dir for pg

Signed-off-by: myan <[email protected]>

fix the it

Signed-off-by: myan <[email protected]>

format mod

Signed-off-by: myan <[email protected]>

avoid overflow

Signed-off-by: myan <[email protected]>

* rebase

Signed-off-by: myan <[email protected]>

* rebase

Signed-off-by: myan <[email protected]>

---------

Signed-off-by: myan <[email protected]>

:sparkles: Build bundle image (stolostron#1275)

* Build bundle image

Signed-off-by: clyang82 <[email protected]>

* add konflux-patch.sh

Signed-off-by: clyang82 <[email protected]>

* add konflux-patch.sh

Signed-off-by: clyang82 <[email protected]>

* correct postgres-exporter image sha

Signed-off-by: clyang82 <[email protected]>

---------

Signed-off-by: clyang82 <[email protected]>

:bug: Get clusterId from managedcluster (stolostron#1290)

* Get clusterId from managedcluster

Signed-off-by: clyang82 <[email protected]>

* Enable deploy GH agent when inventory is enabled

Signed-off-by: clyang82 <[email protected]>

* add vendor version temporarily

Signed-off-by: clyang82 <[email protected]>

* Fix UT

Signed-off-by: clyang82 <[email protected]>

---------

Signed-off-by: clyang82 <[email protected]>

reply review

Signed-off-by: myan <[email protected]>
clyang82 pushed a commit that referenced this pull request Dec 20, 2024
Revert "Bump go version to 1.23.4 (#1283)"

This reverts commit 06ab030.

remove duplicate pannel in kafkadashboard (#1289)



:seedling:  bump the embedded postgres to 1.30.0 (#1278)

* 🐛 integration test error for localpolicy event filter (#1280)

* local policy event integration error



* add the time'



---------



Use Containerfile.operator in Konflux build (#1279)



Bump go version to 1.23.4 (#1283)



bump the embedded postgres to 1.30.0



remove the pgx/v4



create the dir for pg



fix the it



format mod



avoid overflow



* rebase



* rebase



---------



:sparkles: Build bundle image (#1275)

* Build bundle image



* add konflux-patch.sh



* add konflux-patch.sh



* correct postgres-exporter image sha



---------



:bug: Get clusterId from managedcluster (#1290)

* Get clusterId from managedcluster



* Enable deploy GH agent when inventory is enabled



* add vendor version temporarily



* Fix UT



---------



reply review

Signed-off-by: myan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants