1 package banner 2 3 import "fmt" 4 5 // CouchIPName is the name of the ComputeAddress, and the name of the external ip 6 // the will be created in the banner's project. 7 // NOTE: An Ingress will reference this resource, so the value must match the 8 // kubernetes.io/ingress.global-static-ip-name annotation on the Ingress 9 const CouchIPName = "couchdb-ip-1" 10 11 // CouchServerClusterName is the name of the k8s cluster that the datasync couchdb master server runs on. This 12 // cluster name is namespaced to the banner project so it does not need to be unique 13 const CouchServerClusterName = "datasync-couchdb-master" 14 15 // Similar to the CouchIPName, but this is used for ingress for remote access, which 16 // is used in the cluster infra cluster and must match the IP name 17 // in the Ingress object used for Emissary and WireGuard. 18 const RemoteAccessIPName = "remote-access-ip" 19 20 type Type string 21 22 // Banner Types 23 const ( 24 EU Type = "eu" 25 Org Type = "org" 26 ) 27 28 func CreateBannerClusterInfraName(banner string) string { 29 return fmt.Sprintf("%s-cluster-infra0", banner) 30 } 31