Cargo Features

[dependencies]
kubewarden-policy-sdk = { version = "0.13.2", default-features = false, features = ["cluster-context", "crd"] }
default = cluster-context

The cluster-context feature is set by default whenever kubewarden-policy-sdk is added without default-features = false somewhere in the dependency tree.

cluster-context default = k8s-openapi

Affects host_capabilities::kubernetes, kubewarden-policy-sdk::mutate_pod_spec_from_request

crd = k8s-openapi-derive, schemars

Enables schemars of k8s-openapi

k8s-openapi:

Enable schemars::JsonSchema implementations on resource types.

Affects kubewarden-policy-sdk::crd

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

k8s-openapi cluster-context crd?
k8s-openapi-derive crd?
schemars crd?