feat: Instance domains (#3444)

* feat: add domain list

* feat: domain tests

* feat: add redirect url on adding instance domain

* Update internal/command/instance_domain.go

Co-authored-by: Livio Amstutz <[email protected]>

* feat: remove unused code

* fix

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2022-04-14 12:19:18 +00:00
committed by GitHub
co-authored by Livio Amstutz
parent 820a21dce3
commit c25d853820
29 changed files with 858 additions and 145 deletions
+4
View File
@@ -18,6 +18,10 @@ func (f InstanceDomainState) Valid() bool {
return f >= 0 && f < instanceDomainStateCount
}
func (f InstanceDomainState) Exists() bool {
return f == InstanceDomainStateActive
}
func NewGeneratedInstanceDomain(instanceName, iamDomain string) string {
return strings.ToLower(strings.ReplaceAll(instanceName, " ", "-") + "." + iamDomain)
}