815_krknPR_about_disk_failure_simulation #164
Open
10sharmashivam wants to merge 1 commit intokrkn-chaos:mainfrom
Open
815_krknPR_about_disk_failure_simulation #16410sharmashivam wants to merge 1 commit intokrkn-chaos:mainfrom
10sharmashivam wants to merge 1 commit intokrkn-chaos:mainfrom
Conversation
Add simulate_disk_failure method to KrknKubernetes class to support disk failure chaos scenarios. This implementation uses Kubernetes-native approaches instead of direct oc debug commands, making it more portable across different Kubernetes distributions. Signed-off-by: 10sharmashivam <[email protected]>
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
This PR adds disk failure simulation functionality to krkn-lib, which will be used by the main krkn repository for disk failure chaos scenarios. The implementation uses Kubernetes-native approaches instead of direct
oc debugcommands.Context
This PR addresses the following comment from the main krkn repository: PR
The original implementation used OpenShift-specific
oc debugcommands, which limited the functionality to OpenShift clusters only. This PR moves the functionality to krkn-lib and implements it using pure Kubernetes-native approaches.Why a new PR in krkn-lib?
Architectural Decision: krkn-lib is designed to contain shared functionality that works across different Kubernetes distributions. Moving the disk failure simulation here follows this architectural pattern.
Distribution Agnostic: The current implementation in krkn uses OpenShift-specific commands (
oc debug). Moving this to krkn-lib and using Kubernetes-native approaches makes it work across all Kubernetes distributions.Code Reusability: This functionality can be reused by other components or projects that use krkn-lib.
Changes
simulate_disk_failuremethod toKrknKubernetesclassoc debugcommands with Kubernetes-native approaches:Related Issues and PR
PR 815
Issues 1 & 2