bitovi / bitovi/bitops

Validate Schema Check

Open
#117 4 comments 0 reactions 0 assignees View on GitHub
enhancement ✨ schema
Dominant language
Python
Stars
37
Forks
9
PR merge metrics
No merged PRs in 30d

Description

## Summary
A validation check is needed for bitops.deploy.yaml (incoming config source).

The validation should be performed for the "incoming config source" against the depoy.schema.yaml

If an error / mismatch is found, it should be reported and execution should cease.

## Example
deploy.schemas.yaml
```
helm:
cli:
options:
kubeconfig:
fetch:
enabled:
type: boolean
default: false
export_env: FETCH_KUBECONFIG
cluster-name:
type: string
export_env: CLUSTER_NAME
```

Where as the Helm/bitops.deploy.yaml uses;
```
helm:
cli:
namespace: bitops
debug: false
atomic: true
options:
release-name: bitops-eks
kubeconfig:
fetch:
enabled: True
cluster-name: bitops-eks
```

As you can see, in the helm deploy.yaml, 'options' is nested under CLI

Contributor guide

Open the contributing guide

Research direction

Start by locating bitops.deploy.yaml and the referenced depoy.schema.yaml or deploy.schemas.yaml, then trace where the incoming configuration is loaded. Add validation that reports schema mismatches and stops execution; completion should be demonstrated with a failing mismatch case and a valid configuration continuing normally.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.