API Reference
Packages
konfidence.cloud/v1alpha1
Package v1alpha1 contains API Schema definitions for the konfidence v1alpha1 API group.
Resource Types
- ActivationTaskExecution
- ActivationTaskRegistration
- ArtifactDeployment
- DeploymentTarget
- Landscape
- Project
- Stage
- StageVersion
- StageVersionUsage
- TaskExecution
- VectorActivation
- VectorData
- VectorDeployment
- VectorMigration
- VectorPromotion
- VectorPromotionConfig
- VectorTemplate
ActivationTaskExecution
ActivationTaskExecution is the Schema for the ActivationTaskExecutions API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | ActivationTaskExecution | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec ActivationTaskExecutionSpec | spec defines the desired state of ActivationTaskExecution | Required: {} | |
status ActivationTaskExecutionStatus | status defines the observed state of ActivationTaskExecution | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: ActivationTaskExecution
metadata:
labels:
app.kubernetes.io/name: crds
name: activationtaskexecution-sample
spec:
type: k8s-job
spec: {
"template": "refine-me"
}
vectorActivation: "activation-1"ActivationTaskExecutionSpec
ActivationTaskExecutionSpec defines the desired state of ActivationTaskExecution
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
type string | |||
spec RawExtension | |||
vectorActivation string | VectorActivation is a temporary field that contains the name of the associated vectorActivation |
ActivationTaskExecutionStatus
ActivationTaskExecutionStatus defines the observed state of ActivationTaskExecution.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array |
ActivationTaskRegistration
ActivationTaskRegistration is the Schema for the activationtaskregistrations API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | ActivationTaskRegistration | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec ActivationTaskRegistrationSpec | spec defines the desired state of ActivationTaskRegistration | Required: {} | |
status ActivationTaskRegistrationStatus | status defines the observed state of ActivationTaskRegistration | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: ActivationTaskRegistration
metadata:
labels:
app.kubernetes.io/name: crds
name: activationtaskregistration-sample
spec:
type: custom-k8s-activation
spec: {}
succeeds:
- activation-A
- activation-B
precedes:
- activation-CActivationTaskRegistrationSpec
ActivationTaskRegistrationSpec defines the desired state of ActivationTaskRegistration
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
type string | INSERT ADDITIONAL SPEC FIELDS - desired state of cluster Important: Run "make" to regenerate code after modifying this file The following markers will use OpenAPI v3 schema to validate the value More info: https://book.kubebuilder.io/reference/markers/crd-validation.html | ||
spec RawExtension | |||
succeeds string array | |||
precedes string array |
ActivationTaskRegistrationStatus
ActivationTaskRegistrationStatus defines the observed state of ActivationTaskRegistration.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | conditions represent the current state of the ActivationTaskRegistration resource. Each condition has a unique type and reflects the status of a specific aspect of the resource. Standard condition types include: - "Available": the resource is fully functional - "Progressing": the resource is being created or updated - "Degraded": the resource failed to reach or maintain its desired state The status of each condition is one of True, False, or Unknown. | Optional: {} |
ArtifactDeployment
ArtifactDeployment is the Schema for the artifactdeployments API.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | ArtifactDeployment | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec ArtifactDeploymentSpec | Spec defines the desired state of the ArtifactDeployment and is immutable after it has been set | Optional: {} | |
status ArtifactDeploymentStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: ArtifactDeployment
metadata:
name: e9cea9b3764b9adda065f85acd63a42f04b69de2d42e9b7e4f9556913bb37abb
namespace: default
spec:
component:
name: konfidence.cloud/podinfo-example
resources:
- content:
helmChart: podinfo:6.9.1
helmRepository: https://stefanprodan.github.io/podinfo
type: helm
name: sample-service-1-helm-chart
type: helmChart
version: 1.0.0
artifactType: helm.konfidence.cloud
taskManifests: [ ]ArtifactDeploymentSpec
ArtifactDeploymentSpec defines the desired state of an ArtifactDeployment. It describes the artifact to be deployed, optional post-deployment tasks, and optional metadata derived from an OCM ComponentVersion. A deployer interprets the specification according to the artifact type in Manifest.Type.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
artifactType ArtifactType | ArtifactType identifies which type of artifact is represented in the ArtifactDeployment. It must match the syntax defined in section 1.1 of the deployer specification. | Pattern: ^[a-z0-9](?:[a-z0-9-]\{0,61\}[a-z0-9])?\.(?:[a-z0-9](?:[a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]\{0,61\}[a-z0-9])?$ | |
taskManifests TaskManifest array | TaskManifests describes optional post-deployment tasks (commonly used for vector migrations such as database schema updates). Tasks are executed after the artifact has been deployed and may form a dependency graph via DependsOn. | ||
component OCMComponent | Component contains OCM metadata associated with the artifact. This is a simplified mapping of the OCM ComponentVersion. |
ArtifactDeploymentStatus
ArtifactDeploymentStatus defines the observed state of ArtifactDeployment.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
observedGeneration integer | ObservedGeneration is the last observed generation. | Optional: {} | |
conditions Condition array | Conditions describes the state of the deployment lifecycle. The following conditions are expected: - ArtifactFetched: the artifact was successfully retrieved - ArtifactDeployed: the artifact was successfully deployed - AppHealthy: the deployer reports the workload as healthy Conditions progress in a linear order: ArtifactFetched -> ArtifactDeployed -> AppHealthy | Optional: {} | |
deploymentResult DeploymentResult array | DeploymentResults captures structured outputs produced by the deployer during the deployment process—such as computed DNS names, service endpoints, generated configuration, or other workload-specific details. Results should be treated as immutable for a given generation and may be consumed by later stages of a vector rollout (e.g., routing configuration). Results are unique by (name, type). | Optional: {} |
ArtifactType
Underlying type: string
ArtifactType is a type-and-domain identifier for a deployer's artifactType contract. Its syntax is defined in section 1.1 of conformance/specs/deployer.md. It is encouraged to use MustArtifactType for construction.
Appears in:
Component
Component defines a component of a VectorTemplate. A struct is used for future expansion.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string |
ComponentDeploymentResults
Underlying type: DeploymentResult
ComponentDeploymentResults lists the deployment results emitted by a single component.
Validation:
- MaxItems: 16
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name identifies the result. | MaxLength: 253 | |
type string | Type describes the structure contained in Spec. Each deployer may define multiple result types. | MaxLength: 63 | |
spec RawExtension | Spec contains deployer-specific structured data. Its format is determined by the Type field. |
CredentialRef
CredentialRef references a Secret in the same namespace as the holding resource.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | MinLength: 1 |
Credentials
Credentials holds credentials for various purposes — for example OCM repository access and signing/verification key material.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
ocm OCMCredentials | Optional: {} |
DeletionPolicy
Underlying type: string
DeletionPolicy controls what happens to the managed namespace when the owning Project or Landscape is deleted.
Appears in:
| Field | Description |
|---|---|
Delete | DeletionPolicyDelete deletes the namespace together with the resource. |
Orphan | DeletionPolicyOrphan leaves the namespace in place and only strips the konfidence.cloud/* management labels. |
DeploymentResult
DeploymentResult contains a single output produced by a deployer. These results are used to transport information from the deployer to later phases of the vector lifecycle.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name identifies the result. | MaxLength: 253 | |
type string | Type describes the structure contained in Spec. Each deployer may define multiple result types. | MaxLength: 63 | |
spec RawExtension | Spec contains deployer-specific structured data. Its format is determined by the Type field. |
DeploymentTarget
DeploymentTarget is the Schema for the deploymenttargets API. A DeploymentTarget configures a concrete deployment destination within a landscape for a specific artifact type. It is namespace-scoped and created in landscape namespaces. At most one DeploymentTarget for a given artifact type is allowed in a namespace.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | DeploymentTarget | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec DeploymentTargetSpec | |||
status DeploymentTargetStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: DeploymentTarget
metadata:
name: production-kustomize
namespace: kden-l-production-abc123
spec:
artifactType: kustomize.konfidence.cloud
parameters:
apiGroup: ""
kind: Secret
name: prod-cluster-kubeconfigDeploymentTargetSpec
DeploymentTargetSpec defines the desired state of DeploymentTarget.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
artifactType ArtifactType | ArtifactType identifies which type of artifact should be deployed to the specified target. It must match the syntax defined in section 1.1 of the deployer specification. The ArtifactType is selected by a deployer whose controllers are responsible for reconciling the DeploymentTarget resource. If there is no deployer covering the given ArtifactType, the DeploymentTarget will never become ready. ArtifactType is immutable because changing it may transfer ownership of the DeploymentTarget to a different controller. Currently, Konfidence only supports one DeploymentTarget per ArtifactType in a landscape, so this field should be unique across all DeploymentTargets in the same landscape namespace. If multiple DeploymentTargets with the same ArtifactType exist in a single landscape namespace, deployers may fail their deployments, as they cannot determine which DeploymentTarget takes precedence. | Pattern: ^[a-z0-9](?:[a-z0-9-]\{0,61\}[a-z0-9])?\.(?:[a-z0-9](?:[a-z0-9-]\{0,61\}[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]\{0,61\}[a-z0-9])?$ Required: {} | |
parameters Parameters | Parameters define how to connect to the target runtime described by this DeploymentTarget. It may point to deployer-specific configuration containing connection details, credentials and further settings required to connect to the target runtime. Their structure and interpretation are defined by the deployer that owns ArtifactType. | Optional: {} |
DeploymentTargetStatus
DeploymentTargetStatus defines the state observed by the responsible deployer.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
controller string | Controller identifies the deployer and release version reporting this status. | Optional: {} | |
conditions Condition array | Optional: {} |
GlobMatch
Underlying type: string
GlobMatch is a claim-value match pattern using glob semantics, where "" matches any run of characters (for example "repo:konfidence-project/").
Validation:
- MaxLength: 512
Appears in:
JWKSSubject
JWKSSubject matches a workload token issued by a trusted OIDC provider, narrowed to a required audience and at least one token claim.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
endpoint string | Endpoint is the OIDC discovery endpoint (the provider's ".well-known/openid-configuration" URL) used to resolve the signing keys that the presented token is verified against. | MaxLength: 2048 Pattern: ^https://.*$ | |
audience string | Audience is the value the token's "aud" claim must carry. It is required so that a token minted for a different service cannot be replayed against Konfidence: the token is accepted only if it was issued for this audience. | MaxLength: 512 MinLength: 1 | |
claims object (keys:string, values:GlobMatch) | Claims narrows the match to tokens whose claims match the given patterns. It maps a claim name (for example "sub", "repository" or "ref") to a glob pattern the claim value must match; all listed claims must match (AND). At least one claim is required so a subject cannot inadvertently match every token a provider issues. | MaxProperties: 32 MinProperties: 1 |
Landscape
Landscape is the Schema for the landscapes API. A Landscape owns a dedicated namespace that serves as a deployment target for vectors. Landscapes must be created in project namespaces. The landscape name is capped at 46 characters so the derived namespace name stays within the 63-character Kubernetes limits.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | Landscape | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec LandscapeSpec | |||
status LandscapeStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: Landscape
metadata:
labels:
app.kubernetes.io/name: crds
name: sample-landscape
namespace: kden-p-sample-project # Must be created in a project namespace
spec:
displayName: Sample Development Landscape
# namespace: my-custom-landscape-namespace # overrides the default "kden-l-sample-landscape-<hash>"LandscapeSpec
LandscapeSpec defines the desired state of Landscape.
The transition rule catches namespace being set or unset after creation; changing a set namespace is caught by the field-level rule. The two rules are split to stay within the CEL cost budget of the schema.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
displayName string | DisplayName is the human-readable name of the landscape, shown in user interfaces. It does not affect the namespace name or any label, and it may be changed at any time. | MaxLength: 253 MinLength: 1 Optional: {} | |
namespace string | Namespace overrides the name of the namespace created for this landscape. When unset it defaults to kden-l-<landscape-name>-<hash>. It isimmutable once the Landscape exists, because the namespace and everything it holds are bound to this name. | MaxLength: 63 Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ Optional: {} | |
namespacePolicy NamespacePolicy | NamespacePolicy controls how the landscape namespace is taken over. Create (the default) creates it and errors on conflict; Adopt takes over an existing namespace and requires both that namespace to already exist and spec.namespace to be set, so the adopted namespace is named explicitly. It is immutable once the Landscape exists, because it only governs how the namespace is first acquired and has no effect once ownership is settled. | Create | Enum: [Create Adopt] Optional: {} |
deletionPolicy DeletionPolicy | DeletionPolicy controls what happens to the landscape namespace when the Landscape is deleted. Orphan (the default) keeps the namespace and strips its management labels; Delete removes the namespace with the Landscape. | Orphan | Enum: [Delete Orphan] Optional: {} |
LandscapeStatus
LandscapeStatus defines the observed state of Landscape.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | |||
namespace string | Namespace is the name of the namespace managed for this landscape. | Optional: {} | |
projectName string | ProjectName is the name of the project this landscape belongs to, derived from the namespace where the Landscape CR was created. | Optional: {} |
LocalArtifactDeploymentReference
LocalArtifactDeploymentReference holds a reference to an ArtifactDeployment in the same namespace.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the name of the ArtifactDeployment. Required. | ||
collisionCount integer | CollisionCount salts the ArtifactDeployment name hash to recover from a (rare) hash collision with a different artifact. nil and 0 both mean "no salt" and yield the original, unsalted name. Once bumped it is permanent for this artifact slot. Mirrors Deployment.Status.CollisionCount. | Optional: {} |
LocalObjectReference
LocalObjectReference references an object by name within the same namespace as the parent.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name of the referenced object. |
NamespacePolicy
Underlying type: string
NamespacePolicy controls how a controller takes ownership of its managed namespace.
Appears in:
| Field | Description |
|---|---|
Create | NamespacePolicyCreate creates the namespace and errors if one with the target name already exists and is not managed by this resource. |
Adopt | NamespacePolicyAdopt takes over a pre-existing namespace by writing the management labels onto it. A namespace owned by a different Project or Landscape is refused, and a missing namespace is a retryable error. |
OCMComponent
OCMComponent is a wrapper around the OCM ComponentVersion. It can be used to attach additional metadata to an ArtifactDeployment. The component may include one or more OCM resources.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the OCM ComponentVersion name. | ||
version string | Version is the OCM ComponentVersion version. | Optional: {} | |
repository RawExtension | Repository is the OCM repository specification for the component version, serialized the same way the OCM runtime serializes repository specs (e.g. {"type":"OCIRepository/v1","baseUrl":...}). Deployers use it to open the hosting repository for localBlob resources and other repo-anchored reads. | Optional: {} | |
resources OCMResource array | Resources contains OCM resources belonging to this component. The structure is intentionally generic to support the requirements of deployers targeting different runtimes. | Optional: {} |
OCMCredentials
OCMCredentials lists Secrets holding .ocmconfig or .dockerconfigjson data. All references are same-namespace.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
refs CredentialRef array | MinItems: 1 |
OCMResource
OCMResource represents a single resource of an OCM ComponentVersion. The content and type are deployer-specific and opaque to the API.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the resource name. | ||
content RawExtension | Content holds raw resource data, typically an embedded manifest, file, or binary payload. | ||
type string | Type describes the resource type, following OCM conventions. | ||
labels OCMResourceLabel array | Labels is the resource's OCM Labels. Each entry mirrors an OCM descriptor label (name, opaque JSON value, optional signing flag, optional version). Deployers use these to read routing or other per-resource metadata without re-opening the descriptor. | Optional: {} | |
digest OCMResourceDigest | Digest is the descriptor-side digest of the resource, if present. Deployers use it to verify downloaded content against the signed descriptor. | Optional: {} |
OCMResourceDigest
OCMResourceDigest mirrors the OCM descriptor Digest at the deployer surface.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
hashAlgorithm string | HashAlgorithm is the algorithm applied to the normalized representation (OCM digest-algorithms). | ||
normalisationAlgorithm string | NormalisationAlgorithm is how the descriptor or artifact content is normalized before hashing (OCM normalization algorithms). | Optional: {} | |
value string | Value is the encoded digest. |
OCMResourceLabel
OCMResourceLabel mirrors the OCM descriptor Label at the deployer surface.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the label name. | ||
value RawExtension | Value is the raw JSON value of the label, opaque to the API. Schemaless keeps every JSON shape valid: controller-gen renders RawExtension as an object-only schema, which would reject scalar values like "/widget". | Schemaless: {} | |
signing boolean | Signing indicates whether the label participates in OCM signing. | Optional: {} | |
version string | Version is an optional specification version of the label value. | Optional: {} |
Parameters
Parameters reference a resource containing deployer-specific configuration for connecting to the target runtime. The referenced resource's structure and interpretation are defined by the deployer responsible for the DeploymentTarget's ArtifactType.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiGroup string | APIGroup is the group for the resource being referenced. Defaults to the core API group ("") for Secret and ConfigMap. For deployer-specific CRDs, set this to the appropriate API group. | Optional: {} | |
kind string | Kind is the resource kind (e.g., "Secret", "ConfigMap", or a deployer-specific kind). | MaxLength: 63 MinLength: 1 Required: {} | |
name string | Name is the name of the referenced resource. | MaxLength: 253 MinLength: 1 Required: {} |
Project
Project is the Schema for the projects API. A Project owns a dedicated namespace that stores the project's resources. The project name is capped at 56 characters so the derived namespace name and label values stay within the 63-character Kubernetes limits.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | Project | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec ProjectSpec | |||
status ProjectStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: Project
metadata:
labels:
app.kubernetes.io/name: crds
name: sample-project
spec:
displayName: Sample Project
# namespace: my-custom-namespace # overrides the default "kden-p-sample-project"
roleBindings:
admin:
- session:
memberOf:
- platform-admins
- jwks:
endpoint: https://token.actions.githubusercontent.com/.well-known/openid-configuration
audience: https://konfidence.example/api
claims:
sub: repo:konfidence-project/konfidence:*
pm:
- session:
memberOf:
- sample-project-pms
dev:
- session:
memberOf:
- sample-project-devsProjectSpec
ProjectSpec defines the desired state of Project.
The transition rule catches namespace being set or unset after creation; changing a set namespace is caught by the field-level rule. The two rules are split to stay within the CEL cost budget of the schema.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
displayName string | DisplayName is the human-readable name of the project, shown in user interfaces. It does not affect the namespace name or any label, and it may be changed at any time. | MaxLength: 253 MinLength: 1 Optional: {} | |
namespace string | Namespace overrides the name of the namespace created for this project. When unset it defaults to kden-p-<project-name>. It is immutableonce the Project exists, because the namespace and everything it holds are bound to this name. | MaxLength: 63 Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ Optional: {} | |
namespacePolicy NamespacePolicy | NamespacePolicy controls how the project namespace is taken over. Create (the default) creates it and errors on conflict; Adopt takes over an existing namespace and requires both that namespace to already exist and spec.namespace to be set, so the adopted namespace is named explicitly. It is immutable once the Project exists, because it only governs how the namespace is first acquired and has no effect once ownership is settled. | Create | Enum: [Create Adopt] Optional: {} |
deletionPolicy DeletionPolicy | DeletionPolicy controls what happens to the project namespace when the Project is deleted. Orphan (the default) keeps the namespace and strips its management labels; Delete removes the namespace with the Project. | Orphan | Enum: [Delete Orphan] Optional: {} |
roleBindings object (keys:string, values:Subjects) | RoleBindings grants project roles to callers. It maps a role name to the list of subjects that hold that role; a caller holds the role if any subject in the list matches (OR). The role names are a fixed, well-known set for now (for example "admin", "pm", "dev"), but the field is a map so the set can be extended without a schema change. See the Project multi-tenancy ADR for the meaning of each role and the authorization flow. RoleBindings is currently schema-only: no authorization is enforced yet. | MaxProperties: 32 Optional: {} |
ProjectStatus
ProjectStatus defines the observed state of Project.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | |||
namespace string | Namespace is the name of the namespace managed for this project. | Optional: {} |
PromotionGate
PromotionGate declares a gate a promotion must pass before it executes.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
type string | Type identifies the gate as <gate-name>.<owner-domain>, for exampleexplicit-approval.konfidence.cloud or e2e-tests.example.com. Thefirst label names the gate, the remaining labels name the party that owns the gate type and ships its writer. The promotion controller never interprets the type; it only tracks whether the gate is satisfied. | MaxLength: 253 MinLength: 1 Pattern: ^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)\{2,\}$ |
PromotionGateState
Underlying type: string
PromotionGateState is the state of a single promotion gate.
Validation:
- Enum: [Pending Satisfied Error]
Appears in:
| Field | Description |
|---|---|
Pending | PromotionGateStatePending means the gate is still open. |
Satisfied | PromotionGateStateSatisfied means the gate has passed. |
Error | PromotionGateStateError means the gate writer detected a problem (e.g. a misconfiguration) that keeps the gate from ever passing as is. |
PromotionGateStatus
PromotionGateStatus reports the state of one declared gate together with its provenance: who set it, when, and why.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
type string | Type is the gate type this entry reports on. | MaxLength: 253 MinLength: 1 | |
state PromotionGateState | State is the current state of the gate. | Enum: [Pending Satisfied Error] | |
reason string | Reason is a machine-readable CamelCase reason for the latest state change. | MaxLength: 1024 Optional: {} | |
message string | Message is a human-readable description of the latest state change, e.g. what is misconfigured when State is Error. | MaxLength: 32768 Optional: {} | |
setBy string | SetBy is the entity that last set the gate state: a controller name or, for human actions, the authenticated subject. The value is advisory and not a security boundary. | Optional: {} | |
setAt Time | SetAt is the time the gate state was last set. | Optional: {} |
PromotionOverride
PromotionOverride records an operator decision that overrides the normal gate flow, together with its provenance: who, when, and why.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
type PromotionOverrideType | Type is the operator decision. | Enum: [Reject BypassGates] | |
setBy string | SetBy is the authenticated subject that made the decision. | MaxLength: 1024 MinLength: 1 | |
setAt Time | SetAt is the time the decision was made. | ||
reason string | Reason is the operator's justification for the decision. | MaxLength: 1024 MinLength: 1 |
PromotionOverrideType
Underlying type: string
PromotionOverrideType is the operator decision recorded in status.override.
Validation:
- Enum: [Reject BypassGates]
Appears in:
| Field | Description |
|---|---|
Reject | PromotionOverrideTypeReject terminally rejects a waiting promotion. |
BypassGates | PromotionOverrideTypeBypassGates lets a waiting promotion proceed to execution regardless of its gates. |
PromotionSourceReference
PromotionSourceReference identifies the in-cluster resource whose current vector is promoted from. The source is resolved by the config reconciler, which pins the concrete vector into VectorPromotionSpec.Vector; the execution controller never reads it.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
kind string | Kind is the kind of the source resource. | Enum: [VectorTemplate Stage] | |
name string | Name is the name of the source resource. | MaxLength: 253 MinLength: 1 | |
landscape string | Landscape is the metadata.name of the Landscape in the config'snamespace (not its managed namespace) whose namespace hosts the referenced Stage. Required for Stage references; must be omittedfor VectorTemplate references, which are resolved in the config'snamespace. | MaxLength: 63 MinLength: 1 Optional: {} |
PromotionTargetReference
PromotionTargetReference identifies the Stage whose spec.vector is the promotion target.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
kind string | Kind is the kind of the target resource. Only Stage is supported. | Enum: [Stage] | |
name string | Name is the name of the target Stage. | MaxLength: 253 MinLength: 1 | |
landscape string | Landscape is the metadata.name of the Landscape in the config'snamespace (not its managed namespace) whose namespace hosts the target Stage. | MaxLength: 63 MinLength: 1 |
SessionSubject
SessionSubject matches an interactive user by group membership.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
memberOf string array | MemberOf lists the groups that grant the role. Membership in any one of the listed groups is sufficient to match (OR). | MaxItems: 64 MinItems: 1 items:MaxLength: 253 |
Sign
Sign lists signatures the controller produces on every descriptor it writes. Absence on a spec disables signing.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
signatures Signature array | MinItems: 1 |
Signature
Signature pins parameters of one named signature on a component descriptor. Used both for verification (matched against the fetched descriptor) and for signing (overrides defaults of the emitted signature).
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the unique identifier for this signature. | MinLength: 1 | |
algorithm string | Algorithm specifies the RSA signing algorithm. When omitted, RSASSA-PSS is used. Valid values: RSASSA-PSS, RSASSA-PKCS1-V1_5. | Optional: {} | |
signatureMediaType string | SignatureMediaType specifies the encoding format for the signature bytes. When omitted, application/x-pem-file (PEM) is used. Valid values: application/x-pem-file, application/vnd.ocm.signature.rsa.pss, application/vnd.ocm.signature.rsa. | Optional: {} | |
hashAlgorithm string | HashAlgorithm specifies the digest algorithm used when hashing the component descriptor. When omitted, SHA-256 is used. Valid values: SHA-256, SHA-512. | Optional: {} | |
normalisationAlgorithm string | NormalisationAlgorithm specifies the normalisation scheme applied to the descriptor before hashing. When omitted, jsonNormalisation/v4alpha1 is used. Valid values: jsonNormalisation/v4alpha1. | Optional: {} | |
issuer string | Issuer pins the expected certificate issuer DN for PEM-encoded signatures. On the sign path the value is stamped into the descriptor alongside the signature, so it is enforced automatically on the verify path even without an explicit pin here. On the verify path, when set, this value overrides whatever the descriptor stored and the handler rejects any signature whose leaf certificate issuer DN does not match. When omitted on both paths the issuer field stays empty and no DN check is performed. Must be non-empty when present. | Optional: {} |
Stage
Stage is the Schema for the stages API.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | Stage | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec StageSpec | |||
status StageStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: Stage
metadata:
name: stage-dev
spec:
vector: https://registry.kdenv.lab/ocm/vector//common.konfidence.cloud/example/vector:0.0.1StageReference
StageReference holds a reference to a Stage in the same namespace.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the name of the Stage. Required. |
StageSpec
StageSpec defines the desired state of Stage.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
vector string | Vector points to the OCM component version that contains the deployment vector for this stage. | MinLength: 1 Optional: {} |
StageStatus
StageStatus defines the observed state of Stage.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | |||
vectorHistory string array | |||
latestVectorDeploymentRef TypedObjectReference | |||
activeStageVersion StageVersionReference | ActiveStageVersion references the StageVersion whose vector is currently active on this stage, mirrored from the stage's active StageVersionUsage. | Optional: {} |
StageVersion
StageVersion is the Schema for the stageversions API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | StageVersion | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec StageVersionSpec | Spec defines the desired state of the StageVersion and is immutable after it has been set | Optional: {} Required: {} | |
status StageVersionStatus | status defines the observed state of StageVersion | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: StageVersion
metadata:
labels:
app.kubernetes.io/name: crds
name: stageversion-dev-475124
ownerReferences:
- apiVersion: konfidence.cloud/v1alpha1
kind: Stage
name: stage-dev
uid: # TODO: add owner uid here after creating Stage resource
spec:
vector: https://registry.kdenv.lab/ocm/vector//common.konfidence.cloud/example/vector:0.0.1
stageGeneration: 1
stageRef:
name: stage-devStageVersionReference
StageVersionReference holds a reference to a StageVersion in the same namespace.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name is the name of the StageVersion. Required. |
StageVersionSpec
StageVersionSpec defines the desired state of StageVersion
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
vector string | Vector points to the OCM component version that contains the deployment vector for this stage. | MinLength: 1 | |
stageGeneration integer | the object generation of the stage that created this stage version | Minimum: 1 | |
stageRef StageReference | stageRef references the Stage this StageVersion belongs to |
StageVersionStatus
StageVersionStatus defines the observed state of StageVersion.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | |||
vectorDeploymentRef LocalObjectReference | VectorDeploymentRef references the VectorDeployment created for this StageVersion. It is absent until creation succeeds. | Optional: {} |
StageVersionUsage
StageVersionUsage is the Schema for the stageversionusages API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | StageVersionUsage | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec StageVersionUsageSpec | spec defines the desired state of StageVersionUsage | ExactlyOneOf: [stageVersionRef stageVersionSelector] Required: {} | |
status StageVersionUsageStatus | status defines the observed state of StageVersionUsage | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: StageVersionUsage
metadata:
labels:
app.kubernetes.io/name: crds
name: stageversionusage-sample
spec:
reason: Target usage for stage 'stage-dev'
stageVersionRef:
name: stageversion-dev-475124StageVersionUsageSpec
StageVersionUsageSpec defines the desired state of StageVersionUsage
Validation:
- ExactlyOneOf: [stageVersionRef stageVersionSelector]
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
reason string | Reason is human-readable description of why this StageVersion is in use, e.g. "executing vector migrations", "latest vector for stage xyz", | Optional: {} | |
stageVersionRef StageVersionReference | StageVersionRef references a stageVersion | Optional: {} | |
stageVersionSelector LabelSelector | StageVersionSelector is a label selector to find a StageVersion when name is not provided. | Optional: {} |
StageVersionUsageStatus
StageVersionUsageStatus defines the observed state of StageVersionUsage.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | |||
resolvedStageVersions string array | ResolvedStageVersions contains the names of all resolved stageVersion resources specified by either stageVersionRef or StageVersionSelector |
Subject
Subject identifies who is granted a role. Exactly one identity source (session or jwks) must be set.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
session SessionSubject | Session matches an interactively authenticated user by group membership, for example a person signed in through the identity provider. | Optional: {} | |
jwks JWKSSubject | JWKS matches a workload identity presenting a token signed by a trusted OIDC provider, for example a CI pipeline's OIDC token. | Optional: {} |
Subjects
Underlying type: Subject
Subjects is the list of subjects that hold a role. A caller holds the role if any subject matches (OR).
Validation:
- MaxItems: 32
- MinItems: 1
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
session SessionSubject | Session matches an interactively authenticated user by group membership, for example a person signed in through the identity provider. | Optional: {} | |
jwks JWKSSubject | JWKS matches a workload identity presenting a token signed by a trusted OIDC provider, for example a CI pipeline's OIDC token. | Optional: {} |
TaskExecution
TaskExecution is the Schema for the taskexecutions API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | TaskExecution | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec TaskExecutionSpec | spec defines the desired state of TaskExecution | Required: {} | |
status TaskExecutionStatus | status defines the observed state of TaskExecution | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: TaskExecution
metadata:
labels:
app.kubernetes.io/name: crds
name: taskexecution-sample
spec:
name: service2-task-1
type: k8s-job
dependsOn: [ ]
spec: {
"template": {
"spec": {
"containers": [
{
"name": "service1-task-1-container",
"image": "registry.kdenv.lab/docker/sample-project/service1-task-1:0.0.1",
"command": [
"echo",
"I am task 1 of service 1"
]
}
]
},
"restartPolicy": "Never"
},
"backoffLimit": 4
}TaskExecutionSpec
TaskExecutionSpec defines the desired state of TaskExecution
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | |||
type string | |||
dependsOn string array | |||
spec RawExtension |
TaskExecutionStatus
TaskExecutionStatus defines the observed state of TaskExecution.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array |
TaskManifest
TaskManifest defines a post-deployment task that is executed after the artifact has been deployed. Tasks are commonly used for vector migrations (such as database schema changes) but may represent any post-deployment action.
Tasks form a directed acyclic graph (DAG) at the vector level rather than only within a single ArtifactDeployment. A task may depend on tasks belonging to other microservices or artifacts in the same VectorDeployment. These cross-artifact dependencies allow defining a globally ordered migration or transformation workflow.
The controller responsible for the task type interprets the Spec field and performs the execution once all declared dependencies have completed successfully.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
name string | Name uniquely identifies this task within the entire vector. This name may be referenced by other tasks across different artifacts. | ||
type string | Type specifies the task controller or execution runtime (e.g. "k8s-job", or any custom task runtime). Different task types correspond to different task controllers, each interpreting the Spec field according to their own semantics. | ||
dependsOn string array | DependsOn lists names of other tasks that must complete before this task may run. Dependencies may reference tasks within the same artifact or any other artifact that participates in the same VectorDeployment, allowing the formation of a vector-wide DAG. | Optional: {} | |
spec RawExtension | Spec contains task-specific configuration. The structure depends on the task Type and is interpreted by the corresponding task controller. |
VectorActivation
VectorActivation is the Schema for the vectoractivations API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorActivation | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec VectorActivationSpec | spec defines the desired state of VectorActivation | Required: {} | |
status VectorActivationStatus | status defines the observed state of VectorActivation | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorActivation
metadata:
labels:
app.kubernetes.io/name: crds
name: vectoractivation-sample
ownerReferences:
- apiVersion: konfidence.cloud/v1alpha1
kind: StageVersion
name: <OWNER-NAME> # TODO: add stage version name here
uid: <OWNER-UID>‚ # TODO: add stage version uid here
spec:
# TODO: clarify if stageVersion is required here since it is also in OwnerReferences
stage: stage-dev
stageVersion: <STAGE-VERSION-NAME> # TODO: add stage version name here
vector: https://registry.kdenv.lab/ocm/vector//common.konfidence.cloud/example/vector:0.0.1
vectorDeployment: common.konfidence.cloud.example.vector-0.0.1VectorActivationSpec
VectorActivationSpec defines the desired state of VectorActivation
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
stage string | |||
stageVersion string | |||
vector string | Vector points to the OCM component version that contains the deployment vector for this stage. | ||
vectorDeployment string |
VectorActivationStatus
VectorActivationStatus defines the observed state of VectorActivation.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array |
VectorConfig
VectorConfig defines feature flags and authored configuration values for a vector.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
features RawExtension | Features define the feature flags. | ||
authored RawExtension | Authored define the authored configuration values. |
VectorData
VectorData is the schema for the vectordata API.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorData | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec VectorDataSpec | Optional: {} | ||
status VectorDataStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorData
metadata:
name: vectordata-sample
spec:
features:
checkout-v2:
enabled: true
authored:
replicas: 3
deploymentResults:
https://registry.kdenv.lab/ocm/vector//common.konfidence.cloud/example/vector/service1:
- name: candidates
type: http-k8s-service
spec:
namespace: dev
k8sName: candidates
servicePorts:
- name: http
port: 80VectorDataSpec
VectorDataSpec is the LCP→landscape-orchestrator contract for vector-scoped data. The vector deployment controller resolves the OCM envelope {features, authored} and aggregates per-AD DeploymentResults; the landscape orchestrator materialises the payload on its target runtime (ConfigMap on K8s, etc.).
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
features RawExtension | Features carries the optional "features" subset of the OCM envelope, verbatim JSON. | Optional: {} | |
authored RawExtension | Authored carries the optional "authored" subset of the OCM envelope, verbatim JSON. | Optional: {} | |
deploymentResults object (keys:string, values:ComponentDeploymentResults) | DeploymentResults aggregated from underlying ArtifactDeployments, keyed by artifact component name; the value lists every result emitted by that component. Within a component's list, results are unique by (name, type). | MaxProperties: 64 Optional: {} |
VectorDataStatus
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | Optional: {} |
VectorDeployment
VectorDeployment is the Schema for the vectordeployments API.
VectorDeployment represents the deployment of an immutable vector of artifacts into a specific environment or stage.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorDeployment | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec VectorDeploymentSpec | Spec defines the desired state of the VectorDeployment and is immutable after it has been set | Optional: {} | |
status VectorDeploymentStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorDeployment
metadata:
labels:
app.kubernetes.io/name: crds
name: common.konfidence.cloud.example.vector-0.0.1
spec:
vector: https://registry.konfidence.cloud/ocm/vector//common.konfidence.cloud/example/vector:0.0.1VectorDeploymentSpec
VectorDeploymentSpec defines the desired state of a VectorDeployment.
A VectorDeployment references a deployment vector stored as an OCM ComponentVersion in an OCI registry. The vector describes a complete, immutable set of artifacts and versions that should be deployed as a unit. A vector must contain at most one artifact for each OCM component name. Referencing the same artifact component more than once, including references to different versions, makes the vector invalid.
The value must always be a fully qualified OCI URL and must resolve to a valid OCM ComponentVersion. The VectorDeployment spec is intended to be immutable. Any substantive change should result in a new VectorDeployment instance rather than updating an existing one.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
vector string | Vector is a fully qualified URL pointing to an OCM ComponentVersion stored in an OCI registry. The referenced component contains the deployment vector, which includes the complete list of artifacts and their versions. |
VectorDeploymentStatus
VectorDeploymentStatus represents the observed state of a VectorDeployment as it progresses through the deployment lifecycle.
The lifecycle consists of:
- Pulling the vector from the OCI registry and parsing its contents -> VectorDownloadedCondition
- Creating (or re-using) one ArtifactDeployment per artifact in the vector -> ArtifactDeploymentsCreatedCondition
- Waiting until all ArtifactDeployments have successfully deployed -> VectorDeployedCondition
- Creating the VectorData CR with the resolved authored configuration + aggregated DeploymentResults; the runtime-specific implementor then materialises it (e.g. as a ConfigMap on Kubernetes) -> VectorDataCreatedCondition
- Marking the vector as ready for use once VectorData reports its own Ready=True -> VectorReadyCondition
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | Conditions represents the current set of status conditions for this vector deployment. These conditions track progress through the lifecycle stages. | ||
resolvedVectorOcm string | ResolvedVectorOcm contains the fully materialized content of the OCM ComponentVersion after it has been downloaded and resolved from the OCI registry. Unlike the Spec.Vector value, which is only a reference (URL), this field stores the actual resolved vector content as provided by OCM, including all artifacts and metadata. It is not a reference but the inlined representation of the component version at reconciliation time. | ||
resultingVectorData LocalObjectReference | ResultingVectorData records the name of the VectorData object created for this VectorDeployment. The VectorData CR is the contract between the vector deployment controller (which resolves the OCM payload) and the runtime-specific implementor (which materialises it on the target runtime). The field is empty until step 4 of the lifecycle has produced the CR. Names are stable across reconciliations. | ||
resultingArtifactDeployments object (keys:string, values:LocalArtifactDeploymentReference) | ResultingArtifactDeployments lists the ArtifactDeployment resources created (or re-used) for this vector. The map key is the component name of the artifact as defined inside the vector. Keys remain stable across reconciliations and re-creations. | ||
deploymentResults object (keys:string, values:ComponentDeploymentResults) | DeploymentResults exposes an aggregated view of the deployment results produced by all underlying ArtifactDeployments. The map key is the artifact component name; the value lists every result emitted by that ArtifactDeployment. Within a component's list, results are unique by (name, type). | MaxProperties: 64 |
VectorMigration
VectorMigration is the Schema for the vectormigrations API
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorMigration | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec VectorMigrationSpec | spec defines the desired state of VectorMigration | Required: {} | |
status VectorMigrationStatus | status defines the observed state of VectorMigration | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorMigration
metadata:
labels:
app.kubernetes.io/name: crds
name: vectormigration-dev-985434
spec:
stageVersion: stageversion-dev-475124
vector: https://registry.konfidence.cloud/ocm/vector//common.konfidence.cloud/example/vector:0.0.1VectorMigrationSpec
VectorMigrationSpec defines the desired state of VectorMigration
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
stageVersion string | |||
vector string | Vector points to the OCM component version that contains the deployment vector for this stage. |
VectorMigrationStatus
VectorMigrationStatus defines the observed state of VectorMigration.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array |
VectorPromotion
VectorPromotion triggers a one-time execution of a promotion flow defined by a VectorPromotionConfig.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorPromotion | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec VectorPromotionSpec | |||
status VectorPromotionStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorPromotion
metadata:
namespace: default
name: sample-vector-promotion
spec:
vectorPromotionConfigName: sample-promotion-config
source:
kind: VectorTemplate
name: sample-vector-template
target:
kind: Stage
name: sample-stage
landscape: sample-landscape
vector: registry.kdenv.lab/sample-project//konfidence-project.com/constructed-vector:2026.8.5-090000000Z
gates:
- type: explicit-approval.konfidence.cloud
sequence: 1VectorPromotionConfig
VectorPromotionConfig describes a promotion flow for a vector between a source and a target.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorPromotionConfig | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | ||
spec VectorPromotionConfigSpec | Spec defines the desired state of the VectorPromotionConfig. | Optional: {} | |
status VectorPromotionConfigStatus |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorPromotionConfig
metadata:
namespace: kden-p-sample
name: sample-promotion-config
spec:
source:
kind: VectorTemplate
name: sample-vector-template
target:
kind: Stage
name: sample-stage
landscape: sample-landscape
gates:
- type: explicit-approval.konfidence.cloud
keepLastPromotions: 10
keepOutstandingPromotions: 10VectorPromotionConfigSpec
VectorPromotionConfigSpec defines the desired state of VectorPromotionConfig.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
source PromotionSourceReference | Source references the resource to promote from. | ||
target PromotionTargetReference | Target references the Stage to promote to. | ||
gates PromotionGate array | Gates declares the gates every promotion created from this config must pass before it executes. The list is snapshotted into each promotion at creation; later edits only affect promotions created afterwards. An empty list promotes immediately. | MaxItems: 32 Optional: {} | |
keepLastPromotions integer | KeepLastPromotions keeps the newest terminal VectorPromotions per config among those older than every non-terminal promotion. Cleanup of newer or equal-sequence terminal promotions is deferred until older promotions finish; they do not count toward this bound. With no non-terminal promotions, the bound applies to all terminal promotions. A value of 0 deletes all eligible terminal promotions. Non-terminal promotions are never deleted. | 10 | Minimum: 0 Optional: {} |
keepOutstandingPromotions integer | KeepOutstandingPromotions bounds how many gated and not yet processed VectorPromotions are retained per config; the oldest beyond the bound are set to the terminal state "Superseded". A value of 0 disables the bound and retains unlimited outstanding promotions. | 10 | Minimum: 0 Optional: {} |
VectorPromotionConfigStatus
VectorPromotionConfigStatus defines the observed state of VectorPromotionConfig.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | Conditions reports on the config itself, e.g. whether its references resolve to existing resources. Promotion results are reported separately in LastPromotionConditions. | ||
lastPromotionConditions Condition array | LastPromotionConditions contains the result of the most recent VectorPromotion execution | ||
lastSuccessfulPromotionConditions Condition array | LastSuccessfulPromotionConditions contains the result of the most recent VectorPromotion execution, that was successful | ||
sequence integer | Sequence is the monotonic counter of promotions created for this config. The config reconciler increments it and stamps the value into each created promotion's spec.sequence. | Optional: {} |
VectorPromotionSpec
VectorPromotionSpec defines the desired state of VectorPromotion.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
vectorPromotionConfigName string | VectorPromotionConfigName is the name of the VectorPromotionConfig that defines the promotion flow to execute. | MinLength: 1 | |
source PromotionSourceReference | Source is a snapshot of the config's source reference at creation time, recorded so a promotion is self-describing. | ||
target PromotionTargetReference | Target is a snapshot of the config's target reference at creation time. Execution resolves and writes this target: approving a promotion approves exactly this destination, regardless of later config edits. | ||
vector string | Vector is the concrete OCM component version reference ( <registry>//<component>:<version>) pinned when the promotion was created. | MinLength: 1 | |
gates PromotionGate array | Gates is an immutable snapshot of the config's gates at creation time. The promotion does not execute until every gate has a Satisfied entryin status.gates. An empty list promotes immediately. The field isrequired: creators set an empty list rather than omitting it. | MaxItems: 32 | |
sequence integer | Sequence is a monotonic ordinal assigned by the creator (the config reconciler, from the config's status.sequence). It is the soleordering between promotions of the same config; creation timestamps only have second resolution and are never consulted. | Minimum: 0 |
VectorPromotionStatus
VectorPromotionStatus defines the observed state of VectorPromotion.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | Conditions report GatesSatisfied, TargetResolved and Succeeded. | Optional: {} | |
startTime Time | StartTime is when execution started, i.e. the promotion began writing its vector to the target Stage. Set at most once. | Optional: {} | |
completionTime Time | CompletionTime is when the promotion finished (Succeeded True or False). | Optional: {} | |
gates PromotionGateStatus array | Gates reports the state and provenance of each declared gate, keyed by gate type. Entries are seeded Pending by the promotion controller andset by the gate's writer (a gate controller or the konfidence API) through pkg/promotiongate. A missing entry counts as Pending. | MaxItems: 32 Optional: {} | |
override PromotionOverride | Override records an operator decision that overrides the gate flow:Reject terminally rejects the promotion, BypassGates lets it proceedregardless of its gates (GatesSatisfied stays False with reason GatesBypassed; the gate entries are left untouched). It is written only by the konfidence API, at most once while the promotion waits on its gates, and never cleared. | Optional: {} | |
promotedStageRef TypedObjectReference | PromotedStageRef records the Stage this promotion actually wrote its vector to, so the promotion is self-describing even after the config changed or was deleted. | Optional: {} |
VectorTemplate
VectorTemplate represents a template for assembling OCM components into an OCM component that represents a vector.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
apiVersion string | konfidence.cloud/v1alpha1 | ||
kind string | VectorTemplate | ||
kind string | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | Optional: {} | |
apiVersion string | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | Optional: {} | |
metadata ObjectMeta | Refer to Kubernetes API documentation for fields of metadata. | Optional: {} | |
spec VectorTemplateSpec | spec defines the desired state of VectorTemplate | Required: {} | |
status VectorTemplateStatus | status defines the observed state of VectorTemplate | Optional: {} |
Example
apiVersion: konfidence.cloud/v1alpha1
kind: VectorTemplate
metadata:
namespace: dev
name: shopping-app
spec:
# How often the assembly controller checks for drift. Optional; defaults to the
# controller's built-in interval when omitted.
reconcileInterval: 10m
# Target OCM component the assembled vector is uploaded to. Must NOT carry a
# version — the controller generates the assembled vector's version.
# This is the full "shopping app" vector: base platform + application tier.
uploadTarget: registry.kdenv.lab/shop//shop.example.com/vector/shopping-app
# Optional base: the most recently assembled vector of the referenced
# VectorTemplate is used as the base layer for this vector's assembly.
# The base carries the shared platform services (identity, config, gateway,
# notifications) that every environment inherits.
base:
kind: VectorTemplate
name: shopping-app-base
# Components pulled into the vector (at least one required). Each reference must
# carry a version — a semantic version or a moving alias such as `stable`.
# The application tier of the shop, layered on top of the base platform.
components:
- name: registry.kdenv.lab/shop//shop.example.com/storefront/web-bff:stable
- name: registry.kdenv.lab/shop//shop.example.com/catalog/product-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/catalog/search-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/catalog/recommendation-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/cart/cart-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/checkout/checkout-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/checkout/payment-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/order/order-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/inventory/inventory-service:stable
- name: registry.kdenv.lab/shop//shop.example.com/fulfilment/shipping-service:stable
# Credentials for OCM repository access and signing/verification key material.
# There is no separate signing/verify credential field: the controller feeds
# these same refs to the OCI client, the signer, and the verifier. Each ref is
# a same-namespace Secret holding .ocmconfig (which may carry RSA consumer
# entries for signing/verify keys) or .dockerconfigjson data.
credentials:
ocm:
refs:
- name: registry-credentials
- name: signing-keys
# Verify every artifact pulled into the assembly against these candidate
# signatures. Omit to disable artifact verification.
verifyArtifacts:
signatures:
- name: konfidence
# Verify any fetched vector (base or a pre-existing upload target) against
# these candidate signatures. Omit to disable vector verification.
verifyVector:
signatures:
- name: konfidence
# Signatures the controller produces on the emitted vector. Omit to disable
# signing. Algorithm/hash/media type default when unset.
signVector:
signatures:
- name: konfidence
algorithm: RSASSA-PSS
hashAlgorithm: SHA-256
# Feature flags and authored configuration baked into the vector.
vectorConfig:
features:
express-checkout:
enabled: true
recommendations:
enabled: true
authored:
storefrontReplicas: 3
currency: EURVectorTemplateReference
VectorTemplateReference holds a reference to a VectorTemplate in the same namespace, used as the base of another VectorTemplate.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
kind string | Kind is the kind of the referenced object. Only VectorTemplate is supported for now. | VectorTemplate | Enum: [VectorTemplate] |
name string | Name is the name of the referenced VectorTemplate. Required. | MinLength: 1 |
VectorTemplateSpec
VectorTemplateSpec defines the desired state of VectorTemplate. VectorTemplateSpec defines the components of which a vector is composed. From a VectorTemplate an OCM component is created which contains the latest version of all listed components.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
reconcileInterval Duration | ReconcileInterval defines how often the assembly controller should check for drift. If not set, the controller's default reconcile interval will be used. | Optional: {} | |
uploadTarget string | UploadTarget defines the target OCM component where the assembled vector will be uploaded. | ||
base VectorTemplateReference | Base references another VectorTemplate whose most recently assembled vector (status.latestVector) is used as the base for this vector's assembly. | Optional: {} Optional: {} | |
components Component array | Components lists the components to be included in the vector. After references and aliases are resolved, each OCM component name may occur at most once in the resulting vector. A component listed here overrides an artifact with the same OCM component name inherited from Base. | MinItems: 1 | |
credentials Credentials | Credentials supplies credentials for OCM repositories and signing/verification key material. | Optional: {} | |
verifyArtifacts Verify | VerifyArtifacts lists candidate signatures evaluated against every artifact pulled into the assembly. Absence disables artifact verification. | Optional: {} | |
verifyVector Verify | VerifyVector lists candidate signatures evaluated against any vector the assembly fetches (base or pre-existing upload target). Absence disables vector verification. | Optional: {} | |
signVector Sign | SignVector lists signatures the controller produces on the emitted vector. Absence disables signing. | Optional: {} | |
vectorConfig VectorConfig | Optional: {} |
VectorTemplateStatus
VectorTemplateStatus defines the observed state of VectorTemplate.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
conditions Condition array | |||
latestVector string | LatestVector is the concrete OCM component version of the most recently assembled vector, in the form <repository>//<component>:<version>. It isempty until the first successful assembly. | Optional: {} |
Verify
Verify lists candidate signatures evaluated against every fetched descriptor. Absence on a spec disables verification.
Appears in:
| Field | Description | Default | Validation |
|---|---|---|---|
signatures Signature array | MinItems: 1 |