Skip to content

feat: Deploy snapshot-controller as separate addon #734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions api/v1alpha1/addon_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ type ClusterAutoscaler struct {
type GenericCSI struct {
// +kubebuilder:validation:Required
DefaultStorage DefaultStorage `json:"defaultStorage"`

// Deploy the CSI snapshot controller and associated CRDs.
// +kubebuilder:validation:Optional
SnapshotController *SnapshotController `json:"snapshotController,omitempty"`
}

type SnapshotController struct {
// Addon strategy used to deploy the snapshot controller to the workload cluster.
// +kubebuilder:validation:Required
// +kubebuilder:validation:Enum=ClusterResourceSet;HelmAddon
Strategy AddonStrategy `json:"strategy"`
}

type DefaultStorage struct {
Expand Down
12 changes: 12 additions & 0 deletions api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ spec:
required:
- aws-ebs
type: object
snapshotController:
description: Deploy the CSI snapshot controller and associated CRDs.
properties:
strategy:
description: Addon strategy used to deploy the snapshot controller to the workload cluster.
enum:
- ClusterResourceSet
- HelmAddon
type: string
required:
- strategy
type: object
required:
- defaultStorage
- providers
Expand Down
12 changes: 12 additions & 0 deletions api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ spec:
required:
- local-path
type: object
snapshotController:
description: Deploy the CSI snapshot controller and associated CRDs.
properties:
strategy:
description: Addon strategy used to deploy the snapshot controller to the workload cluster.
enum:
- ClusterResourceSet
- HelmAddon
type: string
required:
- strategy
type: object
required:
- defaultStorage
- providers
Expand Down
12 changes: 12 additions & 0 deletions api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,18 @@ spec:
required:
- nutanix
type: object
snapshotController:
description: Deploy the CSI snapshot controller and associated CRDs.
properties:
strategy:
description: Addon strategy used to deploy the snapshot controller to the workload cluster.
enum:
- ClusterResourceSet
- HelmAddon
type: string
required:
- strategy
type: object
required:
- defaultStorage
- providers
Expand Down
26 changes: 23 additions & 3 deletions api/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 2 additions & 0 deletions charts/cluster-api-runtime-extensions-nutanix/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ A Helm chart for cluster-api-runtime-extensions-nutanix
| hooks.csi.local-path.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-local-path-csi-helm-values-template"` | |
| hooks.csi.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
| hooks.csi.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nutanix-csi-helm-values-template"` | |
| hooks.csi.snapshot-controller.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
| hooks.csi.snapshot-controller.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-snapshot-controller-helm-values-template"` | |
| hooks.nfd.crsStrategy.defaultInstallationConfigMap.name | string | `"node-feature-discovery"` | |
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.create | bool | `true` | |
| hooks.nfd.helmAddonStrategy.defaultValueTemplateConfigMap.name | string | `"default-nfd-helm-values-template"` | |
Expand Down
Loading
Loading