Skip to content

Commit c71fa5f

Browse files
authored
Merge pull request #1511 from shiftstack/securitygroups
🌱 Un-pointer PortOpts.SecurityGroups
2 parents a1be292 + 0d1de7e commit c71fa5f

File tree

14 files changed

+41
-52
lines changed

14 files changed

+41
-52
lines changed

api/v1alpha4/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type PortOpts struct {
132132
FixedIPs []FixedIP `json:"fixedIPs,omitempty"`
133133
TenantID string `json:"tenantId,omitempty"`
134134
ProjectID string `json:"projectId,omitempty"`
135-
SecurityGroups *[]string `json:"securityGroups,omitempty"`
135+
SecurityGroups []string `json:"securityGroups,omitempty"`
136136
AllowedAddressPairs []AddressPair `json:"allowedAddressPairs,omitempty"`
137137
// Enables and disables trunk at port level. If not provided, openStackMachine.Spec.Trunk is inherited.
138138
Trunk *bool `json:"trunk,omitempty"`

api/v1alpha4/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha4/zz_generated.deepcopy.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha5/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ type PortOpts struct {
118118
TenantID string `json:"tenantId,omitempty"`
119119
ProjectID string `json:"projectId,omitempty"`
120120
// The uuids of the security groups to assign to the instance
121-
SecurityGroups *[]string `json:"securityGroups,omitempty"`
121+
SecurityGroups []string `json:"securityGroups,omitempty"`
122122
// The names, uuids, filters or any combination these of the security groups to assign to the instance
123123
SecurityGroupFilters []SecurityGroupParam `json:"securityGroupFilters,omitempty"`
124124
AllowedAddressPairs []AddressPair `json:"allowedAddressPairs,omitempty"`

api/v1alpha5/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha5/zz_generated.deepcopy.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha6/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type PortOpts struct {
119119
ProjectID string `json:"projectId,omitempty"`
120120
// The uuids of the security groups to assign to the instance
121121
// +listType=set
122-
SecurityGroups *[]string `json:"securityGroups,omitempty"`
122+
SecurityGroups []string `json:"securityGroups,omitempty"`
123123
// The names, uuids, filters or any combination these of the security groups to assign to the instance
124124
SecurityGroupFilters []SecurityGroupParam `json:"securityGroupFilters,omitempty"`
125125
AllowedAddressPairs []AddressPair `json:"allowedAddressPairs,omitempty"`

api/v1alpha6/zz_generated.conversion.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha6/zz_generated.deepcopy.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1alpha7/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ type PortOpts struct {
119119
ProjectID string `json:"projectId,omitempty"`
120120
// The uuids of the security groups to assign to the instance
121121
// +listType=set
122-
SecurityGroups *[]string `json:"securityGroups,omitempty"`
122+
SecurityGroups []string `json:"securityGroups,omitempty"`
123123
// The names, uuids, filters or any combination these of the security groups to assign to the instance
124124
SecurityGroupFilters []SecurityGroupParam `json:"securityGroupFilters,omitempty"`
125125
AllowedAddressPairs []AddressPair `json:"allowedAddressPairs,omitempty"`

0 commit comments

Comments
 (0)