kube_schema 0.1.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/convert-schemas.yml +35 -0
- data/.github/workflows/update-crds-catalog.yml +35 -0
- data/.github/workflows/update-schema-index.yml +32 -0
- data/.github/workflows/update-schemas.yml +35 -0
- data/.gitignore +3 -1
- data/.rubocop.yml +6017 -0
- data/AGENTS.md +1 -0
- data/Gemfile.lock +88 -0
- data/README.md +31 -10
- data/Rakefile +3 -7
- data/bin/console +1 -1
- data/bin/increment-version +4 -5
- data/bin/release-gem +2 -2
- data/bin/tag-version +2 -2
- data/bin/test +2 -4
- data/bin/update-schema-index +34 -0
- data/kube_schema.gemspec +7 -3
- data/lib/kube/schema/instance.rb +57 -0
- data/lib/kube/schema/resource.rb +60 -0
- data/lib/kube/schema/schema_cache.rb +102 -0
- data/lib/kube/schema/schema_index.rb +29 -0
- data/lib/kube/schema/version.rb +7 -0
- data/lib/kube/schema/version.rb.erb +7 -0
- data/lib/kube/schema.rb +76 -0
- metadata +61 -10
- data/LICENSE +0 -201
- data/flake.lock +0 -61
- data/kube_schema.gemspec.erb +0 -34
- data/lib/kube_schema/version.rb +0 -5
- data/lib/kube_schema/version.rb.erb +0 -5
- data/lib/kube_schema.rb +0 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5a5df97d4d05999e739e9cd960f2ea75d223c3732268bafbe771579f868a12ea
|
|
4
|
+
data.tar.gz: 1c7a808adaec124f5c050fd998cff9e87a8849eec825975f320397753f709eb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 932146593a565fa38b64b0ecab7952882070764acf0dd250a1ad44e5af0ea58d41212800bdbfb73b6b041260dd083909d63039469b32d653629d1746aec0d392
|
|
7
|
+
data.tar.gz: 5c6cf9722210d5bc35b40998bd65826f539f5f6ca1a82d5fbacea24bb6004dc968773b03693a52da2c67c7a6b8b35e4433a81f59bbb78e2d7af20bf7a25c87a2
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Convert Kubernetes Schemas
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
# “At 10:10 on every 2nd day-of-month.”
|
|
7
|
+
- cron: "10 10 */2 * *"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
convert:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: checkout
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
ref: schemas
|
|
17
|
+
|
|
18
|
+
- uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
ruby-version: '3.3'
|
|
21
|
+
bundler-cache: true
|
|
22
|
+
|
|
23
|
+
- name: bundle install
|
|
24
|
+
run: bundle install
|
|
25
|
+
|
|
26
|
+
- name: convert-the-schemas-bro
|
|
27
|
+
run: bin/convert-schemas
|
|
28
|
+
|
|
29
|
+
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
30
|
+
with:
|
|
31
|
+
branch: schemas
|
|
32
|
+
commit_message: "Workflow Run: convert-schemas.yml"
|
|
33
|
+
commit_user_name: Nathan K
|
|
34
|
+
commit_user_email: nathankidd@hey.com
|
|
35
|
+
commit_author: Nathan K <nathankidd@hey.com>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Update CRD Schemas
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
# “At 10:10 on every 2nd day-of-month.”
|
|
7
|
+
- cron: "10 10 */2 * *"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
update:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: checkout schemas branch
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
ref: schemas
|
|
17
|
+
|
|
18
|
+
- name: download crds-catalog index
|
|
19
|
+
run: curl -fsSL -o crds-catalog.yaml https://raw.githubusercontent.com/datreeio/CRDs-catalog/refs/heads/main/index.yaml
|
|
20
|
+
|
|
21
|
+
- uses: ruby/setup-ruby@v1
|
|
22
|
+
with:
|
|
23
|
+
ruby-version: '3.3'
|
|
24
|
+
bundler-cache: true
|
|
25
|
+
|
|
26
|
+
- name: download the crds from catalog
|
|
27
|
+
run: "bin/update-crds"
|
|
28
|
+
|
|
29
|
+
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
30
|
+
with:
|
|
31
|
+
branch: schemas
|
|
32
|
+
commit_message: "Update crds-catalog.yaml"
|
|
33
|
+
commit_user_name: Nathan K
|
|
34
|
+
commit_user_email: nathankidd@hey.com
|
|
35
|
+
commit_author: Nathan K <nathankidd@hey.com>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Update Schema Index
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
# "At 10:30 on every 2nd day-of-month." (after update-schemas)
|
|
7
|
+
- cron: "30 10 */2 * *"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
update-index:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout current branch
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
|
|
16
|
+
- uses: ruby/setup-ruby@v1
|
|
17
|
+
with:
|
|
18
|
+
ruby-version: '3.3'
|
|
19
|
+
|
|
20
|
+
- name: Build schema index
|
|
21
|
+
run: |
|
|
22
|
+
git fetch origin schemas --depth=1
|
|
23
|
+
bin/update-schema-index
|
|
24
|
+
|
|
25
|
+
- name: Commit schema index
|
|
26
|
+
uses: stefanzweifel/git-auto-commit-action@v5
|
|
27
|
+
with:
|
|
28
|
+
commit_message: "Workflow Run: update-schema-index.yml"
|
|
29
|
+
commit_user_name: Nathan K
|
|
30
|
+
commit_user_email: nathankidd@hey.com
|
|
31
|
+
commit_author: Nathan K <nathankidd@hey.com>
|
|
32
|
+
file_pattern: "data/*.txt"
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
name: Update Kubernetes Schemas
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
schedule:
|
|
6
|
+
# “At 10:10 on every 2nd day-of-month.”
|
|
7
|
+
- cron: "10 10 */2 * *"
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
update:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
steps:
|
|
13
|
+
- name: checkout
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
|
+
with:
|
|
16
|
+
ref: schemas
|
|
17
|
+
|
|
18
|
+
- uses: ruby/setup-ruby@v1
|
|
19
|
+
with:
|
|
20
|
+
ruby-version: '3.3'
|
|
21
|
+
bundler-cache: true
|
|
22
|
+
|
|
23
|
+
- name: bundle install
|
|
24
|
+
run: bundle install
|
|
25
|
+
|
|
26
|
+
- name: update-the-schemas-bro
|
|
27
|
+
run: bin/update-schemas
|
|
28
|
+
|
|
29
|
+
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
30
|
+
with:
|
|
31
|
+
branch: schemas
|
|
32
|
+
commit_message: "Workflow Run: update-schemas.yml"
|
|
33
|
+
commit_user_name: Nathan K
|
|
34
|
+
commit_user_email: nathankidd@hey.com
|
|
35
|
+
commit_author: Nathan K <nathankidd@hey.com>
|