63 lines
2.4 KiB
YAML
63 lines
2.4 KiB
YAML
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.13.0
|
|
name: zcustomhosts.zelda.io
|
|
spec:
|
|
group: zelda.io
|
|
names:
|
|
kind: ZCustomHost
|
|
listKind: ZCustomHostList
|
|
plural: zcustomhosts
|
|
singular: zcustomhost
|
|
scope: Namespaced
|
|
versions:
|
|
- name: v1alpha1
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: ZCustomHost is the Schema for the zcustomhosts API
|
|
properties:
|
|
apiVersion:
|
|
description: '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'
|
|
type: string
|
|
kind:
|
|
description: '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'
|
|
type: string
|
|
metadata:
|
|
type: object
|
|
spec:
|
|
description: ZCustomHostSpec defines the desired state of ZCustomHost
|
|
properties:
|
|
hostAlias:
|
|
description: Foo is an example field of ZCustomHost. Edit zcustomhost_types.go
|
|
to remove/update Foo string `json:"foo,omitempty"`
|
|
items:
|
|
description: HostAlias holds the mapping between IP and hostnames
|
|
that will be injected as an entry in the pod's hosts file.
|
|
properties:
|
|
hostnames:
|
|
description: Hostnames for the above IP address.
|
|
items:
|
|
type: string
|
|
type: array
|
|
ip:
|
|
description: IP address of the host file entry.
|
|
type: string
|
|
type: object
|
|
type: array
|
|
type: object
|
|
status:
|
|
description: ZCustomHostStatus defines the observed state of ZCustomHost
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources:
|
|
status: {}
|