Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion addons/velaux/metadata.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion addons/velaux/parameter.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions addons/velaux/resources/server.cue
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ enableImpersonation: *[ if parameter["enableImpersonation"] {
}] | []

_nginxTrait: *[
if parameter["domain"] != _|_ && parameter["gatewayDriver"] == "nginx" {
if parameter["domain"] != _|_ && parameter["gatewayDriver"] != "traefik" {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why != traefik go the logic?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The addon chart allows for gatewayDriver nginx or traefik and assumes that is going to be the name of the className, for nginx it then adds the annotation kubernetes.io/ingress.class. In a cluster with several ingress controllers however we need a way to set the value for the IngressClass name.
If that's not acceptable I can add a new parameter for ingress class name.

{
type: "gateway"
properties: {
domain: parameter["domain"]
http: {
"/": 8000
}
class: "nginx"
class: parameter["gatewayDriver"]
}
}
},
Expand Down