Skip to content

Fix null canary object#3433

Merged
a-b merged 2 commits intocloudfoundry:mainfrom
Samze:fix_canary_null
Feb 28, 2025
Merged

Fix null canary object#3433
a-b merged 2 commits intocloudfoundry:mainfrom
Samze:fix_canary_null

Conversation

@Samze
Copy link
Copy Markdown
Contributor

@Samze Samze commented Feb 27, 2025

  • Do not send null canary object if no steps have been specified

Note: Please create separate PR for every branch (main, v8 and v7) as needed.

Description of the Change

CAPI validates that options.canary can only be set for strategy canary. See https://github.com/cloudfoundry/cloud_controller_ng/blob/78d93d458dad934ce0f21039f63ddc944fb5e0c9/app/messages/deployment_create_message.rb#L84-L86

* Do not send null canary object if no steps have been specified
Copy link
Copy Markdown
Contributor

@joaopapereira joaopapereira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@a-b a-b merged commit 21b833a into cloudfoundry:main Feb 28, 2025
12 checks passed
This was referenced Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants