Repository navigation
vtctld: stop passing deprecated --cell flag - #874
Open
ChaitanyaD48 wants to merge 1 commit into
Open
ChaitanyaD48 wants to merge 1 commit into
ChaitanyaD48 wants to merge 1 commit into
Conversation
Remove the automatic cell argument before Vitess v26 removes the flag. Verify new Deployments omit it and reconciliation removes it from existing Deployments. Fixes planetscale#866 Signed-off-by: ChaitanyaD48 <chaitanya.d48@gmail.com>
--cell flag
3 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Stop automatically passing
--cellto vtctld so operator-managed deployments can start successfully when Vitess removes the flag in v26.The operator currently generates
--cell=<cell-name>for every vtctld Deployment. The flag is a deprecated no-op in Vitess v25. Once removed, vtctld rejects the argument withunknown flag: --cell, preventing the process from starting and its pod from becoming ready.Fixes #866
Changes
cellfrom the default vtctld argument map inpkg/operator/vtctld/deployment.go.TestDeploymentFlagsto verify that:--cell.--cellfrom existing Deployments, including when the Vitess image remains unchanged.The reconciliation check covers the existing argument-preservation logic: an old
--cellargument must not survive an operator upgrade throughKeepEquivalentArgs.Related Vitess work
This is a companion change to: vitess/#21828
That PR targets Vitess v26 and removes the deprecated legacy HTTP API flags from vtctld and vtcombo:
--cell--proxy-tablets--action-timeout--tablet-health-keep-aliveIt also removes the obsolete
-cellargument from the Docker mini vtctld startup script.The operator automatically generates
--cellfor vtctld; it does not generate the other three flags in that argument builder.Merge and publication order
This operator change should land and be included in the published operator image before the Vitess flag-removal PR merges.
Vitess's
VTop Exampletest runs the PR-builtvitess/lite:primage withplanetscale/vitess-operator:latest. If that operator image still generates--cell, the new vtctld binary fails to start and the test times out waiting for its pod.Merging this source change alone is therefore insufficient: the
latestimage consumed by the test must include it. The Vitess removal itself must also wait untilmaintargets v26.Validation
--cell=zone1.go test -count=1 -timeout 60s ./pkg/operator/vtctldmake unit-testgit diff --checkchecks.