Skip to content

Commit

Permalink
Hive Minimal Install Annotation on ClusterDeployment (#3243)
Browse files Browse the repository at this point in the history
* Add annotation for hive minimal install

* Remove cli-domain annotation and use installAttemptsLimit instead of annotation
  • Loading branch information
bennerv authored Oct 30, 2023
1 parent 4aaccb8 commit c473088
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/hive/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"runtime"
"strings"

"github.com/Azure/go-autorest/autorest/to"
hivev1 "github.com/openshift/hive/apis/hive/v1"
hivev1azure "github.com/openshift/hive/apis/hive/v1/azure"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -191,8 +192,9 @@ func (c *clusterManager) clusterDeploymentForInstall(doc *api.OpenShiftClusterDo
createdByHiveLabelKey: "true",
},
Annotations: map[string]string{
"hive.openshift.io/try-install-once": "true",
"hive.openshift.io/cli-domain-from-installer-image": "true",
// https://github.com/openshift/hive/pull/2157
// Will not pull ocp-release and oc-cli images
"hive.openshift.io/minimal-install-mode": "true",
},
},
Spec: hivev1.ClusterDeploymentSpec{
Expand All @@ -211,6 +213,7 @@ func (c *clusterManager) clusterDeploymentForInstall(doc *api.OpenShiftClusterDo
APIServerIPOverride: doc.OpenShiftCluster.Properties.NetworkProfile.APIServerPrivateEndpointIP,
APIURLOverride: fmt.Sprintf("api-int.%s:6443", clusterDomain),
},
InstallAttemptsLimit: to.Int32Ptr(1),
PullSecretRef: &corev1.LocalObjectReference{
Name: pullsecretSecretName,
},
Expand Down

0 comments on commit c473088

Please sign in to comment.