bonny v0.3.0 Bonny.CRD
Represents the spec
portion of a Kubernetes CustomResourceDefinition manifest.
The CustomResourceDefinition API resource allows you to define custom resources. Defining a CRD object creates a new custom resource with a name and schema that you specify. The Kubernetes API serves and handles the storage of your custom resource.
Link to this section Summary
Functions
URL Path to list a CRD's resources
Plural name of CRD
URL path to read the specified CustomResourceDefinition
Generates the map equivalent of the Kubernetes CRD YAML manifest
Link to this section Types
names_t()
CRD Spec
Link to this section Functions
list_path(crd)
list_path(Bonny.CRD.t()) :: binary()
list_path(Bonny.CRD.t()) :: binary()
URL Path to list a CRD's resources
Namespaced CRD URL Path /apis/bonny.example.om/v1/namespaces/default/widgets
Cluster Resource URL Path & --all-namespaces
path
/apis/example.com/v1/widgets
plural(crd)
plural(Bonny.CRD.t()) :: binary()
plural(Bonny.CRD.t()) :: binary()
Plural name of CRD
read_path(crd, name)
read_path(Bonny.CRD.t(), String.t()) :: binary()
read_path(Bonny.CRD.t(), String.t()) :: binary()
URL path to read the specified CustomResourceDefinition
Namespaced CRD Resource URL Path /apis/example.com/v1/namespaces/default/widgets/test-widget
Cluster CRD Resource URL Path & --all-namespaces
path
/apis/example.com/v1/widgets/test-widget
to_manifest(crd)
to_manifest(Bonny.CRD.t()) :: map()
to_manifest(Bonny.CRD.t()) :: map()
Generates the map equivalent of the Kubernetes CRD YAML manifest
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: widgets.example.com
spec:
group: example.com
names:
kind: Widget
plural: widgets
scope: Namespaced
version: v1
watch_path(crd, resource_version)
watch_path(Bonny.CRD.t(), String.t() | integer()) :: binary()
watch_path(Bonny.CRD.t(), String.t() | integer()) :: binary()