-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: pjuarezd <pjuarezd@users.noreply.github.com>
- Loading branch information
Showing
35 changed files
with
2,383 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
// Generated documentation. Please do not edit. | ||
:anchor_prefix: k8s-api | ||
|
||
[id="{p}-api-reference"] | ||
== API Reference | ||
|
||
:minio-image: https://hub.docker.com/r/minio/minio/tags[minio/minio:RELEASE.2023-11-15T20-43-25Z] | ||
:kes-image: https://hub.docker.com/r/minio/kes/tags[minio/kes:2023-11-10T10-44-28Z] | ||
|
||
|
||
[id="{anchor_prefix}-job-min-io-v1alpha1"] | ||
=== job.min.io/v1alpha1 | ||
|
||
Package v1alpha1 - The following parameters are specific to the `job.min.io/v1alpha1` MinIOJob CRD API. | ||
|
||
MinIOJob is an automated InfrastructureAsCode integrated with Minio Operator STS to configure MinIO Tenants. | ||
|
||
|
||
|
||
[id="{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-commandspec"] | ||
==== CommandSpec | ||
|
||
CommandSpec (`spec`) defines the configuration of a MinioClient Command. | ||
|
||
.Appears In: | ||
**** | ||
- xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojobspec[$$MinIOJobSpec$$] | ||
**** | ||
|
||
[cols="25a,75a", options="header"] | ||
|=== | ||
| Field | Description | ||
|
||
|*`op`* __string__ | ||
|*Required* + | ||
Operation is the MinioClient Action | ||
|
||
|*`name`* __string__ | ||
|Name is the Command Name, optional, required if want to reference it with `DependsOn` | ||
|
||
|*`args`* __object (keys:string, values:string)__ | ||
|Args Arguments to pass to the action | ||
|
||
|*`dependsOn`* __string array__ | ||
|DependsOn List of named `command` in this MinioJob that have to be scheduled and executed before this command runs | ||
|
||
|=== | ||
|
||
|
||
[id="{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-commandstatus"] | ||
==== CommandStatus | ||
|
||
CommandStatus Status of MinioJob command execution | ||
|
||
.Appears In: | ||
**** | ||
- xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojobstatus[$$MinIOJobStatus$$] | ||
**** | ||
|
||
[cols="25a,75a", options="header"] | ||
|=== | ||
| Field | Description | ||
|
||
|*`name`* __string__ | ||
| | ||
|
||
|*`result`* __string__ | ||
|*Required* + | ||
|
||
|*`message`* __string__ | ||
| | ||
|
||
|=== | ||
|
||
|
||
[id="{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojob"] | ||
==== MinIOJob | ||
|
||
MinIOJob is a top-level type. A client is created for it | ||
|
||
.Appears In: | ||
**** | ||
- xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojoblist[$$MinIOJobList$$] | ||
**** | ||
|
||
[cols="25a,75a", options="header"] | ||
|=== | ||
| Field | Description | ||
|
||
|*`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.23/#objectmeta-v1-meta[$$ObjectMeta$$]__ | ||
|Refer to Kubernetes API documentation for fields of `metadata`. | ||
|
||
|
||
|*`spec`* __xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojobspec[$$MinIOJobSpec$$]__ | ||
|*Required* + | ||
The root field for the MinIOJob object. | ||
|
||
|=== | ||
|
||
|
||
|
||
|
||
[id="{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojobspec"] | ||
==== MinIOJobSpec | ||
|
||
MinIOJobSpec (`spec`) defines the configuration of a MinIOJob object. + | ||
|
||
.Appears In: | ||
**** | ||
- xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojob[$$MinIOJob$$] | ||
**** | ||
|
||
[cols="25a,75a", options="header"] | ||
|=== | ||
| Field | Description | ||
|
||
|*`serviceAccountName`* __string__ | ||
|*Required* + | ||
Service Account name for the jobs to run | ||
|
||
|*`tenant`* __xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-tenantref[$$TenantRef$$]__ | ||
|*Required* + | ||
TenantRef Reference for minio Tenant to eun the jobs against | ||
|
||
|*`execution`* __Execution__ | ||
|Execution order of the jobs, either `parallel` or `sequential`. Defaults to `parallel` if not provided. | ||
|
||
|*`failureStrategy`* __FailureStrategy__ | ||
|FailureStrategy is the forward plan in case of the failure of one or more MinioJob pods Either `stopOnFailure` or `continueOnFailure`, defaults to `continueOnFailure`. | ||
|
||
|*`commands`* __xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-commandspec[$$CommandSpec$$] array__ | ||
|*Required* + | ||
Commands List of MinioClient commands | ||
|
||
|=== | ||
|
||
|
||
|
||
|
||
[id="{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-tenantref"] | ||
==== TenantRef | ||
|
||
TenantRef Is the reference to the target tenant of the jobs | ||
|
||
.Appears In: | ||
**** | ||
- xref:{anchor_prefix}-github-com-minio-operator-pkg-apis-job-min-io-v1alpha1-miniojobspec[$$MinIOJobSpec$$] | ||
**** | ||
|
||
[cols="25a,75a", options="header"] | ||
|=== | ||
| Field | Description | ||
|
||
|*`name`* __string__ | ||
|*Required* + | ||
|
||
|*`namespace`* __string__ | ||
|*Required* + | ||
|
||
|=== | ||
|
||
|
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,112 @@ | ||
--- | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.11.1 | ||
creationTimestamp: null | ||
name: miniojobs.job.min.io | ||
spec: | ||
group: job.min.io | ||
names: | ||
kind: MinIOJob | ||
listKind: MinIOJobList | ||
plural: miniojobs | ||
shortNames: | ||
- miniojob | ||
singular: miniojob | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .spec.tenant.name | ||
name: Tenant | ||
type: string | ||
- jsonPath: .spec.status.phase | ||
name: Phase | ||
type: string | ||
name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
properties: | ||
apiVersion: | ||
type: string | ||
kind: | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
properties: | ||
commands: | ||
items: | ||
properties: | ||
args: | ||
additionalProperties: | ||
type: string | ||
type: object | ||
dependsOn: | ||
items: | ||
type: string | ||
type: array | ||
name: | ||
type: string | ||
op: | ||
type: string | ||
required: | ||
- op | ||
type: object | ||
type: array | ||
execution: | ||
default: parallel | ||
enum: | ||
- parallel | ||
- sequential | ||
type: string | ||
failureStrategy: | ||
default: continueOnFailure | ||
enum: | ||
- continueOnFailure | ||
- stopOnFailure | ||
type: string | ||
serviceAccountName: | ||
type: string | ||
tenant: | ||
properties: | ||
name: | ||
type: string | ||
namespace: | ||
type: string | ||
required: | ||
- name | ||
- namespace | ||
type: object | ||
required: | ||
- commands | ||
- serviceAccountName | ||
- tenant | ||
type: object | ||
status: | ||
properties: | ||
commands: | ||
items: | ||
properties: | ||
message: | ||
type: string | ||
name: | ||
type: string | ||
result: | ||
type: string | ||
required: | ||
- result | ||
type: object | ||
type: array | ||
phase: | ||
type: string | ||
required: | ||
- commands | ||
- phase | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (C) 2022, MinIO, Inc. | ||
// | ||
// This code is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License, version 3, | ||
// as published by the Free Software Foundation. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License, version 3, | ||
// along with this program. If not, see <http://www.gnu.org/licenses/> | ||
|
||
package operator | ||
|
||
// MinIOJob group name. | ||
const ( | ||
GroupName = "job.min.io" | ||
) |
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,23 @@ | ||
// Copyright (C) 2023, MinIO, Inc. | ||
// | ||
// This code is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU Affero General Public License, version 3, | ||
// as published by the Free Software Foundation. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU Affero General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU Affero General Public License, version 3, | ||
// along with this program. If not, see <http://www.gnu.org/licenses/> | ||
|
||
// +k8s:deepcopy-gen=package,register | ||
// go:generate controller-gen crd:trivialVersions=true paths=. output:dir=. | ||
|
||
// Package v1alpha1 - The following parameters are specific to the `job.min.io/v1alpha1` MinIOJob CRD API. | ||
// | ||
// MinIOJob is an automated InfrastructureAsCode integrated with Minio Operator STS to configure MinIO Tenants. | ||
// +groupName=job.min.io | ||
// +versionName=v1alpha1 | ||
package v1alpha1 |
Oops, something went wrong.