| 1 |
apiVersion: apiextensions.k8s.io/v1beta1 |
| 2 |
kind: CustomResourceDefinition |
| 3 |
metadata: |
| 4 |
annotations: |
| 5 |
controller-gen.kubebuilder.io/version: v0.3.0 |
| 6 |
creationTimestamp: null |
| 7 |
name: workspaces.app.terraform.io |
| 8 |
spec: |
| 9 |
group: app.terraform.io |
| 10 |
names: |
| 11 |
kind: Workspace |
| 12 |
listKind: WorkspaceList |
| 13 |
plural: workspaces |
| 14 |
singular: workspace |
| 15 |
scope: Namespaced |
| 16 |
subresources: |
| 17 |
status: {} |
| 18 |
validation: |
| 19 |
openAPIV3Schema: |
| 20 |
description: Workspace is the Schema for the workspaces API |
| 21 |
properties: |
| 22 |
apiVersion: |
| 23 |
description: 'APIVersion defines the versioned schema of this representation |
| 24 |
of an object. Servers should convert recognized schemas to the latest |
| 25 |
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 26 |
type: string |
| 27 |
kind: |
| 28 |
description: 'Kind is a string value representing the REST resource this |
| 29 |
object represents. Servers may infer this from the endpoint the client |
| 30 |
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 31 |
type: string |
| 32 |
metadata: |
| 33 |
type: object |
| 34 |
spec: |
| 35 |
description: WorkspaceSpec defines the desired state of Workspace |
| 36 |
properties: |
| 37 |
agentPoolID: |
| 38 |
description: Specifies the agent pool ID we wish to use. |
| 39 |
type: string |
| 40 |
module: |
| 41 |
description: Module source and version to use |
| 42 |
nullable: true |
| 43 |
properties: |
| 44 |
source: |
| 45 |
description: Any remote module source (version control, registry) |
| 46 |
type: string |
| 47 |
version: |
| 48 |
description: Module version for registry modules |
| 49 |
type: string |
| 50 |
required: |
| 51 |
- source |
| 52 |
type: object |
| 53 |
organization: |
| 54 |
description: Terraform Cloud organization |
| 55 |
type: string |
| 56 |
outputs: |
| 57 |
description: Outputs denote outputs wanted |
| 58 |
items: |
| 59 |
description: OutputSpec specifies which values need to be output |
| 60 |
properties: |
| 61 |
key: |
| 62 |
description: Output name |
| 63 |
type: string |
| 64 |
moduleOutputName: |
| 65 |
description: Attribute name in module |
| 66 |
type: string |
| 67 |
type: object |
| 68 |
type: array |
| 69 |
secretsMountPath: |
| 70 |
description: File path within operator pod to load workspace secrets |
| 71 |
type: string |
| 72 |
sshKeyID: |
| 73 |
description: SSH Key ID. This key must already exist in the TF Cloud |
| 74 |
organization. This can either be the user assigned name of the SSH |
| 75 |
Key, or the system assigned ID. |
| 76 |
type: string |
| 77 |
terraformVersion: |
| 78 |
description: Terraform version used for this workspace. The default |
| 79 |
is `latest`. |
| 80 |
type: string |
| 81 |
variables: |
| 82 |
description: Variables as inputs to module |
| 83 |
items: |
| 84 |
description: Variable denotes an input to the module |
| 85 |
properties: |
| 86 |
environmentVariable: |
| 87 |
description: EnvironmentVariable denotes if this variable should |
| 88 |
be created as environment variable |
| 89 |
type: boolean |
| 90 |
hcl: |
| 91 |
description: String input should be an HCL-formatted variable |
| 92 |
type: boolean |
| 93 |
key: |
| 94 |
description: Variable name |
| 95 |
type: string |
| 96 |
sensitive: |
| 97 |
description: Variable is a secret and should be retrieved from |
| 98 |
file |
| 99 |
type: boolean |
| 100 |
value: |
| 101 |
description: Variable value |
| 102 |
type: string |
| 103 |
valueFrom: |
| 104 |
description: Source for the variable's value. Cannot be used if |
| 105 |
value is not empty. |
| 106 |
properties: |
| 107 |
configMapKeyRef: |
| 108 |
description: Selects a key of a ConfigMap. |
| 109 |
properties: |
| 110 |
key: |
| 111 |
description: The key to select. |
| 112 |
type: string |
| 113 |
name: |
| 114 |
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 115 |
TODO: Add other useful fields. apiVersion, kind, uid?' |
| 116 |
type: string |
| 117 |
optional: |
| 118 |
description: Specify whether the ConfigMap or its key |
| 119 |
must be defined |
| 120 |
type: boolean |
| 121 |
required: |
| 122 |
- key |
| 123 |
type: object |
| 124 |
fieldRef: |
| 125 |
description: 'Selects a field of the pod: supports metadata.name, |
| 126 |
metadata.namespace, metadata.labels, metadata.annotations, |
| 127 |
spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, |
| 128 |
status.podIPs.' |
| 129 |
properties: |
| 130 |
apiVersion: |
| 131 |
description: Version of the schema the FieldPath is written |
| 132 |
in terms of, defaults to "v1". |
| 133 |
type: string |
| 134 |
fieldPath: |
| 135 |
description: Path of the field to select in the specified |
| 136 |
API version. |
| 137 |
type: string |
| 138 |
required: |
| 139 |
- fieldPath |
| 140 |
type: object |
| 141 |
resourceFieldRef: |
| 142 |
description: 'Selects a resource of the container: only resources |
| 143 |
limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, |
| 144 |
requests.cpu, requests.memory and requests.ephemeral-storage) |
| 145 |
are currently supported.' |
| 146 |
properties: |
| 147 |
containerName: |
| 148 |
description: 'Container name: required for volumes, optional |
| 149 |
for env vars' |
| 150 |
type: string |
| 151 |
divisor: |
| 152 |
anyOf: |
| 153 |
- type: integer |
| 154 |
- type: string |
| 155 |
description: Specifies the output format of the exposed |
| 156 |
resources, defaults to "1" |
| 157 |
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$ |
| 158 |
x-kubernetes-int-or-string: true |
| 159 |
resource: |
| 160 |
description: 'Required: resource to select' |
| 161 |
type: string |
| 162 |
required: |
| 163 |
- resource |
| 164 |
type: object |
| 165 |
secretKeyRef: |
| 166 |
description: Selects a key of a secret in the pod's namespace |
| 167 |
properties: |
| 168 |
key: |
| 169 |
description: The key of the secret to select from. Must |
| 170 |
be a valid secret key. |
| 171 |
type: string |
| 172 |
name: |
| 173 |
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names |
| 174 |
TODO: Add other useful fields. apiVersion, kind, uid?' |
| 175 |
type: string |
| 176 |
optional: |
| 177 |
description: Specify whether the Secret or its key must |
| 178 |
be defined |
| 179 |
type: boolean |
| 180 |
required: |
| 181 |
- key |
| 182 |
type: object |
| 183 |
type: object |
| 184 |
required: |
| 185 |
- environmentVariable |
| 186 |
- key |
| 187 |
- sensitive |
| 188 |
type: object |
| 189 |
type: array |
| 190 |
vcs: |
| 191 |
description: Details of the VCS repository we want to connect to the |
| 192 |
workspace |
| 193 |
nullable: true |
| 194 |
properties: |
| 195 |
branch: |
| 196 |
description: The repository branch to use |
| 197 |
type: string |
| 198 |
ingress_submodules: |
| 199 |
description: Whether submodules should be fetched when cloning the |
| 200 |
VCS repository (Defaults to false) |
| 201 |
type: boolean |
| 202 |
repo_identifier: |
| 203 |
description: A reference to your VCS repository in the format org/repo |
| 204 |
type: string |
| 205 |
token_id: |
| 206 |
description: Token ID of the VCS Connection (OAuth Connection Token) |
| 207 |
to use https://www.terraform.io/docs/cloud/vcs |
| 208 |
type: string |
| 209 |
required: |
| 210 |
- repo_identifier |
| 211 |
- token_id |
| 212 |
type: object |
| 213 |
required: |
| 214 |
- organization |
| 215 |
- secretsMountPath |
| 216 |
type: object |
| 217 |
status: |
| 218 |
description: WorkspaceStatus defines the observed state of Workspace |
| 219 |
properties: |
| 220 |
configVersionID: |
| 221 |
description: Configuration Version ID |
| 222 |
type: string |
| 223 |
outputs: |
| 224 |
description: Outputs from state file |
| 225 |
items: |
| 226 |
description: OutputStatus outputs the values of Terraform output |
| 227 |
properties: |
| 228 |
key: |
| 229 |
description: Attribute name in module |
| 230 |
type: string |
| 231 |
value: |
| 232 |
description: Value |
| 233 |
type: string |
| 234 |
type: object |
| 235 |
type: array |
| 236 |
runID: |
| 237 |
description: Run ID |
| 238 |
type: string |
| 239 |
runStatus: |
| 240 |
description: Run Status gets the run status |
| 241 |
type: string |
| 242 |
workspaceID: |
| 243 |
description: Workspace ID |
| 244 |
type: string |
| 245 |
required: |
| 246 |
- configVersionID |
| 247 |
- runID |
| 248 |
- runStatus |
| 249 |
- workspaceID |
| 250 |
type: object |
| 251 |
type: object |
| 252 |
version: v1alpha1 |
| 253 |
versions: |
| 254 |
- name: v1alpha1 |
| 255 |
served: true |
| 256 |
storage: true |
| 257 |
status: |
| 258 |
acceptedNames: |
| 259 |
kind: "" |
| 260 |
plural: "" |
| 261 |
conditions: [] |
| 262 |
storedVersions: [] |