This reference topic describes the ClusterPodConvention that you can use with Cartographer Conventions.
ClusterPodConvention defines a way to connect to convention servers. It provides a way to apply a set of conventions to a PodTemplateSpec and the artifact metadata. A convention will typically focus on a particular application framework, but may be cross cutting. Applied conventions must be pure functions.
Webhook servers are the only way to define conventions.
apiVersion: conventions.carto.run/v1alpha1
kind: ClusterPodConvention
metadata:
name: base-convention
annotations:
conventions.carto.run/inject-ca-from: "convention-template/webhook-cert"
spec:
selectorTarget: PodTemplateSpec # optional, defaults to PodTemplateSpec; field options include PodTemplateSpec|PodIntent
webhook:
clientConfig:
service:
name: webhook
namespace: convention-template