cnpg 0.1.0

Kubernetes CRD bindings for CloudNativePG
Documentation
use crate::prelude::*;

// WARNING: generated by kopium - manual changes will be overwritten
// kopium command: kopium -f /home/mmoreiradj/git/crd-rs/crds/cnpg/postgresql.cnpg.io_imagecatalogs.yaml --schema=derived -d --hide-prelude
// kopium version: 0.22.5

/// Specification of the desired behavior of the ImageCatalog.
/// More info: <https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status>
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, JsonSchema)]
#[kube(
    group = "postgresql.cnpg.io",
    version = "v1",
    kind = "ImageCatalog",
    plural = "imagecatalogs"
)]
#[kube(namespaced)]
pub struct ImageCatalogSpec {
    /// List of CatalogImages available in the catalog
    pub images: Vec<ImageCatalogImages>,
}

/// CatalogImage defines the image and major version
#[derive(Serialize, Deserialize, Clone, Debug, JsonSchema)]
pub struct ImageCatalogImages {
    /// The image reference
    pub image: String,
    /// The PostgreSQL major version of the image. Must be unique within the catalog.
    pub major: i64,
}