github.com/kubevela/workflow@v0.6.0/pkg/cue/testdata/traits/route.cue (about)

     1  outputs: ingress: {
     2  	apiVersion: "networking.k8s.io/v1beta1"
     3  	kind:       "Ingress"
     4  	spec: {
     5  		rules: [{
     6  			host: parameter.domain
     7  			http: paths: [{
     8  				backend: {
     9  					serviceName: parameter.service
    10  					servicePort: parameter.port
    11  				}}]
    12  		}]
    13  	}
    14  }
    15  parameter: {
    16  	domain:  string
    17  	port:    *80 | int
    18  	service: string
    19  }