Skip to content

Commit

Permalink
fix: params
Browse files Browse the repository at this point in the history
  • Loading branch information
thde committed Mar 15, 2024
1 parent fd18ad2 commit 79e4e71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions create/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type redisCmd struct {
Name string `arg:"" default:"" help:"Name of the Redis instance. A random name is generated if omitted."`
Location string `default:"nine-es34" help:"Location where the Redis instance is created."`
RedisVersion storage.RedisVersion `help:"Version specifies the Redis version."`
MemorySize *storage.RedisMemorySize `help:"MemorySize configures Redis to use a specified amount of memory for the data set."`
MemorySize *storage.RedisMemorySize `default:"0" help:"MemorySize configures Redis to use a specified amount of memory for the data set."`
MaxMemoryPolicy storage.RedisMaxMemoryPolicy `help:"MaxMemoryPolicy specifies the exact behavior Redis follows when the maxmemory limit is reached."`
AllowedCIDRs []storage.IPv4CIDR `help:"AllowedCIDRs specify the allowed IP addresses, connecting to the instance."`
Wait bool `default:"true" help:"Wait until Redis is created."`
Expand Down Expand Up @@ -45,7 +45,8 @@ func (cmd *redisCmd) Run(ctx context.Context, client *api.Client) error {
return isAvailable(c), nil
}
return false, nil
}},
},
},
)
}

Expand Down
4 changes: 2 additions & 2 deletions update/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (

type redisCmd struct {
Name string `arg:"" default:"" help:"Name of the Redis instance to update."`
MemorySize *storage.RedisMemorySize `default:"" help:"MemorySize configures Redis to use a specified amount of memory for the data set."`
MaxMemoryPolicy *storage.RedisMaxMemoryPolicy `default:"" help:"MaxMemoryPolicy specifies the exact behavior Redis follows when the maxmemory limit is reached."`
MemorySize *storage.RedisMemorySize `default:"0" help:"MemorySize configures Redis to use a specified amount of memory for the data set."`
MaxMemoryPolicy *storage.RedisMaxMemoryPolicy `help:"MaxMemoryPolicy specifies the exact behavior Redis follows when the maxmemory limit is reached."`
AllowedCIDRs *[]storage.IPv4CIDR `default:"" help:"AllowedCIDRs specify the allowed IP addresses, connecting to the instance."`
}

Expand Down

0 comments on commit 79e4e71

Please sign in to comment.