Skip to content

Commit 99cdc9f

Browse files
committed
storage should be option
1 parent 542d636 commit 99cdc9f

File tree

3 files changed

+39
-39
lines changed

3 files changed

+39
-39
lines changed

api/v1beta1/cloudinit_types.go

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
package v1beta1
2-
3-
// CloudInit is passed through raw yaml file not Proxmox API
4-
// so you can configure more detailed configs
5-
type CloudInit struct {
6-
User *User `json:"user,omitempty"`
7-
}
8-
9-
type User struct {
10-
GrowPart GrowPart `yaml:"growpart,omitempty" json:"-"`
11-
HostName string `yaml:"hostname,omitempty" json:"-"`
12-
ManageEtcHosts bool `yaml:"manage_etc_hosts,omitempty" json:"-"`
13-
User string `yaml:"user,omitempty" json:"user,omitempty"`
14-
ChPasswd ChPasswd `yaml:"chpasswd,omitempty" json:"-"`
15-
Users []string `yaml:"users,omitempty" json:"-"`
16-
Password string `yaml:"password,omitempty" json:"password,omitempty"`
17-
Packages []string `yaml:"packages,omitempty" json:"-"`
18-
PackageUpgrade bool `yaml:"package_upgrade,omitempty" json:"-"`
19-
WriteFiles []WriteFiles `yaml:"write_files,omitempty" json:"-"`
20-
RunCmd []string `yaml:"runcmd,omitempty" json:"-"`
21-
}
22-
23-
type GrowPart struct {
24-
Mode string `yaml:"mode,omitempty" json:"-"`
25-
Devices []string `yaml:"devices,omitempty" json:"-"`
26-
IgnoreGrowrootDisabled bool `yaml:"ignore_growroot_disabled,omitempty" json:"-"`
27-
}
28-
29-
type ChPasswd struct {
30-
Expire string `yaml:"expire,omitempty" json:"-"`
31-
}
32-
33-
type WriteFiles struct {
34-
Path string `yaml:"path,omitempty" json:"-"`
35-
Owner string `yaml:"owner,omitempty" json:"-"`
36-
Permissions string `yaml:"permissions,omitempty" json:"-"`
37-
Content string `yaml:"content,omitempty" json:"-"`
38-
}
1+
package v1beta1
2+
3+
// CloudInit is passed through raw yaml file not Proxmox API
4+
// so you can configure more detailed configs
5+
type CloudInit struct {
6+
User *User `json:"user,omitempty"`
7+
}
8+
9+
type User struct {
10+
GrowPart GrowPart `yaml:"growpart,omitempty" json:"-"`
11+
HostName string `yaml:"hostname,omitempty" json:"-"`
12+
ManageEtcHosts bool `yaml:"manage_etc_hosts,omitempty" json:"-"`
13+
User string `yaml:"user,omitempty" json:"user,omitempty"`
14+
ChPasswd ChPasswd `yaml:"chpasswd,omitempty" json:"-"`
15+
Users []string `yaml:"users,omitempty" json:"-"`
16+
Password string `yaml:"password,omitempty" json:"password,omitempty"`
17+
Packages []string `yaml:"packages,omitempty" json:"-"`
18+
PackageUpgrade bool `yaml:"package_upgrade,omitempty" json:"-"`
19+
WriteFiles []WriteFiles `yaml:"write_files,omitempty" json:"-"`
20+
RunCmd []string `yaml:"runcmd,omitempty" json:"-"`
21+
}
22+
23+
type GrowPart struct {
24+
Mode string `yaml:"mode,omitempty" json:"-"`
25+
Devices []string `yaml:"devices,omitempty" json:"-"`
26+
IgnoreGrowrootDisabled bool `yaml:"ignore_growroot_disabled,omitempty" json:"-"`
27+
}
28+
29+
type ChPasswd struct {
30+
Expire string `yaml:"expire,omitempty" json:"-"`
31+
}
32+
33+
type WriteFiles struct {
34+
Path string `yaml:"path,omitempty" json:"-"`
35+
Owner string `yaml:"owner,omitempty" json:"-"`
36+
Permissions string `yaml:"permissions,omitempty" json:"-"`
37+
Content string `yaml:"content,omitempty" json:"-"`
38+
}

api/v1beta1/proxmoxcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ type ProxmoxClusterSpec struct {
4242
NodeRefs []NodeRef `json:"nodeRefs,omitempty"`
4343

4444
// storage is for proxmox storage used by vm instances
45+
// +optional
4546
Storage Storage `json:"storage"`
4647
}
4748

config/crd/bases/infrastructure.cluster.x-k8s.io_proxmoxclusters.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ spec:
126126
type: object
127127
required:
128128
- serverRef
129-
- storage
130129
type: object
131130
status:
132131
description: ProxmoxClusterStatus defines the observed state of ProxmoxCluster

0 commit comments

Comments
 (0)