Skip to content

Commit

Permalink
tmp1
Browse files Browse the repository at this point in the history
  • Loading branch information
kron4eg committed May 22, 2024
1 parent 646ddf3 commit 33ef9bf
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkg/apis/kubeone/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ type KubeOneCluster struct {
// --namespace <NAMESPACE> --install --create-namespace <RELEASE> <CHART> [--values=values-override.yaml]`
HelmReleases []HelmRelease `json:"helmReleases,omitempty"`

// Workloads
Workloads []Workload `json:"workloads,omitempty"`

// SystemPackages configure kubeone behaviour regarding OS packages.
SystemPackages *SystemPackages `json:"systemPackages,omitempty"`

Expand All @@ -98,6 +101,15 @@ type KubeOneCluster struct {
ControlPlaneComponents *ControlPlaneComponents `json:"controlPlaneComponents,omitempty"`
}

// Workload
type Workload struct {
// Addon
Addon *Addon `json:"addon,omitempty"`

// HelmRelease
HelmRelease *HelmRelease `json:"helmRelease,omitempty"`
}

type ControlPlaneComponents struct {
// ControllerManagerConfig configures the Kubernetes Controller Manager
ControllerManager *ControlPlaneComponentConfig `json:"controllerManager,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/kubeone/v1beta1/zz_generated.conversion.go

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

12 changes: 12 additions & 0 deletions pkg/apis/kubeone/v1beta2/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ type KubeOneCluster struct {
// --namespace <NAMESPACE> --install --create-namespace <RELEASE> <CHART> [--values=values-override.yaml]`
HelmReleases []HelmRelease `json:"helmReleases,omitempty"`

// Workloads
Workloads []Workload `json:"workloads,omitempty"`

// SystemPackages configure kubeone behaviour regarding OS packages.
SystemPackages *SystemPackages `json:"systemPackages,omitempty"`

Expand All @@ -95,6 +98,15 @@ type KubeOneCluster struct {
ControlPlaneComponents *ControlPlaneComponents `json:"controlPlaneComponents,omitempty"`
}

// Workload
type Workload struct {
// Addon
Addon *Addon `json:"addon,omitempty"`

// HelmRelease
HelmRelease *HelmRelease `json:"helmRelease,omitempty"`
}

type ControlPlaneComponents struct {
// ControllerManagerConfig configures the Kubernetes Controller Manager
ControllerManager *ControlPlaneComponentConfig `json:"controllerManager,omitempty"`
Expand Down
34 changes: 34 additions & 0 deletions pkg/apis/kubeone/v1beta2/zz_generated.conversion.go

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

33 changes: 33 additions & 0 deletions pkg/apis/kubeone/v1beta2/zz_generated.deepcopy.go

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

33 changes: 33 additions & 0 deletions pkg/apis/kubeone/zz_generated.deepcopy.go

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

0 comments on commit 33ef9bf

Please sign in to comment.