Skip to content

Commit b65e3d6

Browse files
committed
🤖 fix: make generated CRD API docs YAML-oriented
1 parent be6654a commit b65e3d6

6 files changed

Lines changed: 142 additions & 88 deletions

File tree

‎docs/reference/api/codercontrolplane.md‎

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,33 @@
1313

1414
| Field | Type | Description |
1515
| --- | --- | --- |
16-
| `spec.image` | `string` | Image is the container image used for the Coder control plane pod. |
17-
| `spec.replicas` | `int32` | Replicas is the desired number of control plane pods. |
18-
| `spec.service` | `github.com/coder/coder-k8s/api/v1alpha1.ServiceSpec` | Service controls the service created in front of the control plane. |
19-
| `spec.extraArgs` | `[]string` | ExtraArgs are appended to the default Coder server arguments. |
20-
| `spec.extraEnv` | `[]k8s.io/api/core/v1.EnvVar` | ExtraEnv are injected into the Coder control plane container. |
21-
| `spec.imagePullSecrets` | `[]k8s.io/api/core/v1.LocalObjectReference` | ImagePullSecrets are used by the pod to pull private images. |
22-
| `spec.operatorAccess` | `github.com/coder/coder-k8s/api/v1alpha1.OperatorAccessSpec` | OperatorAccess configures bootstrap API access to the coderd instance. |
16+
| `image` | `string` | Image is the container image used for the Coder control plane pod. |
17+
| `replicas` | `int32` | Replicas is the desired number of control plane pods. |
18+
| `service` | `ServiceSpec` | Service controls the service created in front of the control plane. |
19+
|   `type` | `corev1.ServiceType` | Type controls the Kubernetes service type. |
20+
|   `port` | `int32` | Port controls the exposed service port. |
21+
|   `annotations` | `map[string]string` | Annotations are applied to the reconciled service object. |
22+
| `extraArgs` | `[]string` | ExtraArgs are appended to the default Coder server arguments. |
23+
| `extraEnv` | `[]corev1.EnvVar` | ExtraEnv are injected into the Coder control plane container. |
24+
| `imagePullSecrets` | `[]corev1.LocalObjectReference` | ImagePullSecrets are used by the pod to pull private images. |
25+
|   `name` | `string` | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: [https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names) |
26+
| `operatorAccess` | `OperatorAccessSpec` | OperatorAccess configures bootstrap API access to the coderd instance. |
27+
|   `disabled` | `bool` | Disabled turns off creation and management of the `coder-k8s-operator` user and API token. |
28+
|   `generatedTokenSecretName` | `string` | GeneratedTokenSecretName stores the generated operator API token. |
2329

2430
## Status
2531

2632
| Field | Type | Description |
2733
| --- | --- | --- |
28-
| `status.observedGeneration` | `int64` | ObservedGeneration tracks the spec generation this status reflects. |
29-
| `status.readyReplicas` | `int32` | ReadyReplicas is the number of ready pods observed in the deployment. |
30-
| `status.url` | `string` | URL is the in-cluster URL for the control plane service. |
31-
| `status.operatorTokenSecretRef` | `github.com/coder/coder-k8s/api/v1alpha1.SecretKeySelector` | OperatorTokenSecretRef points to the Secret key containing the `coder-k8s-operator` API token. |
32-
| `status.operatorAccessReady` | `bool` | OperatorAccessReady reports whether operator API access bootstrap succeeded. |
33-
| `status.phase` | `string` | Phase is a high-level readiness indicator. |
34-
| `status.conditions` | `[]metav1.Condition` | Conditions are Kubernetes-standard conditions for this resource. |
34+
| `observedGeneration` | `int64` | ObservedGeneration tracks the spec generation this status reflects. |
35+
| `readyReplicas` | `int32` | ReadyReplicas is the number of ready pods observed in the deployment. |
36+
| `url` | `string` | URL is the in-cluster URL for the control plane service. |
37+
| `operatorTokenSecretRef` | `SecretKeySelector` | OperatorTokenSecretRef points to the Secret key containing the `coder-k8s-operator` API token. |
38+
|   `name` | `string` | Name is the Kubernetes Secret name. |
39+
|   `key` | `string` | Key is the key inside the Secret data map. |
40+
| `operatorAccessReady` | `bool` | OperatorAccessReady reports whether operator API access bootstrap succeeded. |
41+
| `phase` | `string` | Phase is a high-level readiness indicator. |
42+
| `conditions` | `[]metav1.Condition` | Conditions are Kubernetes-standard conditions for this resource. |
3543

3644
## Source
3745

‎docs/reference/api/coderprovisioner.md‎

Lines changed: 34 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,45 @@
1313

1414
| Field | Type | Description |
1515
| --- | --- | --- |
16-
| `spec.controlPlaneRef` | `k8s.io/api/core/v1.LocalObjectReference` | ControlPlaneRef identifies which CoderControlPlane instance to join. |
17-
| `spec.organizationName` | `string` | OrganizationName is the Coder organization. Defaults to "default". |
18-
| `spec.bootstrap` | `github.com/coder/coder-k8s/api/v1alpha1.CoderProvisionerBootstrapSpec` | Bootstrap configures credentials for provisioner key management. |
19-
| `spec.key` | `github.com/coder/coder-k8s/api/v1alpha1.CoderProvisionerKeySpec` | Key configures provisioner key naming and secret storage. |
20-
| `spec.replicas` | `int32` | Replicas is the desired number of provisioner pods. |
21-
| `spec.tags` | `map[string]string` | Tags are attached to the provisioner key for job routing. |
22-
| `spec.image` | `string` | Image is the container image. Defaults to the control plane image. |
23-
| `spec.extraArgs` | `[]string` | ExtraArgs are appended after "provisionerd start". |
24-
| `spec.extraEnv` | `[]k8s.io/api/core/v1.EnvVar` | ExtraEnv are injected into the provisioner container. |
25-
| `spec.resources` | `k8s.io/api/core/v1.ResourceRequirements` | Resources for the provisioner container. |
26-
| `spec.imagePullSecrets` | `[]k8s.io/api/core/v1.LocalObjectReference` | ImagePullSecrets are used by the pod to pull private images. |
27-
| `spec.terminationGracePeriodSeconds` | `int64` | TerminationGracePeriodSeconds for the provisioner pods. |
16+
| `controlPlaneRef` | `corev1.LocalObjectReference` | ControlPlaneRef identifies which CoderControlPlane instance to join. |
17+
|   `name` | `string` | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: [https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names) |
18+
| `organizationName` | `string` | OrganizationName is the Coder organization. Defaults to "default". |
19+
| `bootstrap` | `CoderProvisionerBootstrapSpec` | Bootstrap configures credentials for provisioner key management. |
20+
|   `credentialsSecretRef` | `SecretKeySelector` | CredentialsSecretRef points to a Secret containing a Coder session token with permission to manage provisioner keys. |
21+
|     `name` | `string` | Name is the Kubernetes Secret name. |
22+
|     `key` | `string` | Key is the key inside the Secret data map. |
23+
| `key` | `CoderProvisionerKeySpec` | Key configures provisioner key naming and secret storage. |
24+
|   `name` | `string` | Name is the provisioner key name in coderd. Defaults to the CR name. |
25+
|   `secretName` | `string` | SecretName is the Kubernetes Secret to store the key. Defaults to "\{crName\}-provisioner-key". |
26+
|   `secretKey` | `string` | SecretKey is the data key in the Secret. Defaults to "key". |
27+
| `replicas` | `int32` | Replicas is the desired number of provisioner pods. |
28+
| `tags` | `map[string]string` | Tags are attached to the provisioner key for job routing. |
29+
| `image` | `string` | Image is the container image. Defaults to the control plane image. |
30+
| `extraArgs` | `[]string` | ExtraArgs are appended after "provisionerd start". |
31+
| `extraEnv` | `[]corev1.EnvVar` | ExtraEnv are injected into the provisioner container. |
32+
| `resources` | `corev1.ResourceRequirements` | Resources for the provisioner container. |
33+
| `imagePullSecrets` | `[]corev1.LocalObjectReference` | ImagePullSecrets are used by the pod to pull private images. |
34+
|   `name` | `string` | Name of the referent. This field is effectively required, but due to backwards compatibility is allowed to be empty. Instances of this type with an empty value here are almost certainly wrong. More info: [https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names](https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names) |
35+
| `terminationGracePeriodSeconds` | `int64` | TerminationGracePeriodSeconds for the provisioner pods. |
2836

