mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 02:38:17 +08:00
[FIX] fix bug: invalid ingress name
This commit is contained in:
parent
6b53a4496c
commit
5641c809b1
@ -262,7 +262,7 @@ func (a *AppServiceBuild) applyHTTPRule(rule *model.HTTPRule, port *model.Tenant
|
||||
// create ingress
|
||||
ing = &extensions.Ingress{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: fmt.Sprintf("ing-%s-%s", domain, rule.UUID),
|
||||
Name: strings.Replace(fmt.Sprintf("ing-%s-%s", domain, rule.UUID[0:8]), "*", "star", -1),
|
||||
Namespace: a.tenant.UUID,
|
||||
Labels: a.appService.GetCommonLabels(),
|
||||
},
|
||||
@ -351,7 +351,7 @@ func (a *AppServiceBuild) applyTCPRule(rule *model.TCPRule, service *corev1.Serv
|
||||
// create ingress
|
||||
ing = &extensions.Ingress{
|
||||
ObjectMeta: metav1.ObjectMeta{
|
||||
Name: fmt.Sprintf("ing-%s-%s", strings.Replace(rule.IP, ".", "-", -1), rule.UUID),
|
||||
Name: fmt.Sprintf("ing-%s-%s", strings.Replace(rule.IP, ".", "-", -1), rule.UUID[0:8]),
|
||||
Namespace: namespace,
|
||||
Labels: a.appService.GetCommonLabels(),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user