feat: Add 10 new scenarios

Added new scenarios:

1. Kubernetes Basics:
  - [TASK] Annotating Kubernetes Resources
  - [TASK] Pod with Init Container
  - [MCQ] Pod Restart Policies
  - [MCQ] kubectl Output Formats

2. Kubernetes Administrator (CKA):
  - [TASK] Configure a PodDisruptionBudget
  - [TASK] Pod Priority and PriorityClass

3. Kubernetes Security (CKS):
  - [TASK] RuntimeClass for Sandboxed Workloads
  - [TASK] Write a Kubernetes Audit Policy
  - [TASK] Restrict Egress to Namespace
  - [TASK] Enforce Non-Root Container

Signed-off-by: Abhinav Sinha <[email protected]>
This commit is contained in:
Abhinav Sinha
2026-05-31 04:20:10 +05:30
parent df52217fc5
commit 356d4ee326
4 changed files with 551 additions and 13 deletions
+2 -2
View File
@@ -104,8 +104,8 @@ function runCommand(cmd, timeoutMs = 15000) {
}
function checkMatch(actual, expected, matchType) {
const a = actual.trim();
const e = expected.trim();
const a = String(actual).trim();
const e = String(expected).trim();
if (matchType === 'exact') return a === e;
if (matchType === 'contains') return a.includes(e);
if (matchType === 'not_contains') return !a.includes(e);