github.com/oam-dev/kubevela@v1.9.11/pkg/config/testdata/helm-repo.cue (about) 1 metadata: { 2 name: "helm-repository" 3 // alias: "Helm Repository" 4 scope: "system" 5 sensitive: false 6 } 7 8 template: { 9 output: { 10 apiVersion: "v1" 11 kind: "Secret" 12 metadata: { 13 name: context.name 14 namespace: context.namespace 15 labels: { 16 "config.oam.dev/catalog": "velacore-config" 17 "config.oam.dev/type": "helm-repository" 18 "config.oam.dev/multi-cluster": "true" 19 "config.oam.dev/sub-type": "helm" 20 } 21 } 22 // If the type is empty, it will assign value using this format. 23 type: "catalog.config.oam.dev/helm-repository" 24 stringData: { 25 url: parameter.url 26 if parameter.username != _|_ { 27 username: parameter.username 28 } 29 if parameter.password != _|_ { 30 password: parameter.password 31 } 32 } 33 data: { 34 if parameter.caFile != _|_ { 35 caFile: parameter.caFile 36 } 37 } 38 } 39 parameter: { 40 // +usage=The public url of the helm chart repository. 41 url: string 42 // +usage=The username of basic auth repo. 43 username?: string 44 // +usage=The password of basic auth repo. 45 password?: string 46 // +usage=The ca certificate of helm repository. Please encode this data with base64. 47 caFile?: string 48 } 49 }