Skip to content

Commit

Permalink
Merge pull request #6632 from zetaab/managesecgroups
Browse files Browse the repository at this point in the history
Add manage security groups for loadbalancers
  • Loading branch information
k8s-ci-robot authored Mar 19, 2019
2 parents 08bece4 + dab9c18 commit 0ab385c
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 0 deletions.
1 change: 1 addition & 0 deletions nodeup/pkg/model/cloudconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ func (b *CloudConfigBuilder) Build(c *fi.ModelBuilderContext) error {
fmt.Sprintf("lb-method=%s", fi.StringValue(lb.Method)),
fmt.Sprintf("lb-provider=%s", fi.StringValue(lb.Provider)),
fmt.Sprintf("use-octavia=%t", fi.BoolValue(lb.UseOctavia)),
fmt.Sprintf("manage-security-groups=%t", fi.BoolValue(lb.ManageSecGroups)),
"",
)

Expand Down
1 change: 1 addition & 0 deletions pkg/apis/kops/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ type OpenstackLoadbalancerConfig struct {
FloatingNetworkID *string `json:"floatingNetworkID,omitempty"`
FloatingSubnet *string `json:"floatingSubnet,omitempty"`
SubnetID *string `json:"subnetID,omitempty"`
ManageSecGroups *bool `json:"manageSecurityGroups,omitempty"`
}

type OpenstackBlockStorageConfig struct {
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/kops/v1alpha1/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ type OpenstackLoadbalancerConfig struct {
FloatingNetworkID *string `json:"floatingNetworkID,omitempty"`
FloatingSubnet *string `json:"floatingSubnet,omitempty"`
SubnetID *string `json:"subnetID,omitempty"`
ManageSecGroups *bool `json:"manageSecurityGroups,omitempty"`
}

type OpenstackBlockStorageConfig struct {
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha1/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pkg/apis/kops/v1alpha2/componentconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,7 @@ type OpenstackLoadbalancerConfig struct {
FloatingNetworkID *string `json:"floatingNetworkID,omitempty"`
FloatingSubnet *string `json:"floatingSubnet,omitempty"`
SubnetID *string `json:"subnetID,omitempty"`
ManageSecGroups *bool `json:"manageSecurityGroups,omitempty"`
}

type OpenstackBlockStorageConfig struct {
Expand Down
2 changes: 2 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.conversion.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/v1alpha2/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pkg/apis/kops/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ab385c

Please sign in to comment.