PodConventionContextStatus for Cartographer Conventions

This reference topic describes the PodConventionContextStatus status type that you can use with Cartographer Conventions.

Overview

The Pod convention context status type is used to represent the current status of the context retrieved by the request. It holds the applied conventions by the server and the modified version of the PodTemplateSpec. For more information about PodTemplateSpec, see the Kubernetes documentation.

The field .template is populated with the enriched PodTemplateSpec. The field .appliedConventions is populated with the names of any applied conventions.

For example:

{
    "template": {
        "metadata": {
            ...
        },
        "spec": {
            ...
        }
    },
    "appliedConventions": [
        "convention-1",
        "convention-2",
        "convention-4"
    ]
}

YAML version:

---
apiVersion: webhooks.conventions.carto.run/v1alpha1
kind: PodConventionContext
metadata:
  name: sample # the name of the ClusterPodConvention
spec: # the request
  imageConfig:
  template:
    <corev1.PodTemplateSpec>
status: # the response
  appliedConventions: # list of names of conventions applied
  - my-convention
  template:
  spec:
      containers:
      - name : workload
        image: helloworld-go-mod
check-circle-line exclamation-circle-line close-line
Scroll to top icon