Skip to content

Commit

Permalink
update infrastructure template for test
Browse files Browse the repository at this point in the history
Signed-off-by: hanenMizouni <[email protected]>
  • Loading branch information
outscale-hmi committed Dec 12, 2024
1 parent eac07ee commit 3cd2461
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
6 changes: 6 additions & 0 deletions capm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ spec:
securityGroups:
items:
properties:
deleteDefaultOutboundRule:
description: Should the default allow all outbound rule be deleted
type: boolean
description:
description: The description of the security group
type: string
Expand Down Expand Up @@ -384,6 +387,9 @@ spec:
resourceId:
description: The security group rule id
type: string
targetSecurityGroupName:
description: The name of the security group to use as target
type: string
toPortRange:
description: The end of the port range
format: int32
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ module github.com/outscale-dev/cluster-api-provider-outscale.git
go 1.23.0

require (
github.com/Jeffail/gabs v1.4.0
github.com/benbjohnson/clock v1.3.0
github.com/go-logr/logr v1.4.2
github.com/golang/mock v1.6.0
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25
github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E=
github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak=
github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
github.com/Jeffail/gabs v1.4.0 h1://5fYRRTq1edjfIrQGvdkcd22pkYUrHZ5YC/H2GJVAo=
github.com/Jeffail/gabs v1.4.0/go.mod h1:6xMvQMK4k33lb7GUUpaAPh6nKMmemQeg5d4gn7/bOXc=
github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ=
github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE=
github.com/Masterminds/goutils v1.1.1 h1:5nUrii3FMTL5diU80unEVvNevw1nH4+ZV4DSLVJLSYI=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@ spec:
securityGroups:
items:
properties:
deleteDefaultOutboundRule:
description: Should the default allow all outbound rule be deleted
type: boolean
description:
description: The description of the security group
type: string
Expand Down Expand Up @@ -239,6 +242,9 @@ spec:
resourceId:
description: The security group rule id
type: string
targetSecurityGroupName:
description: The name of the security group to use as target
type: string
toPortRange:
description: The end of the port range
format: int32
Expand Down
12 changes: 6 additions & 6 deletions testenv/osccluster_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1017,8 +1017,8 @@ var _ = Describe("Outscale Cluster Reconciler", func() {
},
SecurityGroups: []*infrastructurev1beta1.OscSecurityGroup{
{
Name: "cluster-api-securitygroups-kw",
Description: "Security Group with cluster-api",
Name: "cluster-api-securitygroups-kw",
Description: "Security Group with cluster-api",
DeleteDefaultOutboundRule: false,
SecurityGroupRules: []infrastructurev1beta1.OscSecurityGroupRule{
{
Expand Down Expand Up @@ -1056,8 +1056,8 @@ var _ = Describe("Outscale Cluster Reconciler", func() {
},
},
{
Name: "cluster-api-securitygroups-kcp",
Description: "Security Group with cluster-api",
Name: "cluster-api-securitygroups-kcp",
Description: "Security Group with cluster-api",
DeleteDefaultOutboundRule: false,
SecurityGroupRules: []infrastructurev1beta1.OscSecurityGroupRule{
{
Expand Down Expand Up @@ -1095,8 +1095,8 @@ var _ = Describe("Outscale Cluster Reconciler", func() {
},
},
{
Name: "cluster-api-securitygroup-lb",
Description: "Security Group with cluster-api",
Name: "cluster-api-securitygroup-lb",
Description: "Security Group with cluster-api",
DeleteDefaultOutboundRule: false,
SecurityGroupRules: []infrastructurev1beta1.OscSecurityGroupRule{
{
Expand Down

0 comments on commit 3cd2461

Please sign in to comment.