forked from metal3-io/cluster-api-provider-baremetal
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #184 from slintes/metal3_remediation
Metal3 remediation backport
- Loading branch information
Showing
447 changed files
with
69,635 additions
and
779 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
178 changes: 178 additions & 0 deletions
178
config/crd/infrastructure.cluster.x-k8s.io_metal3remediations.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,178 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.9.1 | ||
creationTimestamp: null | ||
name: metal3remediations.infrastructure.cluster.x-k8s.io | ||
spec: | ||
group: infrastructure.cluster.x-k8s.io | ||
names: | ||
categories: | ||
- cluster-api | ||
kind: Metal3Remediation | ||
listKind: Metal3RemediationList | ||
plural: metal3remediations | ||
shortNames: | ||
- m3r | ||
- m3remediation | ||
singular: metal3remediation | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- description: How many times remediation controller should attempt to remediate | ||
the host | ||
jsonPath: .spec.strategy.retryLimit | ||
name: Retry limit | ||
type: string | ||
- description: How many times remediation controller has tried to remediate the | ||
node | ||
jsonPath: .status.retryCount | ||
name: Retry count | ||
type: string | ||
- description: Timestamp of the last remediation attempt | ||
jsonPath: .status.lastRemediated | ||
name: Last Remediated | ||
type: string | ||
- description: Type of the remediation strategy | ||
jsonPath: .spec.strategy.type | ||
name: Strategy | ||
type: string | ||
- description: Phase of the remediation | ||
jsonPath: .status.phase | ||
name: Phase | ||
type: string | ||
name: v1alpha5 | ||
schema: | ||
openAPIV3Schema: | ||
description: Metal3Remediation is the Schema for the metal3remediations 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: Metal3RemediationSpec defines the desired state of Metal3Remediation. | ||
properties: | ||
strategy: | ||
description: Strategy field defines remediation strategy. | ||
properties: | ||
retryLimit: | ||
description: Sets maximum number of remediation retries. | ||
type: integer | ||
timeout: | ||
description: Sets the timeout between remediation retries. | ||
type: string | ||
type: | ||
description: Type of remediation. | ||
type: string | ||
type: object | ||
type: object | ||
status: | ||
description: Metal3RemediationStatus defines the observed state of Metal3Remediation. | ||
properties: | ||
lastRemediated: | ||
description: LastRemediated identifies when the host was last remediated | ||
format: date-time | ||
type: string | ||
phase: | ||
description: Phase represents the current phase of machine remediation. | ||
E.g. Pending, Running, Done etc. | ||
type: string | ||
retryCount: | ||
description: RetryCount can be used as a counter during the remediation. | ||
Field can hold number of reboots etc. | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: false | ||
subresources: | ||
status: {} | ||
- additionalPrinterColumns: | ||
- description: How many times remediation controller should attempt to remediate | ||
the host | ||
jsonPath: .spec.strategy.retryLimit | ||
name: Retry limit | ||
type: string | ||
- description: How many times remediation controller has tried to remediate the | ||
node | ||
jsonPath: .status.retryCount | ||
name: Retry count | ||
type: string | ||
- description: Timestamp of the last remediation attempt | ||
jsonPath: .status.lastRemediated | ||
name: Last Remediated | ||
type: string | ||
- description: Type of the remediation strategy | ||
jsonPath: .spec.strategy.type | ||
name: Strategy | ||
type: string | ||
- description: Phase of the remediation | ||
jsonPath: .status.phase | ||
name: Phase | ||
type: string | ||
name: v1beta1 | ||
schema: | ||
openAPIV3Schema: | ||
description: Metal3Remediation is the Schema for the metal3remediations 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: Metal3RemediationSpec defines the desired state of Metal3Remediation. | ||
properties: | ||
strategy: | ||
description: Strategy field defines remediation strategy. | ||
properties: | ||
retryLimit: | ||
description: Sets maximum number of remediation retries. | ||
type: integer | ||
timeout: | ||
description: Sets the timeout between remediation retries. | ||
type: string | ||
type: | ||
description: Type of remediation. | ||
type: string | ||
type: object | ||
type: object | ||
status: | ||
description: Metal3RemediationStatus defines the observed state of Metal3Remediation. | ||
properties: | ||
lastRemediated: | ||
description: LastRemediated identifies when the host was last remediated | ||
format: date-time | ||
type: string | ||
phase: | ||
description: Phase represents the current phase of machine remediation. | ||
E.g. Pending, Running, Done etc. | ||
type: string | ||
retryCount: | ||
description: RetryCount can be used as a counter during the remediation. | ||
Field can hold number of reboots etc. | ||
type: integer | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
Oops, something went wrong.