Skip to content

Commit

Permalink
add templated flag (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
zreigz authored Feb 22, 2024
1 parent 0f0e7d2 commit 0be7c40
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/plural/cd_services.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func (p *Plural) cdServiceCommands() []cli.Command {
Usage: "config name value",
},
cli.BoolFlag{Name: "dry-run", Usage: "dry run mode"},
cli.BoolFlag{Name: "templated", Usage: "set templated flag"},
cli.StringSliceFlag{
Name: "context-id",
Usage: "bind service context",
Expand Down Expand Up @@ -364,6 +365,10 @@ func (p *Plural) handleUpdateClusterService(c *cli.Context) error {
dryRun := c.Bool("dry-run")
attributes.DryRun = &dryRun
}
if c.IsSet("templated") {
templated := c.Bool("templated")
attributes.Templated = &templated
}

sd, err := p.ConsoleClient.UpdateClusterService(serviceId, serviceName, clusterName, attributes)
if err != nil {
Expand Down

0 comments on commit 0be7c40

Please sign in to comment.