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

Support DEl on non-existent Azure endpoint #634

Merged

Conversation

caseydavenport
Copy link
Member

Description

When asked to release an IP for an AzureEndpoint which does not exist, simply return success.

This is modeled after how the Azure plugin handles this case: https://github.com/Azure/azure-container-networking/blob/master/cni/network/network.go#L609-L615

There is a case where the kubelet starts a pod before the CNI plugin can successfully network it. In this case, we'll get a DEL call for a container that does not have an IP assigned, and we need to return successfully.

It's expected CNI plugins will return successfully on DEL calls for things that do not exist.

Todos

  • Tests
  • Documentation
  • Release note

Release Note

None required

@caseydavenport caseydavenport changed the title Support DEl on non-existant Azure endpoint Support DEl on non-existent Azure endpoint Nov 6, 2018
@caseydavenport caseydavenport merged commit ebf86ed into projectcalico:master Nov 6, 2018
@caseydavenport caseydavenport deleted the azure-ipam-support branch November 6, 2018 22:30
Copy link
Member

@fasaxc fasaxc left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants