feat: migrate to python for data validation (#1214)
* feat: migrate to python for data validation Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: address PR comments Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: add unused kwargs to validate functions Signed-off-by: Devin Buhl <devin@buhl.casa> * chore: update renovate pip and ansible regex Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: add bootstrap_nodes test Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: update taskfiles Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
7456164df0
commit
b89b7b3ed9
33 files changed
+340
-537
No files matched your search
@@ -36,6 +36,16 @@
|
||||
"(^|/)kustomization\\.ya?ml(\\.j2)?(\\.j2)?$"
|
||||
]
|
||||
},
|
||||
"pip_requirements": {
|
||||
"fileMatch": [
|
||||
"(^|/)[\\w-]*requirements(-\\w+)?\\.(txt|pip)(\\.j2)?(\\.j2)?$"
|
||||
]
|
||||
},
|
||||
"ansible-galaxy": {
|
||||
"fileMatch": [
|
||||
"(^|/)(galaxy|requirements)(\\.ansible)?\\.ya?ml(\\.j2)?(\\.j2)?$"
|
||||
]
|
||||
},
|
||||
// commit message topics
|
||||
"commitMessageTopic": "{{depName}}",
|
||||
"commitMessageExtra": "to {{newVersion}}",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
ci_test: true
|
||||
skip_tests: true
|
||||
|
||||
bootstrap_distribution: k0s
|
||||
bootstrap_github_username: onedr0p
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
ci_test: true
|
||||
skip_tests: true
|
||||
|
||||
bootstrap_distribution: k3s
|
||||
bootstrap_github_username: onedr0p
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
ci_test: true
|
||||
skip_tests: true
|
||||
|
||||
bootstrap_distribution: k3s
|
||||
bootstrap_github_username: onedr0p
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
ci_test: true
|
||||
skip_tests: true
|
||||
|
||||
bootstrap_distribution: k3s
|
||||
bootstrap_github_username: onedr0p
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
ci_test: true
|
||||
skip_tests: true
|
||||
|
||||
bootstrap_distribution: talos
|
||||
bootstrap_github_username: onedr0p
|
||||
|
||||
+13
-15
@@ -77,7 +77,7 @@ jobs:
|
||||
shell: bash
|
||||
run: brew install go-task
|
||||
|
||||
- name: Install Brew dependencies
|
||||
- name: Run Workstation tasks
|
||||
if: ${{ github.event_name == 'pull_request' && steps.cache-homebrew-packages.outputs.cache-hit != 'true' }}
|
||||
shell: bash
|
||||
run: task workstation:brew
|
||||
@@ -86,15 +86,15 @@ jobs:
|
||||
shell: bash
|
||||
run: direnv allow .
|
||||
|
||||
- name: Initialize Sops Age key
|
||||
- name: Run Sops Age key task
|
||||
shell: bash
|
||||
run: task sops:age-keygen
|
||||
|
||||
- name: Install Ansible dependencies
|
||||
- name: Run setup-virtual-env task
|
||||
shell: bash
|
||||
run: task ansible:deps force=false
|
||||
run: task setup-virtual-env
|
||||
|
||||
- name: Generate bootstrap config file
|
||||
- name: Run init tasks
|
||||
shell: bash
|
||||
run: |
|
||||
task init
|
||||
@@ -109,28 +109,26 @@ jobs:
|
||||
run: |
|
||||
echo "distribution=$(yq '.bootstrap_distribution' ./bootstrap/vars/config.yaml)" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Run configure
|
||||
- name: Run configure task
|
||||
shell: bash
|
||||
run: task configure --yes
|
||||
|
||||
- name: Run Talos configure
|
||||
- name: Run Talos tasks
|
||||
if: ${{ steps.config-env.outputs.distribution == 'talos' }}
|
||||
shell: bash
|
||||
run: |
|
||||
task talos:gensecret --yes
|
||||
task talos:genconfig
|
||||
|
||||
- name: Run Ansible lint
|
||||
- name: Run Ansible tasks
|
||||
if: ${{ steps.config-env.outputs.distribution == 'k3s' || steps.config-env.outputs.distribution == 'k0s' }}
|
||||
shell: bash
|
||||
run: task ansible:lint
|
||||
run: |
|
||||
task ansible:deps force=false
|
||||
task ansible:lint
|
||||
task ansible:list
|
||||
|
||||
- name: List Hosts with Ansible
|
||||
if: ${{ steps.config-env.outputs.distribution == 'k3s' || steps.config-env.outputs.distribution == 'k0s' }}
|
||||
shell: bash
|
||||
run: task ansible:list
|
||||
|
||||
- name: Run repo clean and reset
|
||||
- name: Run repo clean and reset tasks
|
||||
shell: bash
|
||||
run: |
|
||||
task repository:clean
|
||||
|
||||
Reference in new issue
Block a user