Skip to content
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

prevent panic when cluster does not contain rollout OR deployment for given asset #286

Merged
merged 2 commits into from
Mar 13, 2023

Conversation

nirvanagit
Copy link
Collaborator

No description provided.

return nil, nil
}

func GetMeshPortsForDeployment(clusterName string, destService *k8sV1.Service,
destDeployment *k8sAppsV1.Deployment) map[string]uint32 {
var meshPorts = destDeployment.Spec.Template.Annotations[common.SidecarEnabledPorts]
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nirvanagit , should we add a nil check here on destDeployment?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes absolutely.

Anubhav Aeron added 2 commits March 10, 2023 15:05
… given asset

Signed-off-by: Anubhav Aeron <anubhav_aeron@intuit.com>
Signed-off-by: Anubhav Aeron <anubhav_aeron@intuit.com>
@nirvanagit nirvanagit merged commit ff28f5f into master Mar 13, 2023
@nirvanagit nirvanagit deleted the fix-label-panic branch March 13, 2023 17:31
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.

None yet

2 participants