Skip to content

Commit

Permalink
Merge pull request #641 from makhov/hcp-files-mount
Browse files Browse the repository at this point in the history
Allow mounting any files to the HCP pods
  • Loading branch information
makhov authored Aug 7, 2024
2 parents cffd685 + d881629 commit 4fc4f01
Show file tree
Hide file tree
Showing 11 changed files with 30,176 additions and 10,000 deletions.
12 changes: 12 additions & 0 deletions api/k0smotron.io/v1beta1/k0smotroncluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ type ClusterSpec struct {
// https://kubernetes.io/docs/concepts/storage/volumes
//+kubebuilder:validation:Optional
Manifests []v1.Volume `json:"manifests,omitempty"`
// Mounts allows to specify list of volumes with any files to be
// mounted in the controlplane pod. K0smotron allows any kind of volume, but the
// recommendation is to use secrets and configmaps.
// For more information check:
// https://kubernetes.io/docs/concepts/storage/volumes
//+kubebuilder:validation:Optional
Mounts []Mount `json:"mounts,omitempty"`
// ControlPlaneFlags allows to configure additional flags for k0s
// control plane and to override existing ones. The default flags are
// kept unless they are overriden explicitly. Flags with arguments must
Expand All @@ -101,6 +108,11 @@ type ClusterSpec struct {
Resources v1.ResourceRequirements `json:"resources,omitempty"`
}

type Mount struct {
Path string `json:"path"`
v1.VolumeSource `json:",inline"`
}

const (
defaultK0SImage = "k0sproject/k0s"
defaultK0SVersion = "v1.27.9-k0s.0"
Expand Down
23 changes: 23 additions & 0 deletions api/k0smotron.io/v1beta1/zz_generated.deepcopy.go

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,619 changes: 1,619 additions & 0 deletions config/clusterapi/k0smotron.io/bases/k0smotron.io_clusters.yaml

Large diffs are not rendered by default.

1,619 changes: 1,619 additions & 0 deletions config/crd/bases/controlplane.cluster.x-k8s.io_k0smotroncontrolplanes.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,619 changes: 1,619 additions & 0 deletions config/crd/bases/k0smotron.io_clusters.yaml

Large diffs are not rendered by default.

Loading

0 comments on commit 4fc4f01

Please sign in to comment.