Dynamic-sa
Parameters
Template
The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.
The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.
"dynamic-sa": {
type: "trait"
annotations: {}
labels: {
"definition.spectrocloud.com/category": "Security"
}
description: "dynamically specify service account"
attributes: {}
}
template: {
processing: {
output: credentials: *"" | string
http: {
method: *"GET" | string
url: parameter.serviceURL
request: header: "authorization.token": parameter.uidtoken
}
}
patch: spec: template: spec: serviceAccountName: processing.output.credentials
parameter: {
uidtoken: string
serviceURL: string
}
}