github.com/oam-dev/kubevela@v1.9.11/vela-templates/registry/auto-gen/kustomize.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/kustomize.cue 3 apiVersion: core.oam.dev/v1beta1 4 kind: ComponentDefinition 5 metadata: 6 annotations: 7 definition.oam.dev/description: kustomize can fetching, building, updating and applying Kustomize manifests from git repo. 8 name: kustomize 9 namespace: vela-system 10 spec: 11 schematic: 12 cue: 13 template: | 14 output: { 15 apiVersion: "source.toolkit.fluxcd.io/v1beta1" 16 kind: "GitRepository" 17 metadata: name: context.name 18 spec: { 19 interval: parameter.pullInterval 20 url: parameter.repoUrl 21 ref: branch: parameter.branch 22 } 23 } 24 outputs: kustomize: { 25 apiVersion: "kustomize.toolkit.fluxcd.io/v1beta1" 26 kind: "Kustomization" 27 metadata: name: context.name 28 spec: { 29 interval: parameter.pullInterval 30 sourceRef: { 31 kind: "GitRepository" 32 name: context.name 33 } 34 path: parameter.path 35 prune: true 36 validation: "client" 37 } 38 } 39 40 parameter: { 41 //+usage=The repository URL, can be a HTTP/S or SSH address. 42 repoUrl: string 43 44 //+usage=The interval at which to check for repository updates. 45 pullInterval: *"1m" | string 46 47 //+usage=The Git reference to checkout and monitor for changes, defaults to master branch. 48 branch: *"master" | string 49 50 //+usage=Path to the directory containing the kustomization.yaml file, or the set of plain YAMLs a kustomization.yaml should be generated for. 51 path: string 52 } 53 workload: 54 type: autodetects.core.oam.dev 55