Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-15169

Image based installs reference hive clusterdeployments with agentBareMetal platform

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ACM 2.12.0
    • ACM 2.12.0
    • SiteConfig Operator
    • None
    • Low
    • Approved
    • None

      Description of the problem:

      When performing an IBIO installation, clusterdeployments are created with the agentBareMetal platform type. This is a bit confusing as there is no agent involved in the IBI flow. We should decide how to make this clearer or find a way to describe both agent-based and image-based hive platforms. 

       

      https://github.com/stolostron/siteconfig/blob/main/internal/templates/image-based-install/template.go#L69

      const ClusterDeployment = `apiVersion: hive.openshift.io/v1
      kind: ClusterDeployment
      metadata:
        name: "{{ .Spec.ClusterName }}"
        namespace: "{{ .Spec.ClusterName }}"
        annotations:
          siteconfig.open-cluster-management.io/sync-wave: "1"
      spec:
        baseDomain: "{{ .Spec.BaseDomain }}"
        clusterInstallRef:
          group: extensions.hive.openshift.io
          kind: ImageClusterInstall
          name: "{{ .Spec.ClusterName }}"
          version: v1alpha1
        clusterName: "{{ .Spec.ClusterName }}"
        platform:
          agentBareMetal:
            agentSelector:
              matchLabels:
                cluster-name: "{{ .Spec.ClusterName }}"
        pullSecretRef:
          name: "{{ .Spec.PullSecretRef.Name }}"` 

            sakhoury@redhat.com Sharat Akhoury
            treywest96 Trey West
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: