From ddeec7340751be495d681edeaf3618af4ffb8fad Mon Sep 17 00:00:00 2001 From: marcobebway Date: Wed, 6 Dec 2023 00:40:39 +0100 Subject: [PATCH] Update docs --- docs/user/02-configuration.md | 68 +++++++++++++++++------------------ 1 file changed, 33 insertions(+), 35 deletions(-) diff --git a/docs/user/02-configuration.md b/docs/user/02-configuration.md index 32de57c1..9b85e641 100644 --- a/docs/user/02-configuration.md +++ b/docs/user/02-configuration.md @@ -36,43 +36,41 @@ Use the following sample CRs as guidance. Each can be applied immediately when y **Spec:** -| Parameter | Type | Description | -| ---- | ----------- | ---- | -| **annotations** | map\[string\]string | Annotations allows to add annotations to NATS. | -| **cluster** | object | Cluster defines configurations that are specific to NATS clusters. | -| **cluster.​size** | integer | Size of a NATS cluster, i.e. number of NATS nodes. | -| **jetStream** | object | JetStream defines configurations that are specific to NATS JetStream. | -| **jetStream.​fileStorage** | object | FileStorage defines configurations to file storage in NATS JetStream. | -| **jetStream.​fileStorage.​size** | \{integer or string\} | Size defines the file storage size. | -| **jetStream.​fileStorage.​storageClassName** | string | StorageClassName defines the file storage class name. | -| **jetStream.​memStorage** | object | MemStorage defines configurations to memory storage in NATS JetStream. | -| **jetStream.​memStorage.​enabled** | boolean | Enabled allows the enablement of memory storage. | -| **jetStream.​memStorage.​size** | \{integer or string\} | Size defines the mem. | -| **labels** | map\[string\]string | Labels allows to add Labels to NATS. | -| **logging** | object | JetStream defines configurations that are specific to NATS logging in NATS. | -| **logging.​debug** | boolean | Debug allows debug logging. | -| **logging.​trace** | boolean | Trace allows trace logging. | -| **resources** | object | Resources defines resources for NATS. | -| **resources.​claims** | \[\]object | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. - This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. - This field is immutable. It can only be set for containers. | -| **resources.​claims.​name** (required) | string | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | -| **resources.​limits** | map\[string\]\{integer or string\} | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | -| **resources.​requests** | map\[string\]\{integer or string\} | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | +| Parameter | Type | Description | +|------------------------------------------------------------|------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **annotations** | map\[string\]string | Annotations allows to add annotations to NATS. | +| **cluster** | object | Cluster defines configurations that are specific to NATS clusters. | +| **cluster.​size** | integer | Size of a NATS cluster, i.e. number of NATS nodes. | +| **jetStream** | object | JetStream defines configurations that are specific to NATS JetStream. | +| **jetStream.​fileStorage** | object | FileStorage defines configurations to file storage in NATS JetStream. | +| **jetStream.​fileStorage.​size** | \{integer or string\} | Size defines the file storage size. | +| **jetStream.​fileStorage.​storageClassName** | string | StorageClassName defines the file storage class name. | +| **jetStream.​memStorage** | object | MemStorage defines configurations to memory storage in NATS JetStream. | +| **jetStream.​memStorage.​enabled** | boolean | Enabled allows the enablement of memory storage. | +| **jetStream.​memStorage.​size** | \{integer or string\} | Size defines the mem. | +| **labels** | map\[string\]string | Labels allows to add Labels to NATS. | +| **logging** | object | JetStream defines configurations that are specific to NATS logging in NATS. | +| **logging.​debug** | boolean | Debug allows debug logging. | +| **logging.​trace** | boolean | Trace allows trace logging. | +| **resources** | object | Resources defines resources for NATS. | +| **resources.​claims** | \[\]object | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | +| **resources.​claims.​name** (required) | string | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | +| **resources.​limits** | map\[string\]\{integer or string\} | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | +| **resources.​requests** | map\[string\]\{integer or string\} | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | **Status:** -| Parameter | Type | Description | -| ---- | ----------- | ---- | -| **conditions** | \[\]object | Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, - type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: "Available", "Progressing", and "Degraded" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` - // other fields } | -| **conditions.​lastTransitionTime** (required) | string | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. | -| **conditions.​message** (required) | string | message is a human readable message indicating details about the transition. This may be an empty string. | -| **conditions.​observedGeneration** | integer | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | -| **conditions.​reason** (required) | string | reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. | -| **conditions.​status** (required) | string | status of the condition, one of True, False, Unknown. | -| **conditions.​type** (required) | string | type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) | -| **state** (required) | string | | +| Parameter | Type | Description | +|------------------------------------------------------|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| **conditions** | \[\]object | Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: "Available", "Progressing", and "Degraded" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` | +| // other fields } | | | +| **conditions.​lastTransitionTime** (required) | string | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. | +| **conditions.​message** (required) | string | message is a human readable message indicating details about the transition. This may be an empty string. | +| **conditions.​observedGeneration** | integer | observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | +| **conditions.​reason** (required) | string | reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty. | +| **conditions.​status** (required) | string | status of the condition, one of True, False, Unknown. | +| **conditions.​type** (required) | string | type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt) | +| **state** (required) | string | | +| **url** | string | |