Skip to content

Instantly share code, notes, and snippets.

@jwntrs
Last active February 18, 2022 22:06
Show Gist options
  • Save jwntrs/a1a3e1221e319f938b08e407d3472072 to your computer and use it in GitHub Desktop.
Save jwntrs/a1a3e1221e319f938b08e407d3472072 to your computer and use it in GitHub Desktop.
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: supply-chain
spec:
selector:
matchLabels:
workload-type: web
resources:
- name: prebuilt
templateRef:
kind: ClusterImageTemplate
name: image-source
- name: configure
templateRef:
kind: ClusterConfigTemplate
name: configure
images:
- resource: image-provider
name: image
- name: gitops
templateRef:
kind: ClusterSourceTemplate
options:
- name: git-pusher
selector:
matchFields:
- {key: "metadata.labels.target", operation: In, value: ["gitops"]}
configs:
- resource: configure
name: config
- name: regops
templateRef:
kind: ClusterImageTemplate
options:
- name: registry-pusher
selector:
matchFields:
- {key: "metadata.labels.target", operation: In, value: ["repository"]}
configs:
- resource: configure
name: config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment