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

[maistra-2.4] OSSM-3647: Add feature flag APPLY_WASM_PLUGINS_TO_INBOUND_ONLY #877

Merged
merged 1 commit into from Oct 27, 2023

Conversation

jewertow
Copy link
Member

@jewertow jewertow commented Oct 26, 2023

This is a follow-up to #876, but adjusted to the newer WasmPlugin API.

In v2.4, APPLY_WASM_PLUGINS_TO_INBOUND_ONLY will be ignored when WasmPlugin has specified spec.match. Otherwise, users would not be able to migrate to the old API.

The only purpose of this flag is enabling safe migration from v2.2 to v2.3 and v2.4. Let's say, I have maistra-2.2 deployed and I use ServiceMeshExtensions with 3scale plugin. This is a step-by-step instruction for safe migration to maistra-2.4:

  1. Create WasmPlugins, delete ServiceMeshExtensions and set APPLY_WASM_PLUGINS_TO_INBOUND_ONLY in pilot container, which will ignore the flag at this step.
  2. Upgrade control plane to v2.3. APPLY_WASM_PLUGINS_TO_INBOUND_ONLY is respected by pilot and WASM plugins do not apply to outbound listeners, so there is no outage in apps with 3scale plugin.
  3. Upgrade to v2.4. APPLY_WASM_PLUGINS_TO_INBOUND_ONLY is still respected, so spec.match can be added to WasmPlugin objects.
  4. When all WasmPlugins use spec.match[].mode: SERVER, APPLY_WASM_PLUGINS_TO_INBOUND_ONLY can be removed from pilot container.

Signed-off-by: Jacek Ewertowski <jewertow@redhat.com>
@jewertow jewertow requested a review from luksa October 26, 2023 21:33
@openshift-ci openshift-ci bot added the size/L label Oct 26, 2023
@jewertow jewertow changed the title [maistra-2.4] OSSM-3647: Add feature flag APPLY_WASM_PLUGINS_TO_INBOUND_ONLY [maistra-2.4] OSSM-3647: Add feature flag APPLY_WASM_PLUGINS_TO_INBOUND_ONLY Oct 26, 2023
@jewertow
Copy link
Member Author

/retest

@jewertow
Copy link
Member Author

/retest

@jewertow
Copy link
Member Author

/retest

@openshift-ci openshift-ci bot merged commit 7644614 into maistra:maistra-2.4 Oct 27, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants