Skip to content

Conversation

klaskosk
Copy link
Collaborator

@klaskosk klaskosk commented Mar 1, 2025

  • Added Create and Delete integration tests for the pod resource.
  • Added an ExecCommand test too for the pod resource. Since we do not have any unit tests for this function (and pod: add unit test for executor #602 to add them is a draft), it will be good to have some assurance it is working.

The latter point is also motivated by a desire to use a FallbackExecutor to enable the websocket executor for Kubernetes 1.30+ (OpenShift 4.17+). This will be a future PR, however.

klaskosk added a commit to klaskosk/eco-goinfra that referenced this pull request Mar 2, 2025
Depends-on: rh-ecosystem-edge#947

Currently, the pod package always uses the SPDY executor for executing
commands. However, in Kubernetes 1.30, the websocket executor graduated
to beta and is now enabled by default. This PR uses the FallbackExecutor
to default to the websocket executor and only fallback to the SPDY
executor if the websocket executor is unavailable.

Notably, the websocket executor should fix the issue of the stdout being
truncated unexpectedly.
klaskosk added a commit to klaskosk/eco-goinfra that referenced this pull request Mar 2, 2025
Depends-on: rh-ecosystem-edge#947

Currently, the pod package always uses the SPDY executor for executing
commands. However, in Kubernetes 1.30, the websocket executor graduated
to beta and is now enabled by default. This PR uses the FallbackExecutor
to default to the websocket executor and only fallback to the SPDY
executor if the websocket executor is unavailable.

Notably, the websocket executor should fix the issue of the stdout being
truncated unexpectedly.
sebrandon1
sebrandon1 previously approved these changes Mar 3, 2025
@klaskosk klaskosk force-pushed the pod-integration-exec branch 2 times, most recently from 7d975ae to 63bf68e Compare March 5, 2025 18:07
klaskosk added a commit to klaskosk/eco-goinfra that referenced this pull request Mar 5, 2025
Depends-on: rh-ecosystem-edge#947

Currently, the pod package always uses the SPDY executor for executing
commands. However, in Kubernetes 1.30, the websocket executor graduated
to beta and is now enabled by default. This PR uses the FallbackExecutor
to default to the websocket executor and only fallback to the SPDY
executor if the websocket executor is unavailable.

Notably, the websocket executor should fix the issue of the stdout being
truncated unexpectedly.
@klaskosk klaskosk force-pushed the pod-integration-exec branch 2 times, most recently from 8fbb1fc to 075c652 Compare April 15, 2025 18:26
@klaskosk klaskosk force-pushed the pod-integration-exec branch from 075c652 to 112ba08 Compare May 10, 2025 18:24
* Added Create and Delete integration tests for the pod resource.
* Added an ExecCommand test too for the pod resource. Since we do not
  have any unit tests for this function (and rh-ecosystem-edge#602 to add them is a
draft), it will be good to have some assurance it is working.

The latter point is also motivated by a desire to use a FallbackExecutor
to enable the websocket executor for Kubernetes 1.30+ (OpenShift 4.17+).
This will be a future PR, however.
@klaskosk klaskosk force-pushed the pod-integration-exec branch from 112ba08 to 5ad1d57 Compare May 10, 2025 19:09
@klaskosk klaskosk merged commit 64d131d into rh-ecosystem-edge:main Jun 8, 2025
6 of 7 checks passed
klaskosk added a commit to klaskosk/eco-goinfra that referenced this pull request Jul 8, 2025
Depends-on: rh-ecosystem-edge#947

Currently, the pod package always uses the SPDY executor for executing
commands. However, in Kubernetes 1.30, the websocket executor graduated
to beta and is now enabled by default. This PR uses the FallbackExecutor
to default to the websocket executor and only fallback to the SPDY
executor if the websocket executor is unavailable.

Notably, the websocket executor should fix the issue of the stdout being
truncated unexpectedly.
klaskosk added a commit to klaskosk/eco-goinfra that referenced this pull request Aug 26, 2025
Depends-on: rh-ecosystem-edge#947

Currently, the pod package always uses the SPDY executor for executing
commands. However, in Kubernetes 1.30, the websocket executor graduated
to beta and is now enabled by default. This PR uses the FallbackExecutor
to default to the websocket executor and only fallback to the SPDY
executor if the websocket executor is unavailable.

Notably, the websocket executor should fix the issue of the stdout being
truncated unexpectedly.
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.

2 participants