Skip to content

Commit ecc5054

Browse files
Add additional spec fields for helm chart info
1 parent e9d76ac commit ecc5054

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

api/v1alpha1/virtualcluster_types.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,26 @@ import (
2626

2727
// VirtualClusterSpec defines the desired state of VirtualCluster.
2828
type VirtualClusterSpec struct {
29+
Chart HelmChart `json:"chart,omitempty"`
2930
// +kubebuilder:pruning:PreserveUnknownFields
3031
// +kubebuilder:validation:Schemaless
3132
Values Values `json:"values,omitempty"`
3233
}
3334

35+
type HelmChart struct {
36+
// Name is the name of the helm chart
37+
// +default:value="vcluster"
38+
Name string
39+
40+
// Repo is the name of the helm chart repository
41+
// +default:value="https://charts.loft.sh"
42+
Repo string
43+
44+
// Version is the version of the helm chart
45+
// +default:value="v0.24.1"
46+
Version string
47+
}
48+
3449
type Values struct {
3550
config.Config `json:",inline"`
3651
}

0 commit comments

Comments
 (0)