Skip to content

Commit

Permalink
docs: fix kubespan name inconsistency
Browse files Browse the repository at this point in the history
Fix the inconsistent use of KubeSpan in docs and Config suffix for the
yaml config doc kind.

Signed-off-by: Tim Jones <tim.jones@siderolabs.com>
(cherry picked from commit e46227a)
  • Loading branch information
TimJones authored and smira committed Sep 23, 2024
1 parent f136c03 commit 882582a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion pkg/machinery/config/schemas/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
},
"kind": {
"enum": [
"KubespanEndpoints"
"KubeSpanEndpoints"
],
"title": "kind",
"description": "kind is the kind of the resource.\n",
Expand Down
6 changes: 3 additions & 3 deletions pkg/machinery/config/types/network/kubespan_endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

// KubespanEndpointsKind is a KubeSpan endpoints document kind.
const KubespanEndpointsKind = "KubespanEndpointsConfig"
const KubespanEndpointsKind = "KubeSpanEndpointsConfig"

func init() {
registry.Register(KubespanEndpointsKind, func(version string) config.Document {
Expand All @@ -38,9 +38,9 @@ var (
//
// examples:
// - value: exampleKubespanEndpointsV1Alpha1()
// alias: KubespanEndpoints
// alias: KubeSpanEndpointsConfig
// schemaRoot: true
// schemaMeta: v1alpha1/KubespanEndpoints
// schemaMeta: v1alpha1/KubeSpanEndpoints
type KubespanEndpointsConfigV1Alpha1 struct {
meta.Meta `yaml:",inline"`
// description: |
Expand Down
6 changes: 3 additions & 3 deletions pkg/machinery/config/types/network/network_doc.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1alpha1
kind: KubespanEndpointsConfig
kind: KubeSpanEndpointsConfig
extraAnnouncedEndpoints:
- 3.4.5.6:123
- 10.11.12.13:456
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: KubespanEndpoints is a config document to configure KubeSpan endpoints.
title: KubespanEndpoints
description: KubeSpanEndpointsConfig is a config document to configure KubeSpan endpoints.
title: KubeSpanEndpointsConfig
---

<!-- markdownlint-disable -->
Expand All @@ -15,7 +15,7 @@ title: KubespanEndpoints

{{< highlight yaml >}}
apiVersion: v1alpha1
kind: KubespanEndpointsConfig
kind: KubeSpanEndpointsConfig
# A list of extra Wireguard endpoints to announce from this machine.
extraAnnouncedEndpoints:
- 192.168.13.46:52000
Expand Down
2 changes: 1 addition & 1 deletion website/content/v1.8/schemas/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
},
"kind": {
"enum": [
"KubespanEndpoints"
"KubeSpanEndpoints"
],
"title": "kind",
"description": "kind is the kind of the resource.\n",
Expand Down
2 changes: 1 addition & 1 deletion website/content/v1.8/talos-guides/network/kubespan.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ The `filters` setting allows hiding some endpoints from being advertised over Ku
This is useful when some endpoints are known to be unreachable between the nodes, so that KubeSpan doesn't try to establish a connection to them.
Another use-case is hiding some endpoints if nodes can connect on multiple networks, and some of the networks are more preferable than others.

To include additional announced endpoints, such as inbound NAT mappings, you can add the [machine config document]({{< relref "../../reference/configuration/network/kubespanendpoints" >}}).
To include additional announced endpoints, such as inbound NAT mappings, you can add the [machine config document]({{< relref "../../reference/configuration/network/kubespanendpointsconfig" >}}).

```yaml
apiVersion: v1alpha1
Expand Down

0 comments on commit 882582a

Please sign in to comment.