Skip to content

Commit

Permalink
Add AirGapped field to v1beta2
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Mazzotti <[email protected]>
  • Loading branch information
anmazzotti committed May 8, 2024
1 parent 979c577 commit 701b5ce
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bootstrap/api/v1beta1/zz_generated.conversion.go

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

7 changes: 7 additions & 0 deletions bootstrap/api/v1beta2/kthreesconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,13 @@ type KThreesAgentConfig struct {
// NodeName Name of the Node
// +optional
NodeName string `json:"nodeName,omitempty"`

// AirGapped is a boolean value to define if the bootstrapping should be air-gapped,
// basically supposing that online container registries and k3s install scripts are not reachable.
// User should prepare docker image, k3s binary, and put the install script in `/opt/install.sh`
// on all nodes in the air-gap environment.
// +optional
AirGapped bool `json:"airGapped,omitempty"`
}

// KThreesConfigStatus defines the observed state of KThreesConfig.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,13 @@ spec:
agentConfig:
description: AgentConfig specifies configuration for the agent nodes
properties:
airGapped:
description: |-
AirGapped is a boolean value to define if the bootstrapping should be air-gapped,
basically supposing that online container registries and k3s install scripts are not reachable.
User should prepare docker image, k3s binary, and put the install script in `/opt/install.sh`
on all nodes in the air-gap environment.
type: boolean
kubeProxyArgs:
description: KubeProxyArgs Customized flag for kube-proxy process
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ spec:
description: AgentConfig specifies configuration for the agent
nodes
properties:
airGapped:
description: |-
AirGapped is a boolean value to define if the bootstrapping should be air-gapped,
basically supposing that online container registries and k3s install scripts are not reachable.
User should prepare docker image, k3s binary, and put the install script in `/opt/install.sh`
on all nodes in the air-gap environment.
type: boolean
kubeProxyArgs:
description: KubeProxyArgs Customized flag for kube-proxy
process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ spec:
description: AgentConfig specifies configuration for the agent
nodes
properties:
airGapped:
description: |-
AirGapped is a boolean value to define if the bootstrapping should be air-gapped,
basically supposing that online container registries and k3s install scripts are not reachable.
User should prepare docker image, k3s binary, and put the install script in `/opt/install.sh`
on all nodes in the air-gap environment.
type: boolean
kubeProxyArgs:
description: KubeProxyArgs Customized flag for kube-proxy
process
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ spec:
description: AgentConfig specifies configuration for the
agent nodes
properties:
airGapped:
description: |-
AirGapped is a boolean value to define if the bootstrapping should be air-gapped,
basically supposing that online container registries and k3s install scripts are not reachable.
User should prepare docker image, k3s binary, and put the install script in `/opt/install.sh`
on all nodes in the air-gap environment.
type: boolean
kubeProxyArgs:
description: KubeProxyArgs Customized flag for kube-proxy
process
Expand Down

0 comments on commit 701b5ce

Please sign in to comment.