-
Notifications
You must be signed in to change notification settings - Fork 946
[v8] Add lifecycle flag to buildpacks related commands #3496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v8
Are you sure you want to change the base?
Conversation
3706ee6
to
4cc0e56
Compare
72e5374
to
d9b37fc
Compare
d9b37fc
to
9a4496f
Compare
queries := []ccv3.Query{ccv3.Query{Key: ccv3.OrderBy, Values: []string{ccv3.PositionOrder}}} | ||
if labelSelector != "" { | ||
queries = append(queries, ccv3.Query{Key: ccv3.LabelSelectorFilter, Values: []string{labelSelector}}) | ||
} | ||
|
||
if lifecycle != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question What happens when specifying this flag against an older CAPI without cloudfoundry/cloud_controller_ng#3898 ? Ideally it should fail gracefully. We may need a guard like https://github.com/cloudfoundry/cli/blob/main/command/v7/push_command.go#L583
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left it at the next patch version for now, will adjust if needed when the version is released
Note This PR should not be merged before cloudfoundry/cloud_controller_ng#3898 is merged and in a CAPI release |
Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
- This will allow capi to update the default order independently of the cli in the future Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
7a325b3
to
9f2ae06
Compare
732f08a
to
2c290de
Compare
Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
Signed-off-by: Tom Kennedy <tom.kennedy@broadcom.com>
2c290de
to
0896070
Compare
Description of the Change
This adds the a lifecycle flag to cf buildpacks and cf create-buildpack to support cnb. This makes use of the changes in cloudfoundry/cloud_controller_ng#3898.
Why Is This PR Valuable?
Without this change there is no way to create buildpacks with non default lifecycles
Applicable Issues
List any applicable GitHub Issues here
How Urgent Is The Change?
This change should be merged right after cloudfoundry/cloud_controller_ng#3898 to allow folks to use that feature.
Other Relevant Parties
Who else is affected by the change?