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

feat(swarm): removed workaround support for mock staging/unstaging #746

Conversation

lukasmetzner
Copy link
Contributor

With the merge of moby/swarmkit#3116 the mock staging/unstaging is not needed anymore. It was introduced in our csi-driver in this commit: 619fa5c. Which is part of a large PR (squashed commit) that included experimental support for Docker swarm.

See:

…cker swarm

With the merge of moby/swarmkit#3116 the mock staging/unstaging is not needed anymore. It was introduced in our csi-driver in this commit: 619fa5c. Which is part of a large PR (squashed commit) that included experimental support for Docker swarm.
@lukasmetzner lukasmetzner requested a review from a team as a code owner October 10, 2024 06:21
@lukasmetzner lukasmetzner linked an issue Oct 10, 2024 that may be closed by this pull request
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.

Project coverage is 34.67%. Comparing base (a132c79) to head (3bb844f).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
internal/driver/node.go 84.61% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #746      +/-   ##
==========================================
+ Coverage   34.54%   34.67%   +0.13%     
==========================================
  Files          19       19              
  Lines        1621     1612       -9     
==========================================
- Hits          560      559       -1     
+ Misses       1027     1020       -7     
+ Partials       34       33       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jooola
Copy link
Member

jooola commented Oct 10, 2024

Is this change backward compatible for previous docker versions?

Do we state somewhere that the docker swarm support is experimental? I could only find a statement that we do not provide official support for it.

@jooola jooola changed the title chore(swarm): Removed intermediate features for mock staging/unstaging refactor(swarm): removed intermediate features for mock staging/unstaging Oct 10, 2024
@jooola jooola changed the title refactor(swarm): removed intermediate features for mock staging/unstaging feat(swarm): removed intermediate features for mock staging/unstaging Oct 10, 2024
@jooola
Copy link
Member

jooola commented Oct 10, 2024

Changed the scope to feat as we have some user facing changes.

@lukasmetzner lukasmetzner marked this pull request as draft October 11, 2024 11:20
@lukasmetzner lukasmetzner self-assigned this Oct 14, 2024
Copy link
Member

@apricote apricote left a comment

Choose a reason for hiding this comment

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

Could you also remove the environment variable from the docker-swarm config.json?

{
"name": "FORCE_STAGING_SUPPORT",
"description": "workaround: force staging support to make Docker 23.0.0 work without https://github.com/moby/swarmkit/pull/3116",
"settable": ["value"],
"value": "true"
}

@apricote
Copy link
Member

Is this change backward compatible for previous docker versions?

This is only compatible with docker-swarm versions that have the fix from moby/swarmkit#3116. Not sure which versions of docker-swarm include that.

Do we state somewhere that the docker swarm support is experimental? I could only find a statement that we do not provide official support for it.

In the docker swarm docs it is mentioned that the support is in beta, though I would say that "beta" is not defined for us. We do not test it and do not publish a version compatibility for docker swarm.

@apricote apricote changed the title feat(swarm): removed intermediate features for mock staging/unstaging feat(swarm): removed workaround support for mock staging/unstaging Oct 18, 2024
Copy link
Member

@apricote apricote left a comment

Choose a reason for hiding this comment

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

Nice cleanup :)

@lukasmetzner lukasmetzner marked this pull request as ready for review October 18, 2024 09:25
@lukasmetzner lukasmetzner merged commit 465ec21 into main Oct 18, 2024
8 checks passed
@lukasmetzner lukasmetzner deleted the 382-docker-swarm-support-remove-mock-stagingunstaging-once-possible branch October 18, 2024 09:28
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.

Docker Swarm support: Remove mock staging/unstaging once possible
3 participants