Skip to content

Commit 78f7b3f

Browse files
authored
Merge pull request #2000 from shiftstack/issue1999
πŸ› Rules are optional in security group rules before v1beta1
2 parents acc680d + f747456 commit 78f7b3f

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

β€Žapi/v1alpha5/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ type LoadBalancer struct {
241241
type SecurityGroup struct {
242242
Name string `json:"name"`
243243
ID string `json:"id"`
244-
Rules []SecurityGroupRule `json:"rules"`
244+
Rules []SecurityGroupRule `json:"rules,omitempty"`
245245
}
246246

247247
// SecurityGroupRule represent the basic information of the associated OpenStack

β€Žapi/v1alpha6/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ type LoadBalancer struct {
253253
type SecurityGroup struct {
254254
Name string `json:"name"`
255255
ID string `json:"id"`
256-
Rules []SecurityGroupRule `json:"rules"`
256+
Rules []SecurityGroupRule `json:"rules,omitempty"`
257257
}
258258

259259
// SecurityGroupRule represent the basic information of the associated OpenStack

β€Žapi/v1alpha7/types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ type LoadBalancer struct {
281281
type SecurityGroup struct {
282282
Name string `json:"name"`
283283
ID string `json:"id"`
284-
Rules []SecurityGroupRule `json:"rules"`
284+
Rules []SecurityGroupRule `json:"rules,omitempty"`
285285
}
286286

287287
// SecurityGroupRule represent the basic information of the associated OpenStack

β€Žconfig/crd/bases/infrastructure.cluster.x-k8s.io_openstackclusters.yaml

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

0 commit comments

Comments
Β (0)