Skip to content

Commit

Permalink
Fix misc docs, links, and formatting (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbaker1 authored Jun 6, 2024
1 parent 2e6bb9e commit e50acfb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 21 deletions.
11 changes: 5 additions & 6 deletions nodeadm/api/v1alpha1/nodeconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type ClusterDetails struct {
// CertificateAuthority is a base64-encoded string of your cluster's certificate authority chain.
CertificateAuthority []byte `json:"certificateAuthority,omitempty"`

// CIDR is your cluster's Pod IP CIDR. This value is used to infer your cluster's DNS address.
// CIDR is your cluster's service CIDR block. This value is used to infer your cluster's DNS address.
CIDR string `json:"cidr,omitempty"`

// EnableOutpost determines how your node is configured when running on an AWS Outpost.
Expand All @@ -61,20 +61,19 @@ type ClusterDetails struct {

// KubeletOptions are additional parameters passed to `kubelet`.
type KubeletOptions struct {
// Config is a [`KubeletConfiguration`](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1/)
// Config is a [`KubeletConfiguration`](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/)
// that will be merged with the defaults.
Config map[string]runtime.RawExtension `json:"config,omitempty"`

// Flags are [command-line `kubelet`` arguments](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/).
// Flags are [command-line `kubelet` arguments](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/).
// that will be appended to the defaults.
Flags []string `json:"flags,omitempty"`
}

// ContainerdOptions are additional parameters passed to `containerd`.
type ContainerdOptions struct {
// Config is inline [`containerd` configuration TOML](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md)
// that will be [imported](https://github.com/containerd/containerd/blob/32169d591dbc6133ef7411329b29d0c0433f8c4d/docs/man/containerd-config.toml.5.md?plain=1#L146-L154)
// by the default configuration file.
// Config is an inline [`containerd` configuration TOML](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md)
// that will be merged with the defaults.
Config string `json:"config,omitempty"`

// BaseRuntimeSpec is the OCI runtime specification upon which all containers will be based.
Expand Down
21 changes: 10 additions & 11 deletions nodeadm/crds/node.eks.aws_nodeconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ spec:
format: byte
type: string
cidr:
description: CIDR is your cluster's Pod IP CIDR. This value is
used to infer your cluster's DNS address.
description: CIDR is your cluster's service CIDR block. This value
is used to infer your cluster's DNS address.
type: string
enableOutpost:
description: EnableOutpost determines how your node is configured
Expand All @@ -76,16 +76,15 @@ spec:
additionalProperties:
type: object
x-kubernetes-preserve-unknown-fields: true
description: 'BaseRuntimeSpec is the OCI runtime specification
upon which all containers will be based. The provided spec will
be merged with the default spec; so that a partial spec may
be provided. For more information, see: https://github.com/opencontainers/runtime-spec'
description: |-
BaseRuntimeSpec is the OCI runtime specification upon which all containers will be based.
The provided spec will be merged with the default spec; so that a partial spec may be provided.
For more information, see: https://github.com/opencontainers/runtime-spec
type: object
config:
description: |-
Config is inline [`containerd` configuration TOML](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md)
that will be [imported](https://github.com/containerd/containerd/blob/32169d591dbc6133ef7411329b29d0c0433f8c4d/docs/man/containerd-config.toml.5.md?plain=1#L146-L154)
by the default configuration file.
Config is an inline [`containerd` configuration TOML](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md)
that will be merged with the defaults.
type: string
type: object
featureGates:
Expand Down Expand Up @@ -120,12 +119,12 @@ spec:
type: object
x-kubernetes-preserve-unknown-fields: true
description: |-
Config is a [`KubeletConfiguration`](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1/)
Config is a [`KubeletConfiguration`](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/)
that will be merged with the defaults.
type: object
flags:
description: |-
Flags are [command-line `kubelet`` arguments](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/).
Flags are [command-line `kubelet` arguments](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/).
that will be appended to the defaults.
items:
type: string
Expand Down
8 changes: 4 additions & 4 deletions nodeadm/doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ _Appears in:_
| `name` _string_ | Name is the name of your EKS cluster |
| `apiServerEndpoint` _string_ | APIServerEndpoint is the URL of your EKS cluster's kube-apiserver. |
| `certificateAuthority` _[byte](https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.29/#byte-v1-meta) array_ | CertificateAuthority is a base64-encoded string of your cluster's certificate authority chain. |
| `cidr` _string_ | CIDR is your cluster's Pod IP CIDR. This value is used to infer your cluster's DNS address. |
| `cidr` _string_ | CIDR is your cluster's service CIDR block. This value is used to infer your cluster's DNS address. |
| `enableOutpost` _boolean_ | EnableOutpost determines how your node is configured when running on an AWS Outpost. |
| `id` _string_ | ID is an identifier for your cluster; this is only used when your node is running on an AWS Outpost. |

Expand All @@ -33,7 +33,7 @@ _Appears in:_

| Field | Description |
| --- | --- |
| `config` _string_ | Config is inline [`containerd` configuration TOML](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md) that will be [imported](https://github.com/containerd/containerd/blob/32169d591dbc6133ef7411329b29d0c0433f8c4d/docs/man/containerd-config.toml.5.md?plain=1#L146-L154) by the default configuration file. |
| `config` _string_ | Config is an inline [`containerd` configuration TOML](https://github.com/containerd/containerd/blob/main/docs/man/containerd-config.toml.5.md) that will be merged with the defaults. |
| `baseRuntimeSpec` _object (keys:string, values:RawExtension)_ | BaseRuntimeSpec is the OCI runtime specification upon which all containers will be based. The provided spec will be merged with the default spec; so that a partial spec may be provided. For more information, see: https://github.com/opencontainers/runtime-spec |

#### Feature
Expand Down Expand Up @@ -68,8 +68,8 @@ _Appears in:_

| Field | Description |
| --- | --- |
| `config` _object (keys:string, values:RawExtension)_ | Config is a [`KubeletConfiguration`](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1/) that will be merged with the defaults. |
| `flags` _string array_ | Flags are [command-line `kubelet`` arguments](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/). that will be appended to the defaults. |
| `config` _object (keys:string, values:RawExtension)_ | Config is a [`KubeletConfiguration`](https://kubernetes.io/docs/reference/config-api/kubelet-config.v1beta1/) that will be merged with the defaults. |
| `flags` _string array_ | Flags are [command-line `kubelet` arguments](https://kubernetes.io/docs/reference/command-line-tools-reference/kubelet/). that will be appended to the defaults. |

#### LocalStorageOptions

Expand Down

0 comments on commit e50acfb

Please sign in to comment.