We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure all these following Definitions can really work.
apiVersion: core.oam.dev/v1beta1 kind: TraitDefinition metadata: annotations: definition.oam.dev/description: "Auto scale for knative serving" name: knative-autoscale namespace: vela-system spec: appliesToWorkloads: - knative-serving # this should be some knative like workload schematic: cue: template: |- import "encoding/json" patch: { metadata: annotations: { "my.autoscale.ann": json.Marshal({ "minReplicas": parameter.min "maxReplicas": parameter.max }) } } parameter: { min: *1 | int max: *3 | int }
apiVersion: core.oam.dev/v1beta1 kind: TraitDefinition metadata: name: expose namespace: vela-system spec: schematic: cue: template: |- parameter: [string]: int outputs: { for k, v in parameter { "\(k)": { apiVersion: "v1" kind: "Service" spec: { selector: app: context.name ports: [{ port: v targetPort: v }] } } } }
The text was updated successfully, but these errors were encountered:
add expose trait done see:kubevela/kubevela#1678
Sorry, something went wrong.
No branches or pull requests
Make sure all these following Definitions can really work.
The text was updated successfully, but these errors were encountered: