244 lines
11 KiB
YAML
244 lines
11 KiB
YAML
|
|
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.2.8
|
|
creationTimestamp: null
|
|
name: metal3machinetemplates.infrastructure.cluster.x-k8s.io
|
|
spec:
|
|
group: infrastructure.cluster.x-k8s.io
|
|
names:
|
|
categories:
|
|
- cluster-api
|
|
kind: Metal3MachineTemplate
|
|
listKind: Metal3MachineTemplateList
|
|
plural: metal3machinetemplates
|
|
singular: metal3machinetemplate
|
|
scope: Namespaced
|
|
versions:
|
|
- name: v1alpha2
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: Metal3MachineTemplate is the Schema for the metal3machinetemplates
|
|
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: Metal3MachineTemplateSpec defines the desired state of Metal3MachineTemplate
|
|
properties:
|
|
template:
|
|
description: Metal3MachineTemplateResource describes the data needed
|
|
to create a Metal3Machine from a template
|
|
properties:
|
|
spec:
|
|
description: Spec is the specification of the desired behavior
|
|
of the machine.
|
|
properties:
|
|
hostSelector:
|
|
description: HostSelector specifies matching criteria for
|
|
labels on BareMetalHosts. This is used to limit the set
|
|
of BareMetalHost objects considered for claiming for a metal3machine.
|
|
properties:
|
|
matchExpressions:
|
|
description: Label match expressions that must be true
|
|
on a chosen BareMetalHost
|
|
items:
|
|
description: HostSelectorRequirement struct
|
|
properties:
|
|
key:
|
|
type: string
|
|
operator:
|
|
description: Operator represents a key/field's relationship
|
|
to value(s). See labels.Requirement and fields.Requirement
|
|
for more details.
|
|
type: string
|
|
values:
|
|
items:
|
|
type: string
|
|
type: array
|
|
required:
|
|
- key
|
|
- operator
|
|
- values
|
|
type: object
|
|
type: array
|
|
matchLabels:
|
|
additionalProperties:
|
|
type: string
|
|
description: Key/value pairs of labels that must exist
|
|
on a chosen BareMetalHost
|
|
type: object
|
|
type: object
|
|
image:
|
|
description: Image is the image to be provisioned.
|
|
properties:
|
|
checksum:
|
|
description: Checksum is a md5sum value or a URL to retrieve
|
|
one.
|
|
type: string
|
|
url:
|
|
description: URL is a location of an image to deploy.
|
|
type: string
|
|
required:
|
|
- checksum
|
|
- url
|
|
type: object
|
|
providerID:
|
|
description: ProviderID will be the Metal3 machine in ProviderID
|
|
format (baremetal:////<machinename>)
|
|
type: string
|
|
userData:
|
|
description: UserData references the Secret that holds user
|
|
data needed by the bare metal operator. The Namespace is
|
|
optional; it will default to the metal3machine's namespace
|
|
if not specified.
|
|
properties:
|
|
name:
|
|
description: Name is unique within a namespace to reference
|
|
a secret resource.
|
|
type: string
|
|
namespace:
|
|
description: Namespace defines the space within which
|
|
the secret name must be unique.
|
|
type: string
|
|
type: object
|
|
required:
|
|
- image
|
|
type: object
|
|
required:
|
|
- spec
|
|
type: object
|
|
required:
|
|
- template
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: false
|
|
- name: v1alpha3
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: Metal3MachineTemplate is the Schema for the metal3machinetemplates
|
|
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: Metal3MachineTemplateSpec defines the desired state of Metal3MachineTemplate
|
|
properties:
|
|
template:
|
|
description: Metal3MachineTemplateResource describes the data needed
|
|
to create a Metal3Machine from a template
|
|
properties:
|
|
spec:
|
|
description: Spec is the specification of the desired behavior
|
|
of the machine.
|
|
properties:
|
|
hostSelector:
|
|
description: HostSelector specifies matching criteria for
|
|
labels on BareMetalHosts. This is used to limit the set
|
|
of BareMetalHost objects considered for claiming for a metal3machine.
|
|
properties:
|
|
matchExpressions:
|
|
description: Label match expressions that must be true
|
|
on a chosen BareMetalHost
|
|
items:
|
|
properties:
|
|
key:
|
|
type: string
|
|
operator:
|
|
description: Operator represents a key/field's relationship
|
|
to value(s). See labels.Requirement and fields.Requirement
|
|
for more details.
|
|
type: string
|
|
values:
|
|
items:
|
|
type: string
|
|
type: array
|
|
required:
|
|
- key
|
|
- operator
|
|
- values
|
|
type: object
|
|
type: array
|
|
matchLabels:
|
|
additionalProperties:
|
|
type: string
|
|
description: Key/value pairs of labels that must exist
|
|
on a chosen BareMetalHost
|
|
type: object
|
|
type: object
|
|
image:
|
|
description: Image is the image to be provisioned.
|
|
properties:
|
|
checksum:
|
|
description: Checksum is a md5sum value or a URL to retrieve
|
|
one.
|
|
type: string
|
|
url:
|
|
description: URL is a location of an image to deploy.
|
|
type: string
|
|
required:
|
|
- checksum
|
|
- url
|
|
type: object
|
|
providerID:
|
|
description: ProviderID will be the Metal3 machine in ProviderID
|
|
format (baremetal:////<machinename>)
|
|
type: string
|
|
userData:
|
|
description: UserData references the Secret that holds user
|
|
data needed by the bare metal operator. The Namespace is
|
|
optional; it will default to the metal3machine's namespace
|
|
if not specified.
|
|
properties:
|
|
name:
|
|
description: Name is unique within a namespace to reference
|
|
a secret resource.
|
|
type: string
|
|
namespace:
|
|
description: Namespace defines the space within which
|
|
the secret name must be unique.
|
|
type: string
|
|
type: object
|
|
required:
|
|
- image
|
|
type: object
|
|
required:
|
|
- spec
|
|
type: object
|
|
required:
|
|
- template
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
status:
|
|
acceptedNames:
|
|
kind: ""
|
|
plural: ""
|
|
conditions: []
|
|
storedVersions: []
|