diff --git a/addons/velaux/metadata.yaml b/addons/velaux/metadata.yaml index f3096eff8..3460a96a0 100644 --- a/addons/velaux/metadata.yaml +++ b/addons/velaux/metadata.yaml @@ -1,5 +1,5 @@ name: velaux -version: v1.9.3 +version: v1.9.4 description: KubeVela User Experience (UX). An extensible, application-oriented delivery and management Platform. icon: https://static.kubevela.net/images/logos/KubeVela%20-03.png url: https://kubevela.io diff --git a/addons/velaux/parameter.cue b/addons/velaux/parameter.cue index 4b275f3cd..5d585c718 100644 --- a/addons/velaux/parameter.cue +++ b/addons/velaux/parameter.cue @@ -12,7 +12,7 @@ parameter: { // +usage=Specify the name of the certificate cecret, if set, means enable the HTTPs. secretName?: string // +usage=Specify the gateway type. - gatewayDriver: *"nginx" | "traefik" + gatewayDriver: *"nginx" | "traefik" | _ // +usage=Specify the serviceAccountName for apiserver serviceAccountName: *"kubevela-ux" | string // +usage=Specify the service type. diff --git a/addons/velaux/resources/server.cue b/addons/velaux/resources/server.cue index 5c9221f3d..6d8f94cc0 100644 --- a/addons/velaux/resources/server.cue +++ b/addons/velaux/resources/server.cue @@ -15,7 +15,7 @@ enableImpersonation: *[ if parameter["enableImpersonation"] { }] | [] _nginxTrait: *[ - if parameter["domain"] != _|_ && parameter["gatewayDriver"] == "nginx" { + if parameter["domain"] != _|_ && parameter["gatewayDriver"] != "traefik" { { type: "gateway" properties: { @@ -23,7 +23,7 @@ _nginxTrait: *[ http: { "/": 8000 } - class: "nginx" + class: parameter["gatewayDriver"] } } },