2937
## Status
3038

3139
| Field | Type | Description |
3240
| --- | --- | --- |
33-
| `status.observedGeneration` | `int64` | ObservedGeneration tracks the spec generation this status reflects. |
34-
| `status.readyReplicas` | `int32` | ReadyReplicas is the number of ready pods observed in the deployment. |
35-
| `status.phase` | `string` | Phase is a high-level readiness indicator. |
36-
| `status.conditions` | `[]metav1.Condition` | Conditions are Kubernetes-standard conditions for this resource. |
37-
| `status.organizationID` | `string` | OrganizationID is the organization ID last applied to the provisioner key. |
38-
| `status.organizationName` | `string` | OrganizationName is the organization name last applied to the provisioner key. |
39-
| `status.provisionerKeyID` | `string` | ProvisionerKeyID is the provisioner key ID last applied in coderd. |
40-
| `status.provisionerKeyName` | `string` | ProvisionerKeyName is the provisioner key name last applied in coderd. |
41-
| `status.tagsHash` | `string` | TagsHash is a deterministic hash of spec.tags last applied to the provisioner key. |
42-
| `status.controlPlaneRefName` | `string` | ControlPlaneRefName is the control plane ref name last applied to the provisioner key. |
43-
| `status.controlPlaneURL` | `string` | ControlPlaneURL is the control plane URL last applied to the provisioner key. |
44-
| `status.secretRef` | `github.com/coder/coder-k8s/api/v1alpha1.SecretKeySelector` | SecretRef references the provisioner key secret data currently in use. |
41+
| `observedGeneration` | `int64` | ObservedGeneration tracks the spec generation this status reflects. |
42+
| `readyReplicas` | `int32` | ReadyReplicas is the number of ready pods observed in the deployment. |
43+
| `phase` | `string` | Phase is a high-level readiness indicator. |
44+
| `conditions` | `[]metav1.Condition` | Conditions are Kubernetes-standard conditions for this resource. |
45+
| `organizationID` | `string` | OrganizationID is the organization ID last applied to the provisioner key. |
46+
| `organizationName` | `string` | OrganizationName is the organization name last applied to the provisioner key. |
47+
| `provisionerKeyID` | `string` | ProvisionerKeyID is the provisioner key ID last applied in coderd. |
48+
| `provisionerKeyName` | `string` | ProvisionerKeyName is the provisioner key name last applied in coderd. |
49+
| `tagsHash` | `string` | TagsHash is a deterministic hash of spec.tags last applied to the provisioner key. |
50+
| `controlPlaneRefName` | `string` | ControlPlaneRefName is the control plane ref name last applied to the provisioner key. |
51+
| `controlPlaneURL` | `string` | ControlPlaneURL is the control plane URL last applied to the provisioner key. |
52+
| `secretRef` | `SecretKeySelector` | SecretRef references the provisioner key secret data currently in use. |
53+
|   `name` | `string` | Name is the Kubernetes Secret name. |
54+
|   `key` | `string` | Key is the key inside the Secret data map. |
4555

4656
## Source
4757

‎docs/reference/api/codertemplate.md‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@
1313

