83 lines
3.0 KiB
YAML
83 lines
3.0 KiB
YAML
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.19.0
|
|
name: harvesterblueprints.rig.appstack.io
|
|
spec:
|
|
group: rig.appstack.io
|
|
names:
|
|
kind: HarvesterBlueprint
|
|
listKind: HarvesterBlueprintList
|
|
plural: harvesterblueprints
|
|
shortNames:
|
|
- hbp
|
|
singular: harvesterblueprint
|
|
scope: Namespaced
|
|
versions:
|
|
- name: v1alpha1
|
|
schema:
|
|
openAPIV3Schema:
|
|
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: HarvesterBlueprintSpec defines the desired state of HarvesterBlueprint
|
|
properties:
|
|
harvesterUrl:
|
|
description: |-
|
|
HarvesterURL is the endpoint of the Harvester cluster (e.g. https://10.x.x.x:6443).
|
|
This replaces the need for auto-discovery.
|
|
type: string
|
|
imageName:
|
|
description: ImageName is the specific image name in Harvester to
|
|
clone (e.g. image-abcde).
|
|
type: string
|
|
networkName:
|
|
description: NetworkName is the VM Network to attach to the nodes.
|
|
type: string
|
|
sshUser:
|
|
description: SshUser is the username to configure on the VM (e.g.
|
|
ubuntu, rancher).
|
|
type: string
|
|
vmNamespace:
|
|
description: VmNamespace is the namespace in Harvester where VMs will
|
|
be created.
|
|
type: string
|
|
required:
|
|
- harvesterUrl
|
|
- imageName
|
|
- networkName
|
|
- sshUser
|
|
- vmNamespace
|
|
type: object
|
|
status:
|
|
description: HarvesterBlueprintStatus defines the observed state of HarvesterBlueprint
|
|
properties:
|
|
ready:
|
|
description: Ready indicates the configuration is valid (optional
|
|
future use)
|
|
type: boolean
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources:
|
|
status: {}
|