-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add hashicorp/terraform-cloud-operator
Signed-off-by: Sebastian Hoß <[email protected]>
- Loading branch information
Showing
12 changed files
with
10,411 additions
and
0 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
4,464 changes: 4,464 additions & 0 deletions
4,464
crd-catalog/hashicorp/terraform-cloud-operator/app.terraform.io/v1alpha2/agentpools.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
202 changes: 202 additions & 0 deletions
202
crd-catalog/hashicorp/terraform-cloud-operator/app.terraform.io/v1alpha2/modules.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,202 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.11.3 | ||
name: modules.app.terraform.io | ||
spec: | ||
group: app.terraform.io | ||
names: | ||
kind: Module | ||
listKind: ModuleList | ||
plural: modules | ||
singular: module | ||
scope: Namespaced | ||
versions: | ||
- additionalPrinterColumns: | ||
- jsonPath: .status.configurationVersion.status | ||
name: CV Status | ||
type: string | ||
- jsonPath: .status.run.status | ||
name: Run Status | ||
type: string | ||
name: v1alpha2 | ||
schema: | ||
openAPIV3Schema: | ||
description: 'Module is the Schema for the modules API Module implements the API-driven Run Workflow More information: - https://developer.hashicorp.com/terraform/cloud-docs/run/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: ModuleSpec defines the desired state of Module. | ||
properties: | ||
destroyOnDeletion: | ||
default: false | ||
description: 'Specify whether or not to execute a Destroy run when the object is deleted from the Kubernetes. Default: `false`.' | ||
type: boolean | ||
module: | ||
description: Module source and version to execute. | ||
properties: | ||
source: | ||
description: 'Non local Terraform module source. More information: - https://developer.hashicorp.com/terraform/language/modules/sources' | ||
minLength: 1 | ||
type: string | ||
version: | ||
description: Terraform module version. | ||
minLength: 1 | ||
type: string | ||
required: | ||
- source | ||
type: object | ||
name: | ||
default: this | ||
description: 'Name of the module that will be uploaded and executed. Default: `this`.' | ||
minLength: 1 | ||
type: string | ||
organization: | ||
description: 'Organization name where the Workspace will be created. More information: - https://developer.hashicorp.com/terraform/cloud-docs/users-teams-organizations/organizations' | ||
minLength: 1 | ||
type: string | ||
outputs: | ||
description: Module outputs to store in ConfigMap(non-sensitive) or Secret(sensitive). | ||
items: | ||
description: Module outputs to store in ConfigMap(non-sensitive) or Secret(sensitive). | ||
properties: | ||
name: | ||
description: Output name must match with the module output. | ||
minLength: 1 | ||
type: string | ||
sensitive: | ||
default: false | ||
description: 'Specify whether or not the output is sensitive. Default: `false`.' | ||
type: boolean | ||
required: | ||
- name | ||
type: object | ||
minItems: 1 | ||
type: array | ||
restartedAt: | ||
description: 'Allows executing a new Run without changing any Workspace or Module attributes. Example: kubectl patch <KIND> <NAME> --type=merge --patch ''{"spec": {"restartedAt": "''\`date -u -Iseconds\`''"}}''' | ||
minLength: 1 | ||
type: string | ||
token: | ||
description: API Token to be used for API calls. | ||
properties: | ||
secretKeyRef: | ||
description: Selects a key of a secret in the workspace's namespace | ||
properties: | ||
key: | ||
description: The key of the secret to select from. Must be a valid secret key. | ||
type: string | ||
name: | ||
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid?' | ||
type: string | ||
optional: | ||
description: Specify whether the Secret or its key must be defined | ||
type: boolean | ||
required: | ||
- key | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
required: | ||
- secretKeyRef | ||
type: object | ||
variables: | ||
description: Variables to pass to the module, they must exist in the Workspace. | ||
items: | ||
description: Variables to pass to the module. | ||
properties: | ||
name: | ||
description: Variable name must exist in the Workspace. | ||
minLength: 1 | ||
type: string | ||
required: | ||
- name | ||
type: object | ||
minItems: 1 | ||
type: array | ||
workspace: | ||
description: Workspace to execute the module. | ||
properties: | ||
id: | ||
description: 'Module Workspace ID. Must match pattern: ^ws-[a-zA-Z0-9]+$' | ||
pattern: ^ws-[a-zA-Z0-9]+$ | ||
type: string | ||
name: | ||
description: Module Workspace Name. | ||
minLength: 1 | ||
type: string | ||
type: object | ||
required: | ||
- module | ||
- organization | ||
- token | ||
- workspace | ||
type: object | ||
status: | ||
description: ModuleStatus defines the observed state of Module. | ||
properties: | ||
configurationVersion: | ||
description: 'A configuration version is a resource used to reference the uploaded configuration files. More information: - https://developer.hashicorp.com/terraform/cloud-docs/api-docs/configuration-versions - https://developer.hashicorp.com/terraform/cloud-docs/run/api' | ||
properties: | ||
id: | ||
description: Configuration Version ID. | ||
type: string | ||
status: | ||
description: Configuration Version Status. | ||
type: string | ||
required: | ||
- id | ||
- status | ||
type: object | ||
destroyRunID: | ||
description: Workspace Destroy Run status. | ||
type: string | ||
observedGeneration: | ||
description: Real world state generation. | ||
format: int64 | ||
type: integer | ||
output: | ||
description: Module Outputs status. | ||
properties: | ||
runID: | ||
description: Run ID of the latest run that updated the outputs. | ||
type: string | ||
required: | ||
- runID | ||
type: object | ||
run: | ||
description: 'Workspace Runs status. More information: - https://developer.hashicorp.com/terraform/cloud-docs/run/states' | ||
properties: | ||
configurationVersion: | ||
type: string | ||
id: | ||
description: Current(both active and finished) Terraform Cloud run ID. | ||
type: string | ||
outputRunID: | ||
description: Run ID of the latest run that could update the outputs. | ||
type: string | ||
status: | ||
description: Current(both active and finished) Terraform Cloud run status. | ||
type: string | ||
type: object | ||
workspaceID: | ||
description: Workspace ID where the module is running. | ||
type: string | ||
required: | ||
- observedGeneration | ||
- workspaceID | ||
type: object | ||
required: | ||
- spec | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
Oops, something went wrong.