pub enum SchemaSource {
Release {
version: String,
},
Cluster {
cluster: Option<String>,
},
Git {
repo: String,
tag: String,
path: String,
},
File {
path: String,
},
}Expand description
A schema dependency entry. Every entry must specify source explicitly.
Variants§
Release
Fetch OpenAPI v3 specs from kubernetes/kubernetes GitHub releases.
kubernetes = { source = "release", version = "1.35" }
Cluster
Fetch all specs from a live K8s API server.
cluster-crds = { source = "cluster" } — uses [cluster]
dev-crds = { source = "cluster", cluster = "dev" } — uses [clusters.dev]
Git
Clone a git repo at a tag and extract CRD YAML manifests.
cert-manager = { source = "git", repo = "...", tag = "v1.17.2", path = "deploy/crds" }
File
Read CRD YAML from a local file or directory.
my-crd = { source = "file", path = "./crds/my-crd.yaml" }
Trait Implementations§
Source§impl Clone for SchemaSource
impl Clone for SchemaSource
Source§fn clone(&self) -> SchemaSource
fn clone(&self) -> SchemaSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaSource
impl Debug for SchemaSource
Source§impl<'de> Deserialize<'de> for SchemaSource
impl<'de> Deserialize<'de> for SchemaSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SchemaSource
impl RefUnwindSafe for SchemaSource
impl Send for SchemaSource
impl Sync for SchemaSource
impl Unpin for SchemaSource
impl UnsafeUnpin for SchemaSource
impl UnwindSafe for SchemaSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more