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

fix: chain element 'createpod' doesn't work correctly for interdomain scenarios #356

Merged
merged 2 commits into from
May 12, 2022

Conversation

denis-tingaikin
Copy link
Member

@denis-tingaikin denis-tingaikin commented May 12, 2022

Signed-off-by: Denis Tingaikin denis.tingajkin@xored.com

Motivation

This PR improves createpod chain element.

  1. The element is still prevent creating more then one pod for scale from zero on the local cluster, but its requires to use the same pod name in the template. (Currently we do that https://github.com/networkservicemesh/deployments-k8s/blob/main/examples/features/scale-from-zero/pod-template.yaml#L5. So nothing is changed for this use-case)

  2. The element is able to create a POD on a different NODE, only and only if labels.NodeName is incorrect for the current cluster.

  3. Closes createpod doesn't delete dead pods, spawned by the old createpod instance #165

  4. Simplifies overthinking code.

  5. Covers all scenarious by unit testing via fake k8s client.

2. resolve issue networkservicemesh#165

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@denis-tingaikin denis-tingaikin force-pushed the resolve-issue-165 branch 2 times, most recently from ed7e1d6 to 5e39a48 Compare May 12, 2022 22:11
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
@edwarnicke edwarnicke merged commit cb9e385 into networkservicemesh:main May 12, 2022
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-sriov that referenced this pull request May 12, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-exclude-prefixes-k8s that referenced this pull request May 12, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-registry-k8s that referenced this pull request May 12, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-forwarder-vpp that referenced this pull request May 12, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request May 12, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
nsmbot pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request May 13, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
edwarnicke pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request May 13, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
denis-tingaikin pushed a commit to networkservicemesh/cmd-nse-supplier-k8s that referenced this pull request May 13, 2022
…k-k8s@main

PR link: networkservicemesh/sdk-k8s#356

Commit: cb9e385
Author: Ed Warnicke
Date: 2022-05-12 17:21:21 -0500
Message:
  - Merge pull request #356 from denis-tingaikin/resolve-issue-165
Signed-off-by: NSMBot <nsmbot@networkservicmesh.io>
Signed-off-by: Ed Warnicke <hagbard@gmail.com>
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.

createpod doesn't delete dead pods, spawned by the old createpod instance
2 participants