Skip to content

[INFRA] Standardize variable management (issue #15)#3

Closed
kristopherjturner wants to merge 3 commits into
mainfrom
feature/issue-15-variable-standardization
Closed

[INFRA] Standardize variable management (issue #15)#3
kristopherjturner wants to merge 3 commits into
mainfrom
feature/issue-15-variable-standardization

Conversation

@kristopherjturner
Copy link
Copy Markdown
Contributor

Summary

Adds config directory, variables.example.yml, and schema validation as part of the org-wide variable management standardization initiative.

Changes

  • Created \config/\ directory
  • Created \config/variables.example.yml\ documenting azure, azure_local, conversion, and tags sections
  • Updated .gitignore\ to exclude \config/variables.yml\
  • Added \config/schema/variables.schema.json\
  • Added \�alidate-config.yml\ CI workflow

Related

…#15)

- Create config/ directory with variables.example.yml
- Documents common parameters needed across all conversion scripts
- Uses org standard snake_case naming and IIC placeholder values
- Add config/variables.yml to .gitignore

Resolves AzureLocal/azurelocal.github.io#15
Add config/schema/variables.schema.json for validating variables.example.yml.
Add CI workflow that validates example config against schema on PR.

Part of AzureLocal/azurelocal.github.io#15
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Introduces a standardized, repo-local configuration pattern for VM conversion scripts by adding an example variables file, a JSON Schema to validate its structure, and a CI workflow to enforce that validation.

Changes:

  • Added config/variables.example.yml as a centralized reference for commonly reused variables.
  • Added config/schema/variables.schema.json to define/validate the expected config structure.
  • Added a GitHub Actions workflow to validate the example config and updated .gitignore to exclude user-specific config/variables.yml.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
config/variables.example.yml Adds a documented example variables file for users to copy/fill.
config/schema/variables.schema.json Adds a JSON Schema to validate the config structure and required keys.
.gitignore Prevents committing user-specific config/variables.yml.
.github/workflows/validate-config.yml Adds CI validation of the example YAML against the JSON Schema.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

pull_request:
branches: [main]
paths:
- 'config/**'
Comment on lines +42 to +46
run: |
python3 -c "
import yaml, json, sys
from jsonschema import validate, ValidationError

- Create docs/reference/ directory and variables.md
- Full sectioned reference matching config/variables.example.yml
- Sections: azure, azure_local, conversion, tags
- Add naming rules table and script parameter mapping
- Add Reference nav section in mkdocs.yml

Part of: AzureLocal/azurelocal.github.io#15
@kristopherjturner
Copy link
Copy Markdown
Contributor Author

Superseded by #4 which now includes all issue-15 variable standardization changes merged with issue-14 unified standards.

@kristopherjturner kristopherjturner deleted the feature/issue-15-variable-standardization branch March 22, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority/medium Planned solution/vmconvert VM conversion toolkit type/infra CI/CD, workflows, repo config

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants