Description
Add a k8s.apply operation to apply Kubernetes manifests with support for server-side dry-run. This is needed for the create-network-policy task which compares live resources against desired state using dry-run.
Current bash tasks use patterns like:
kubectl apply -f manifest.yaml
kubectl apply -f manifest.yaml --dry-run=server -o json
Requirements
- Support applying inline YAML/JSON manifests
- Support applying from file path references
- Support server-side dry-run mode for validation without mutation
Example Usage
Apply from file:
- k8s.apply:
file: artifacts/deployment.yaml
Apply with dry-run:
- k8s.apply:
file: artifacts/desired-policy.yaml
dryRun: server
Acceptance Criteria
Description
Add a
k8s.applyoperation to apply Kubernetes manifests with support for server-side dry-run. This is needed for the create-network-policy task which compares live resources against desired state using dry-run.Current bash tasks use patterns like:
kubectl apply -f manifest.yamlkubectl apply -f manifest.yaml --dry-run=server -o jsonRequirements
Example Usage
Apply from file:
Apply with dry-run:
Acceptance Criteria
dryRun: serverfor validation without mutation