
* Add script to install clusterctl * Add controlplane yamls for target node * Add script to perform cluster move * Add script to zuul jobs Closes: #288 Change-Id: Ia6891df9c9b1da333396e76f11332deeb17ab807 Signed-off-by: Sreejith Punnapuzha <sreejith.punnapuzha@outlook.com>
228 lines
9.8 KiB
YAML
228 lines
9.8 KiB
YAML
|
|
---
|
|
apiVersion: apiextensions.k8s.io/v1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
labels:
|
|
clusterctl.cluster.x-k8s.io: ""
|
|
annotations:
|
|
controller-gen.kubebuilder.io/version: v0.2.8
|
|
creationTimestamp: null
|
|
name: metal3clusters.infrastructure.cluster.x-k8s.io
|
|
spec:
|
|
group: infrastructure.cluster.x-k8s.io
|
|
names:
|
|
categories:
|
|
- cluster-api
|
|
kind: Metal3Cluster
|
|
listKind: Metal3ClusterList
|
|
plural: metal3clusters
|
|
shortNames:
|
|
- m3c
|
|
- m3cluster
|
|
singular: metal3cluster
|
|
scope: Namespaced
|
|
versions:
|
|
- additionalPrinterColumns:
|
|
- description: metal3Cluster is Ready
|
|
jsonPath: .status.ready
|
|
name: Ready
|
|
type: string
|
|
- description: Most recent error
|
|
jsonPath: .status.errorReason
|
|
name: Error
|
|
type: string
|
|
- description: API endpoints
|
|
jsonPath: .status.apiEndpoints
|
|
name: APIEndpoints
|
|
type: string
|
|
name: v1alpha2
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: Metal3Cluster is the Schema for the metal3clusters 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: Metal3ClusterSpec defines the desired state of Metal3Cluster.
|
|
properties:
|
|
apiEndpoint:
|
|
type: string
|
|
noCloudProvider:
|
|
type: boolean
|
|
required:
|
|
- apiEndpoint
|
|
type: object
|
|
status:
|
|
description: Metal3ClusterStatus defines the observed state of Metal3Cluster.
|
|
properties:
|
|
apiEndpoints:
|
|
description: APIEndpoints represents the endpoints to communicate
|
|
with the control plane.
|
|
items:
|
|
description: APIEndpoint represents a reachable Kubernetes API endpoint.
|
|
properties:
|
|
host:
|
|
description: Host is the hostname on which the API server is
|
|
serving.
|
|
type: string
|
|
port:
|
|
description: Port is the port on which the API server is serving.
|
|
type: integer
|
|
required:
|
|
- host
|
|
- port
|
|
type: object
|
|
type: array
|
|
errorMessage:
|
|
description: "ErrorMessage will be set in the event that there is
|
|
a terminal problem reconciling the metal3machine and will contain
|
|
a more verbose string suitable for logging and human consumption.
|
|
\n This field should not be set for transitive errors that a controller
|
|
faces that are expected to be fixed automatically over time (like
|
|
service outages), but instead indicate that something is fundamentally
|
|
wrong with the metal3machine's spec or the configuration of the
|
|
controller, and that manual intervention is required. Examples of
|
|
terminal errors would be invalid combinations of settings in the
|
|
spec, values that are unsupported by the controller, or the responsible
|
|
controller itself being critically misconfigured. \n Any transient
|
|
errors that occur during the reconciliation of Machines can be added
|
|
as events to the metal3machine object and/or logged in the controller's
|
|
output."
|
|
type: string
|
|
errorReason:
|
|
description: "ErrorReason will be set in the event that there is a
|
|
terminal problem reconciling the metal3machine and will contain
|
|
a succinct value suitable for machine interpretation. \n This field
|
|
should not be set for transitive errors that a controller faces
|
|
that are expected to be fixed automatically over time (like service
|
|
outages), but instead indicate that something is fundamentally wrong
|
|
with the metal3machine's spec or the configuration of the controller,
|
|
and that manual intervention is required. Examples of terminal errors
|
|
would be invalid combinations of settings in the spec, values that
|
|
are unsupported by the controller, or the responsible controller
|
|
itself being critically misconfigured. \n Any transient errors that
|
|
occur during the reconciliation of Machines can be added as events
|
|
to the metal3machine object and/or logged in the controller's output."
|
|
type: string
|
|
lastUpdated:
|
|
description: LastUpdated identifies when this status was last observed.
|
|
format: date-time
|
|
type: string
|
|
ready:
|
|
description: Ready denotes that the Metal3 cluster (infrastructure)
|
|
is ready. In Baremetal case, it does not mean anything for now as
|
|
no infrastructure steps need to be performed. Required by Cluster
|
|
API. Set to True by the metal3Cluster controller after creation.
|
|
type: boolean
|
|
required:
|
|
- ready
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: false
|
|
subresources:
|
|
status: {}
|
|
- additionalPrinterColumns:
|
|
- description: metal3Cluster is Ready
|
|
jsonPath: .status.ready
|
|
name: Ready
|
|
type: string
|
|
- description: Most recent error
|
|
jsonPath: .status.failureReason
|
|
name: Error
|
|
type: string
|
|
- description: Cluster to which this BMCluster belongs
|
|
jsonPath: .metadata.labels.cluster\.x-k8s\.io/cluster-name
|
|
name: Cluster
|
|
type: string
|
|
- description: Control plane endpoint
|
|
jsonPath: .spec.controlPlaneEndpoint
|
|
name: Endpoint
|
|
type: string
|
|
name: v1alpha3
|
|
schema:
|
|
openAPIV3Schema:
|
|
description: Metal3Cluster is the Schema for the metal3clusters 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: Metal3ClusterSpec defines the desired state of Metal3Cluster.
|
|
properties:
|
|
controlPlaneEndpoint:
|
|
description: ControlPlaneEndpoint represents the endpoint used to
|
|
communicate with the control plane.
|
|
properties:
|
|
host:
|
|
description: Host is the hostname on which the API server is serving.
|
|
type: string
|
|
port:
|
|
description: Port is the port on which the API server is serving.
|
|
type: integer
|
|
required:
|
|
- host
|
|
- port
|
|
type: object
|
|
noCloudProvider:
|
|
type: boolean
|
|
required:
|
|
- controlPlaneEndpoint
|
|
type: object
|
|
status:
|
|
description: Metal3ClusterStatus defines the observed state of Metal3Cluster.
|
|
properties:
|
|
failureMessage:
|
|
description: FailureMessage indicates that there is a fatal problem
|
|
reconciling the state, and will be set to a descriptive error message.
|
|
type: string
|
|
failureReason:
|
|
description: FailureReason indicates that there is a fatal problem
|
|
reconciling the state, and will be set to a token value suitable
|
|
for programmatic interpretation.
|
|
type: string
|
|
lastUpdated:
|
|
description: LastUpdated identifies when this status was last observed.
|
|
format: date-time
|
|
type: string
|
|
ready:
|
|
description: Ready denotes that the Metal3 cluster (infrastructure)
|
|
is ready. In Baremetal case, it does not mean anything for now as
|
|
no infrastructure steps need to be performed. Required by Cluster
|
|
API. Set to True by the metal3Cluster controller after creation.
|
|
type: boolean
|
|
required:
|
|
- ready
|
|
type: object
|
|
type: object
|
|
served: true
|
|
storage: true
|
|
subresources:
|
|
status: {}
|
|
status:
|
|
acceptedNames:
|
|
kind: ""
|
|
plural: ""
|
|
conditions: []
|
|
storedVersions: []
|