Skip to content

Commit fa77a7f

Browse files
committed
Merge fixes
1 parent 8b59042 commit fa77a7f

12 files changed

+67
-2
lines changed

api/v1alpha3/zz_generated.conversion.go

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha4/azurestackhciloadbalancer_types.go

+3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ type AzureStackHCILoadBalancerSpec struct {
3838
// +optional
3939
// +kubebuilder:default=1
4040
Replicas *int32 `json:"replicas,omitempty"`
41+
42+
// +optional
43+
HostType HostType `json:"hostType,omitempty"`
4144
}
4245

4346
type AzureStackHCILoadBalancerStatus struct {

api/v1alpha4/azurestackhcimachine_types.go

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ type AzureStackHCIMachineSpec struct {
3636
// +optional
3737
ProviderID *string `json:"providerID,omitempty"`
3838

39+
// +optional
40+
HostType HostType `json:"hostType,omitempty"`
41+
3942
VMSize string `json:"vmSize"`
4043

4144
AvailabilityZone AvailabilityZone `json:"availabilityZone,omitempty"`

api/v1alpha4/azurestackhcivirtualmachine_types.go

+3
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ const (
3232

3333
// AzureStackHCIVirtualMachineSpec defines the desired state of AzureStackHCIVirtualMachine
3434
type AzureStackHCIVirtualMachineSpec struct {
35+
// +optional
36+
HostType HostType `json:"hostType,omitempty"`
37+
3538
VMSize string `json:"vmSize"`
3639
AvailabilityZone AvailabilityZone `json:"availabilityZone,omitempty"`
3740
Image Image `json:"image"`

api/v1alpha4/types.go

+12
Original file line numberDiff line numberDiff line change
@@ -222,3 +222,15 @@ const (
222222
ValueReady = "true"
223223
AnnotationControlPlaneReady = "azurestackhci.cluster.sigs.k8s.io/control-plane-ready"
224224
)
225+
226+
// HostType specifies what type of machine a node should be deployed on.
227+
type HostType string
228+
229+
const (
230+
// HostTypeVM specifies that the node should be deployed on a virtual machine.
231+
// Default value.
232+
HostTypeVM = HostType("vm")
233+
234+
// HostTypeBareMetal specifies that the node should be deployed on a bare metal machine.
235+
HostTypeBareMetal = HostType("baremetal")
236+
)

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

+4
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,10 @@ spec:
351351
description: AzureStackHCILoadBalancer is used to declare the AzureStackHCILoadBalancerSpec
352352
if a LoadBalancer is desired for the AzureStackHCICluster.
353353
properties:
354+
hostType:
355+
description: HostType specifies what type of machine a node should
356+
be deployed on.
357+
type: string
354358
image:
355359
description: 'Image defines information about the image to use
356360
for VM creation. There are three ways to specify an image: by

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

+4
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ spec:
292292
type: object
293293
spec:
294294
properties:
295+
hostType:
296+
description: HostType specifies what type of machine a node should
297+
be deployed on.
298+
type: string
295299
image:
296300
description: 'Image defines information about the image to use for
297301
VM creation. There are three ways to specify an image: by ID, by

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

+4
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ spec:
276276
id:
277277
type: string
278278
type: object
279+
hostType:
280+
description: HostType specifies what type of machine a node should
281+
be deployed on.
282+
type: string
279283
image:
280284
description: 'Image defines information about the image to use for
281285
VM creation. There are three ways to specify an image: by ID, by

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

+4
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ spec:
197197
id:
198198
type: string
199199
type: object
200+
hostType:
201+
description: HostType specifies what type of machine a node
202+
should be deployed on.
203+
type: string
200204
image:
201205
description: 'Image defines information about the image to
202206
use for VM creation. There are three ways to specify an

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

+4
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,10 @@ spec:
276276
type: string
277277
clusterName:
278278
type: string
279+
hostType:
280+
description: HostType specifies what type of machine a node should
281+
be deployed on.
282+
type: string
279283
identity:
280284
description: VMIdentity defines the identity of the virtual machine,
281285
if configured.

go.mod

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@ require (
66
github.com/Azure/go-autorest/autorest v0.11.18 // indirect
77
github.com/Azure/go-autorest/autorest/to v0.4.0
88
github.com/blang/semver v3.5.1+incompatible
9+
github.com/fsnotify/fsnotify v1.4.9 // indirect
910
github.com/go-logr/logr v0.4.0
10-
github.com/microsoft/moc v0.10.9
11-
github.com/microsoft/moc-sdk-for-go v0.10.9-alpha.4
11+
github.com/microsoft/moc v0.10.14
12+
github.com/microsoft/moc-sdk-for-go v0.10.14
13+
github.com/onsi/gomega v1.14.0 // indirect
1214
github.com/pkg/errors v0.9.1
1315
github.com/spf13/pflag v1.0.5
1416
golang.org/x/crypto v0.0.0-20210220033148-5ea612d1eb83
17+
golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914 // indirect
1518
google.golang.org/grpc v1.39.0
1619
k8s.io/api v0.21.3
1720
k8s.io/apimachinery v0.21.3

go.sum

+15
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0Zeo
3636
cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk=
3737
cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs=
3838
cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0=
39+
code.cloudfoundry.org/bytefmt v0.0.0-20210608160410-67692ebc98de/go.mod h1:YOakoAiZWNbkynB2dKOKvdxVehYGn3EH4UXq/i99hYg=
3940
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
4041
github.com/Azure/go-ansiterm v0.0.0-20170929234023-d6e3b3328b78/go.mod h1:LmzpDX56iTiv29bbRTIsUNlaFfuhWRQBWjQdVyAevI8=
4142
github.com/Azure/go-autorest v14.2.0+incompatible h1:V5VMDjClD3GiElqLWO7mz2MxNAK/vTfRHdAubSIPRgs=
@@ -431,8 +432,13 @@ github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182aff
431432
github.com/matttproud/golang_protobuf_extensions v1.0.2-0.20181231171920-c182affec369/go.mod h1:BSXmuO+STAnVfrANrmjBb36TMTDstsz7MSK+HVaYKv4=
432433
github.com/microsoft/moc v0.10.9 h1:TI2ZE7pyMddctPPdsORiI+nLh2CPpwnie5RhUxf7b24=
433434
github.com/microsoft/moc v0.10.9/go.mod h1:bY29w3GntaOpAFMT7eOQb6S/X0yOMCBOkaMhwvIPoOM=
435+
github.com/microsoft/moc v0.10.14-alpha.1/go.mod h1:6QpHAg6Y/MOxZxZ3BkyVPPHx7BSekYmz1OY2QJ6GfT8=
436+
github.com/microsoft/moc v0.10.14 h1:MPcFdZgqGLoOf9dDPhisAKh5ILGcREHboxTBQxUpRpI=
437+
github.com/microsoft/moc v0.10.14/go.mod h1:6QpHAg6Y/MOxZxZ3BkyVPPHx7BSekYmz1OY2QJ6GfT8=
434438
github.com/microsoft/moc-sdk-for-go v0.10.9-alpha.4 h1:LcmKVeyWY6zP5PQ/FJltmmt4M3rUbWVm3WQPDd2/xsw=
435439
github.com/microsoft/moc-sdk-for-go v0.10.9-alpha.4/go.mod h1:HKzn7EmksZV89k67g9T5zpbINooUmoIm1P7c2M1chUo=
440+
github.com/microsoft/moc-sdk-for-go v0.10.14 h1:YxDtveOCPFatI4XK/AzNhAAZQewPB08gpWnZMKOog9g=
441+
github.com/microsoft/moc-sdk-for-go v0.10.14/go.mod h1:jXTC0QHinPYIQ0rjSRMj/I/7JqV2K3l2DhdEAivuwbE=
436442
github.com/miekg/dns v1.1.25/go.mod h1:bPDLeHnStXmXAq1m/Ch/hvfNHr14JKNPMBo3VZKjuso=
437443
github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc=
438444
github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
@@ -471,12 +477,14 @@ github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB
471477
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
472478
github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
473479
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
480+
github.com/onsi/ginkgo v1.16.2/go.mod h1:CObGmKUOKaSC0RjmoAK7tKyn4Azo5P2IWuoMnvwxz1E=
474481
github.com/onsi/ginkgo v1.16.4 h1:29JGrr5oVBm5ulCWet69zQkzWipVXIol6ygQUe/EzNc=
475482
github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0=
476483
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
477484
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
478485
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
479486
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
487+
github.com/onsi/gomega v1.13.0/go.mod h1:lRk9szgn8TxENtWd0Tp4c3wjlRfMTMH27I+3Je41yGY=
480488
github.com/onsi/gomega v1.14.0 h1:ep6kpPVwmr/nTbklSx2nrLNSIO62DoYAhnPNIMhK8gI=
481489
github.com/onsi/gomega v1.14.0/go.mod h1:cIuvLEne0aoVhAgh/O6ac0Op8WWw9H6eYCriF+tEHG0=
482490
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
@@ -564,6 +572,7 @@ github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An
564572
github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
565573
github.com/spf13/viper v1.6.2/go.mod h1:t3iDnF5Jlj76alVNuyFBk5oUMCvsrkbvZK0WQdfDi5k=
566574
github.com/spf13/viper v1.7.0/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
575+
github.com/spf13/viper v1.7.1/go.mod h1:8WkrPz2fc9jxqZNCJI/76HCieCp4Q8HaLFoCha5qpdg=
567576
github.com/spf13/viper v1.8.1 h1:Kq1fyeebqsBfbjZj4EL7gj2IO0mMaiyjYUWcUsl2O44=
568577
github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns=
569578
github.com/stoewer/go-strcase v1.2.0/go.mod h1:IBiWB2sKIp3wVVQ3Y035++gc+knqhUQag1KpM8ahLw8=
@@ -729,6 +738,8 @@ golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLd
729738
golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM=
730739
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781 h1:DzZ89McO9/gWPsQXS/FVKAlG02ZjaQ6AlZRBimEYOd0=
731740
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
741+
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d h1:LO7XpTYMwTqxjLcGWPijK3vRXg1aWdlNOVOHRq45d7c=
742+
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
732743
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
733744
golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
734745
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
@@ -823,6 +834,8 @@ golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBc
823834
golang.org/x/sys v0.0.0-20210603081109-ebe580a85c40/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
824835
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I=
825836
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
837+
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e h1:WUoyKPm6nCo1BnNUvPGnFG3T5DUVem42yDJZZ4CNxMA=
838+
golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
826839
golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=
827840
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
828841
golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d h1:SZxvLBoTP5yHO3Frd4z4vrF+DBX9vMVanchswa69toE=
@@ -836,6 +849,8 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
836849
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
837850
golang.org/x/text v0.3.6 h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
838851
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
852+
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
853+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
839854
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
840855
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
841856
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=

0 commit comments

Comments
 (0)