github.com/openshift/installer@v1.4.17/pkg/asset/agent/manifests/common.go (about)

     1  package manifests
     2  
     3  import (
     4  	aiv1beta1 "github.com/openshift/assisted-service/api/v1beta1"
     5  	"github.com/openshift/installer/pkg/asset/agent"
     6  	"github.com/openshift/installer/pkg/types"
     7  	"github.com/openshift/installer/pkg/version"
     8  )
     9  
    10  func getAgentClusterInstallName(ic *agent.OptionalInstallConfig) string {
    11  	return ic.ClusterName()
    12  }
    13  
    14  func getClusterDeploymentName(ic *agent.OptionalInstallConfig) string {
    15  	return ic.ClusterName()
    16  }
    17  
    18  func getPullSecretName(clusterName string) string {
    19  	return clusterName + "-pull-secret"
    20  }
    21  
    22  func getProxy(proxy *types.Proxy) *aiv1beta1.Proxy {
    23  	return &aiv1beta1.Proxy{
    24  		HTTPProxy:  proxy.HTTPProxy,
    25  		HTTPSProxy: proxy.HTTPSProxy,
    26  		NoProxy:    proxy.NoProxy,
    27  	}
    28  }
    29  
    30  func getNMStateConfigLabels(clusterName string) map[string]string {
    31  	return map[string]string{
    32  		"infraenvs.agent-install.openshift.io": clusterName,
    33  	}
    34  }
    35  
    36  func getClusterImageSetReferenceName() string {
    37  	versionString, _ := version.Version()
    38  	return "openshift-" + versionString
    39  }