You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* deps: bump argo-cd to v2.2.0-rc1 and its dependencies
* add: metadata support for clusters
* add: docs: cluster metadata block
* deps: bump argo-cd and its dependencies to v2.2.5
Co-authored-by: Josef Podany <[email protected]>
Co-authored-by: Blake Pettersson <[email protected]>
Description: "Standard cluster secret's metadata. More info: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#metadata",
187
+
Optional: true,
188
+
MaxItems: 2,
189
+
Elem: &schema.Resource{
190
+
Schema: map[string]*schema.Schema{
191
+
"annotations": {
192
+
Type: schema.TypeMap,
193
+
Description: "An unstructured key value map stored with the cluster secret that may be used to store arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations",
194
+
Optional: true,
195
+
Elem: &schema.Schema{Type: schema.TypeString},
196
+
ValidateFunc: validateMetadataAnnotations,
197
+
},
198
+
"labels": {
199
+
Type: schema.TypeMap,
200
+
Description: "Map of string keys and values that can be used to organize and categorize (scope and select) the cluster secret. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels",
*`shard` - (Optional) Shard contains optional shard number. Calculated on the fly by the application controller if not specified.
121
121
*`namespaces` - (Optional) Holds list of namespaces which are accessible in that cluster. Cluster level resources would be ignored if namespace list is not empty..
122
122
*`config` - (Optional) The configuration specification, nested attributes are documented below.
123
+
*`metadata` - (Optional) Cluster metadata, nested attributes are documented below.
123
124
124
125
The `config` block can have the following attributes:
125
126
@@ -151,6 +152,11 @@ The `config.tls_client_config` block can have the following attributes:
151
152
*`insecure` - (Optional) boolean. For when the server should be accessed without verifying the TLS certificate.
152
153
*`server_name` - (Optional) string. Passed to the server for SNI and is used in the client to check server certificates against. If empty, the hostname used to contact the server is used.
153
154
155
+
The `metadata` block can have the following attributes:
156
+
157
+
*`annotations` - (Optional) An unstructured key value map stored with the config map that may be used to store arbitrary metadata. **By default, the provider ignores any annotations whose key names end with kubernetes.io. This is necessary because such annotations can be mutated by server-side components and consequently cause a perpetual diff in the Terraform plan output. If you explicitly specify any such annotations in the configuration template then Terraform will consider these as normal resource attributes and manage them as expected (while still avoiding the perpetual diff problem)**. For more info see [Kubernetes reference](https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/).
158
+
*`labels` - (Optional) Map of string keys and values that can be used to organize and categorize (scope and select) the config map. May match selectors of replication controllers and services. **By default, the provider ignores any labels whose key names end with kubernetes.io. This is necessary because such labels can be mutated by server-side components and consequently cause a perpetual diff in the Terraform plan output. If you explicitly specify any such labels in the configuration template then Terraform will consider these as normal resource attributes and manage them as expected (while still avoiding the perpetual diff problem).** For more info see [Kubernetes reference](https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/).
159
+
154
160
## Attribute Reference
155
161
156
162
*`info.0.server_version` - The version of the remote Kubernetes cluster.
0 commit comments