1414
| Field | Type | Description |
1515
| --- | --- | --- |
16-
| `spec.organization` | `string` | Organization is the Coder organization name (must match the organization prefix in metadata.name). |
17-
| `spec.versionID` | `string` | VersionID is the Coder template version UUID used on creation (required for CREATE). |
18-
| `spec.displayName` | `string` | |
19-
| `spec.description` | `string` | |
20-
| `spec.icon` | `string` | |
21-
| `spec.running` | `bool` | Running is a legacy flag retained temporarily for in-repo callers that still read template run-state directly. |
16+
| `organization` | `string` | Organization is the Coder organization name (must match the organization prefix in metadata.name). |
17+
| `versionID` | `string` | VersionID is the Coder template version UUID used on creation (required for CREATE). |
18+
| `displayName` | `string` | |
19+
| `description` | `string` | |
20+
| `icon` | `string` | |
21+
| `running` | `bool` | Running is a legacy flag retained temporarily for in-repo callers that still read template run-state directly. |
2222

2323
## Status
2424

2525
| Field | Type | Description |
2626
| --- | --- | --- |
27-
| `status.id` | `string` | |
28-
| `status.organizationName` | `string` | |
29-
| `status.activeVersionID` | `string` | |
30-
| `status.deprecated` | `bool` | |
31-
| `status.updatedAt` | `metav1.Time` | |
32-
| `status.autoShutdown` | `metav1.Time` | AutoShutdown is a legacy timestamp retained temporarily for in-repo callers that still surface template shutdown timestamps. |
27+
| `id` | `string` | |
28+
| `organizationName` | `string` | |
29+
| `activeVersionID` | `string` | |
30+
| `deprecated` | `bool` | |
31+
| `updatedAt` | `metav1.Time` | |
32+
| `autoShutdown` | `metav1.Time` | AutoShutdown is a legacy timestamp retained temporarily for in-repo callers that still surface template shutdown timestamps. |
3333

3434
## Source
3535

‎docs/reference/api/coderworkspace.md‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,25 @@
1313

1414
| Field | Type | Description |
1515
| --- | --- | --- |
16-
| `spec.organization` | `string` | Organization is the Coder organization name. |
17-
| `spec.templateName` | `string` | TemplateName resolves via TemplateByName(organization, templateName). |
18-
| `spec.templateVersionID` | `string` | TemplateVersionID optionally pins to a specific template version. |
19-
| `spec.running` | `bool` | Running drives start/stop via CreateWorkspaceBuild. |
20-
| `spec.ttlMillis` | `int64` | |
21-
| `spec.autostartSchedule` | `string` | |
16+
| `organization` | `string` | Organization is the Coder organization name. |
17+
| `templateName` | `string` | TemplateName resolves via TemplateByName(organization, templateName). |
18+
| `templateVersionID` | `string` | TemplateVersionID optionally pins to a specific template version. |
19+
| `running` | `bool` | Running drives start/stop via CreateWorkspaceBuild. |
20+
| `ttlMillis` | `int64` | |
21+
| `autostartSchedule` | `string` | |
2222

2323
## Status
2424

2525
| Field | Type | Description |
2626
| --- | --- | --- |
27-
| `status.id` | `string` | |
28-
| `status.ownerName` | `string` | |
29-
| `status.organizationName` | `string` | |
30-
| `status.templateName` | `string` | |
31-
| `status.latestBuildID` | `string` | |
32-
| `status.latestBuildStatus` | `string` | |
33-
| `status.autoShutdown` | `metav1.Time` | |
34-
| `status.lastUsedAt` | `metav1.Time` | |
27+
| `id` | `string` | |
28+
| `ownerName` | `string` | |
29+
| `organizationName` | `string` | |
30+
| `templateName` | `string` | |
31+
| `latestBuildID` | `string` | |
32+
| `latestBuildStatus` | `string` | |
33+
| `autoShutdown` | `metav1.Time` | |
34+
| `lastUsedAt` | `metav1.Time` | |
3535

3636
## Source
3737

0 commit comments

Comments
 (0)