chore(cli): enable customized env resources by flags#1232
chore(cli): enable customized env resources by flags#1232mergify[bot] merged 5 commits intoaws:masterfrom
Conversation
50aab3d to
9f38240
Compare
Help MenuManual Test
|
| return nil | ||
| } | ||
|
|
||
| func (o *initEnvOpts) validateCustomizedResources() error { |
There was a problem hiding this comment.
nit: validateCustomizedVPC
There was a problem hiding this comment.
I was planning to make it more extendable so that when we have more types of customized resources available, we can add the validation in this function. What do you think?
There was a problem hiding this comment.
yeah, I wasn't sure. I personally like naming things with what they represent now if I'm not certain how it'll evolve. But this is perfectly fine and understandable.
61678de to
dad3aa1
Compare
efekarakus
left a comment
There was a problem hiding this comment.
Looks good! just two more minor comments
| return nil | ||
| } | ||
|
|
||
| func (o *initEnvOpts) validateCustomizedResources() error { |
There was a problem hiding this comment.
yeah, I wasn't sure. I personally like naming things with what they represent now if I'm not certain how it'll evolve. But this is perfectly fine and understandable.
02287ea to
e388750
Compare
| if len(v.PublicSubnetIDs) != 0 { | ||
| return true | ||
| } | ||
| if len(v.PrivateSubnetIDs) != 0 { | ||
| return true | ||
| } | ||
| return false |
There was a problem hiding this comment.
| if len(v.PublicSubnetIDs) != 0 { | |
| return true | |
| } | |
| if len(v.PrivateSubnetIDs) != 0 { | |
| return true | |
| } | |
| return false | |
| return len(v.PublicSubnetIDs) > 0 || len(v.PrivateSubnetIDs) > 0 |
There was a problem hiding this comment.
i'll address all feedbacks in my next one!
| if len(v.PublicSubnetCIDRs) != 0 { | ||
| return true | ||
| } | ||
| if len(v.PrivateSubnetCIDRs) != 0 { | ||
| return true | ||
| } | ||
| return false |
| } | ||
|
|
||
| func (o *initEnvOpts) askEnvProfile() error { | ||
| // TODO: add this behavior to selector pkg. |
Part of #1192. Enable customized env resources by flags. UI change to env init is not included.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.