Skip to content

Commit

Permalink
feat: add generate network policies to client
Browse files Browse the repository at this point in the history
Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
  • Loading branch information
TessaIO committed Aug 23, 2023
1 parent e430c48 commit fc71870
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func (k *Kompose) Convert(options ConvertOptions) ([]runtime.Object, error) {
ServiceGroupMode: k.serviceGroupMode(options),
ServiceGroupName: k.serviceGroupName(options),
SecretsAsFiles: k.secretsAsFiles(options),
GenerateNetworkPolicies: options.GenerateNetworkPolicies,
}
err = app.ValidateComposeFile(&kobjectConvertOptions)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions client/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ type ConvertOptions struct {
WithKomposeAnnotations *bool
InputFiles []string
Provider
GenerateNetworkPolicies bool
}

type Provider interface{}
Expand Down

0 comments on commit fc71870

Please sign in to comment.