github.com/oam-dev/kubevela@v1.9.11/vela-templates/registry/auto-gen/dynamic-sa.yaml (about) 1 # Code generated by KubeVela templates. DO NOT EDIT. Please edit the original cue file. 2 # Definition source cue file: vela-templates/definitions/registry/dynamic-sa.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: TraitDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: dynamically specify service account 8 name: dynamic-sa 9 namespace: vela-system 10 spec: 11 appliesToWorkloads: 12 - deployments.apps 13 schematic: 14 cue: 15 template: | 16 processing: { 17 output: credentials: *"" | string 18 http: { 19 method: *"GET" | string 20 url: parameter.serviceURL 21 request: header: "authorization.token": parameter.uidtoken 22 } 23 } 24 patch: spec: template: spec: serviceAccountName: processing.output.credentials 25 parameter: { 26 uidtoken: string 27 serviceURL: string 28 } 29