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

Add infrastructure for testing environment #559

Merged
merged 13 commits into from
Nov 2, 2022
6 changes: 3 additions & 3 deletions test/cluster-manager/cluster-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ metadata:
spec:
deployOption:
mode: Default
placementImagePullSpec: 'quay.io/open-cluster-management/placement:v0.8.0'
placementImagePullSpec: 'quay.io/open-cluster-management/placement:v0.9.0'
registrationConfiguration:
featureGates:
- feature: DefaultClusterSet
mode: Enable
registrationImagePullSpec: 'quay.io/open-cluster-management/registration:v0.8.0'
workImagePullSpec: 'quay.io/open-cluster-management/work:v0.8.0'
registrationImagePullSpec: 'quay.io/open-cluster-management/registration:v0.9.0'
workImagePullSpec: 'quay.io/open-cluster-management/work:v0.9.0'
Copy link
Member Author

@nirs nirs Oct 31, 2022

Choose a reason for hiding this comment

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

This yaml looks exactly like the alm example - can we drop it and use the example from
the csv?

$ minikube kubectl -p hub -- get csv -n operators cluster-manager.v0.9.1 -o jsonpath='{.metadata.annotations.alm-examples}' | jq
[
  {
    "apiVersion": "operator.open-cluster-management.io/v1",
    "kind": "ClusterManager",
    "metadata": {
      "name": "cluster-manager"
    },
    "spec": {
      "deployOption": {
        "mode": "Default"
      },
      "placementImagePullSpec": "quay.io/open-cluster-management/placement:v0.9.0",
      "registrationConfiguration": {
        "featureGates": [
          {
            "feature": "DefaultClusterSet",
            "mode": "Enable"
          }
        ]
      },
      "registrationImagePullSpec": "quay.io/open-cluster-management/registration:v0.9.0",
      "workImagePullSpec": "quay.io/open-cluster-management/work:v0.9.0"
    }
  },
  {
    "apiVersion": "operator.open-cluster-management.io/v1",
    "kind": "ClusterManager",
    "metadata": {
      "name": "cluster-manager"
    },
    "spec": {
      "deployOption": {
        "hosted": {
          "registrationWebhookConfiguration": {
            "address": "management-control-plane",
            "port": 30443
          },
          "workWebhookConfiguration": {
            "address": "management-control-plane",
            "port": 31443
          }
        },
        "mode": "Hosted"
      },
      "placementImagePullSpec": "quay.io/open-cluster-management/placement:v0.9.0",
      "registrationImagePullSpec": "quay.io/open-cluster-management/registration:v0.9.0",
      "workImagePullSpec": "quay.io/open-cluster-management/work:v0.9.0"
    }
  }
]