Skip to content

Instantly share code, notes, and snippets.

@jwntrs
jwntrs / blah.yml
Last active February 18, 2022 22:06
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: supply-chain
spec:
selector:
matchLabels:
workload-type: web
resources:
@jwntrs
jwntrs / 00-sc.yml
Last active February 23, 2022 14:13
Multipath supply chain
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: supply-chain
spec:
resources:
- name: source-provider
templateRef:
kind: ClusterSourceTemplate
options:
@jwntrs
jwntrs / 00-sc.yml
Last active February 11, 2022 18:29
Nested resources
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: supply-chain
spec:
selector:
matchLabels:
workload-type: web
@jwntrs
jwntrs / 00-sc.yml
Last active February 11, 2022 20:25
Inline typed supply chains
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: supply-chain
spec:
selector:
matchLabels:
workload-type: web
snippets:
@jwntrs
jwntrs / 00-gitops-sc.yml
Last active February 23, 2022 15:22
Typed supply chains (ClusterSourceSupplyChain, ClusterImageSupplyChain, ClusterConfigSupplyChain)
apiVersion: carto.run/v1alpha1
kind: ClusterSourceSupplyChain
metadata:
name: gitops-supply-chain
spec:
selector:
matchLabels:
workload-type: web
matchFields:
- {key: ".spec.target", operation: In, value: ["gitops"]}
@jwntrs
jwntrs / 00-sc.yml
Last active February 11, 2022 16:00
Resources in templates
apiVersion: carto.run/v1alpha1
kind: ClusterSupplyChain
metadata:
name: supply-chain
spec:
selector:
matchLabels:
workload-type: web
resources:
@jwntrs
jwntrs / future.md
Last active January 15, 2021 18:52

Duck types

The new app stack architecture relies heavily on the use of duck types throughout the system.

But what if the user wants to user a 3rd party tool that doesn't conform to the duck-type.

Exposing custom status

Overview

The two most important concepts to understand in kontinue are sources, and workflows.

        *unit* -------------------------- *build* ---------------------- *deploy* ------------- *integration*
[src-code, golang-image]     [src-code, builder-base-image]      [src-code, redis-image]         [src-code]

apiVersion: experimental.kontinue.io/v1
kind: Workflow
metadata:
name: app
spec:
sources:
- name: repo
sourceRefs:
- name: app
kind: GitSource
apiVersion: experimental.kontinue.io/v1
kind: Workflow
metadata:
name: app
spec:
sources:
- name: repo
sourceRefs:
- name: app
kind: GitSource