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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '09be5c8cac27b3bc049d05aef19dd35849ac980fada6d98f128a586b60b0c37b'
4
- data.tar.gz: 9950d4a8c34efdb1e3d43f96e47e78b39ee8f03721e573593bfbc3d07d2d6257
3
+ metadata.gz: 5a5df97d4d05999e739e9cd960f2ea75d223c3732268bafbe771579f868a12ea
4
+ data.tar.gz: 1c7a808adaec124f5c050fd998cff9e87a8849eec825975f320397753f709eb0
5
5
  SHA512:
6
- metadata.gz: c6ca7851071453fbebd179df6f04904a15a7f8f328bf95b6a640d99fedc97b92afd721efc8c8ea0eb43df7067722ea287bdfb2116f4aa919b2310bb755981faa
7
- data.tar.gz: b9a390d76fea243933febca94d3fe704a0194d0b8d976086210d399bc2f34f4041b4504dfeb7c6b23cf929e7d04cd6286a18047ac97cbd1b9066be89b9c781e5
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>
data/.gitignore CHANGED
@@ -1,7 +1,9 @@
1
1
  *.gem
2
+ .direnv
2
3
  /.bundle/
3
4
  /coverage/
4
5
  /pkg/
5
6
  /tmp/
6
7
  /vendor/bundle
7
- Gemfile.lock
8
+ bin/kwok
9
+ bin/kwokctl