Skip to content

Commit cca6332

Browse files
committed
add more CRDS
Signed-off-by: Sebastian Hoß <[email protected]>
1 parent 7af0868 commit cca6332

39 files changed

+15522
-33
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Release slinky_slurm_net
5+
on:
6+
schedule:
7+
- cron: 41 17 * * SUN
8+
workflow_dispatch:
9+
jobs:
10+
release:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- id: checkout
14+
name: Checkout
15+
uses: actions/checkout@v4
16+
- id: commits
17+
name: Count Commits
18+
run: echo "count=$(git rev-list --count HEAD --since='last Sunday' -- custom-resources/slinky_slurm_net)" >> $GITHUB_OUTPUT
19+
- id: release
20+
name: Create Release Version
21+
if: steps.commits.outputs.count > 0
22+
run: echo "version=1.$(date --utc +'%Y%m%d').$(date --utc +'%-H%M%S')" >> $GITHUB_OUTPUT
23+
- name: Set up Rust
24+
if: steps.commits.outputs.count > 0
25+
uses: dtolnay/rust-toolchain@stable
26+
- name: Install cargo-workspaces
27+
uses: taiki-e/install-action@v2
28+
with:
29+
tool: cargo-edit
30+
- name: Cargo Version
31+
if: steps.commits.outputs.count > 0
32+
run: cargo set-version --package kcr_slinky_slurm_net ${{ steps.release.outputs.version }}
33+
- name: Publish to crates.io
34+
if: steps.commits.outputs.count > 0
35+
run: >
36+
cargo publish
37+
--allow-dirty
38+
--token ${{ secrets.CRATES_IO_TOKEN }}
39+
--package kcr_slinky_slurm_net
40+
--jobs 1
41+
--no-verify
42+
env:
43+
RUSTFLAGS: "-A warnings"
44+
- id: mail
45+
name: Send Mail
46+
if: steps.commits.outputs.count > 0
47+
uses: dawidd6/action-send-mail@v4
48+
with:
49+
server_address: ${{ secrets.MAIL_SERVER }}
50+
server_port: ${{ secrets.MAIL_PORT }}
51+
username: ${{ secrets.MAIL_USERNAME }}
52+
password: ${{ secrets.MAIL_PASSWORD }}
53+
subject: ${{ github.event.repository.name }}/slinky_slurm_net version ${{ steps.release.outputs.version }} published
54+
body: See ${{ steps.create_release.outputs.url }} for details.
55+
to: ${{ secrets.MAIL_RECIPIENT }}
56+
from: ${{ secrets.MAIL_SENDER }}
57+
- id: matrix
58+
name: Send Matrix Message
59+
if: steps.commits.outputs.count > 0
60+
uses: s3krit/[email protected]
61+
with:
62+
room_id: ${{ secrets.MATRIX_ROOM_ID }}
63+
access_token: ${{ secrets.MATRIX_ACCESS_TOKEN }}
64+
message: ${{ github.event.repository.name }}/slinky_slurm_net version [${{ steps.release.outputs.version }}](${{ steps.create_release.outputs.url }}) published
65+
server: ${{ secrets.MATRIX_SERVER }}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-FileCopyrightText: The kube-custom-resources-rs Authors
2+
# SPDX-License-Identifier: 0BSD
3+
4+
name: Verify slinky_slurm_net
5+
on:
6+
pull_request:
7+
branches: [ main ]
8+
paths:
9+
- custom-resources/slinky_slurm_net/**
10+
- .github/workflows/verify-slinky_slurm_net.yml
11+
jobs:
12+
verify:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
- name: Set up Rust
18+
uses: dtolnay/rust-toolchain@stable
19+
- name: Cache Dependencies
20+
uses: Swatinem/rust-cache@v2
21+
- name: Check changed CRDs
22+
run: cargo check --lib --package kcr_slinky_slurm_net --locked
23+
env:
24+
RUSTFLAGS: "--deny warnings"
25+
K8S_OPENAPI_ENABLED_VERSION: "1.31"
26+
- name: Try-run Cargo Version Update
27+
run: sed -i -e '0,/edition/s/^version = .*/version = "1.2.3"/' custom-resources/slinky_slurm_net/Cargo.toml
28+
- name: Print modified Cargo.toml
29+
run: cat custom-resources/slinky_slurm_net/Cargo.toml
30+
- name: Set up Rust nightly
31+
uses: dtolnay/rust-toolchain@nightly
32+
- name: Set up docs.rs environment
33+
uses: dtolnay/install@cargo-docs-rs
34+
- name: Verify docs can be generated
35+
run: cargo +nightly docs-rs --package kcr_slinky_slurm_net

.reuse/dep5

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,8 @@ Files: crd-catalog/gpu-ninja/dex-operator/*
575575
Copyright: The gpu-ninja/dex-operator Authors
576576
License: Apache-2.0
577577

578-
Files: crd-catalog/grafana-operator/grafana-operator/*
579-
Copyright: The grafana-operator/grafana-operator Authors
578+
Files: crd-catalog/grafana/grafana-operator/*
579+
Copyright: The grafana/grafana-operator Authors
580580
License: Apache-2.0
581581

582582
Files: crd-catalog/grafana/k6-operator/*
@@ -1179,6 +1179,10 @@ Files: crd-catalog/sigstore/sigstore-helm-operator/*
11791179
Copyright: The sigstore/sigstore-helm-operator Authors
11801180
License: Apache-2.0
11811181

1182+
Files: crd-catalog/SlinkyProject/slurm-operator/*
1183+
Copyright: The SlinkyProject/slurm-operator Authors
1184+
License: Apache-2.0
1185+
11821186
Files: crd-catalog/slok/sloth/*
11831187
Copyright: The slok/sloth Authors
11841188
License: Apache-2.0

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ members = [
344344
"custom-resources/serving_kubedl_io",
345345
"custom-resources/sfn_services_k8s_aws",
346346
"custom-resources/site_superedge_io",
347+
"custom-resources/slinky_slurm_net",
347348
"custom-resources/slo_koordinator_sh",
348349
"custom-resources/sloth_slok_dev",
349350
"custom-resources/snapscheduler_backube",

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ The following groups are available:
384384
- [serving.kubedl.io](https://crates.io/crates/kcr_serving_kubedl_io)
385385
- [sfn.services.k8s.aws](https://crates.io/crates/kcr_sfn_services_k8s_aws)
386386
- [site.superedge.io](https://crates.io/crates/kcr_site_superedge_io)
387+
- [slinky.slurm.net](https://crates.io/crates/kcr_slinky_slurm_net)
387388
- [slo.koordinator.sh](https://crates.io/crates/kcr_slo_koordinator_sh)
388389
- [sloth.slok.dev](https://crates.io/crates/kcr_sloth_slok_dev)
389390
- [snapscheduler.backube](https://crates.io/crates/kcr_snapscheduler_backube)

code-generator/src/catalog.rs

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,13 +1599,20 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
15991599
ignores: &[],
16001600
},
16011601
UpstreamSource {
1602-
project_name: "grafana-operator/grafana-operator",
1602+
project_name: "grafana/grafana-operator",
16031603
license: APACHE_V2,
16041604
urls: &[
1605-
"https://github.com/grafana-operator/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanadashboards.yaml",
1606-
"https://github.com/grafana-operator/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanadatasources.yaml",
1607-
"https://github.com/grafana-operator/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanafolders.yaml",
1608-
"https://github.com/grafana-operator/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanas.yaml",
1605+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanaalertrulegroups.yaml",
1606+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanacontactpoints.yaml",
1607+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanadashboards.yaml",
1608+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanadatasources.yaml",
1609+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanafolders.yaml",
1610+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanalibrarypanels.yaml",
1611+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanamutetimings.yaml",
1612+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafananotificationpolicies.yaml",
1613+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafananotificationpolicyroutes.yaml",
1614+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafananotificationtemplates.yaml",
1615+
"https://github.com/grafana/grafana-operator/blob/master/config/crd/bases/grafana.integreatly.org_grafanas.yaml",
16091616
],
16101617
ignores: &[],
16111618
},
@@ -3250,6 +3257,15 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
32503257
],
32513258
ignores: &[],
32523259
},
3260+
UpstreamSource {
3261+
project_name: "SlinkyProject/slurm-operator",
3262+
license: APACHE_V2,
3263+
urls: &[
3264+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_clusters.yaml",
3265+
"https://github.com/SlinkyProject/slurm-operator/blob/main/config/crd/bases/slinky.slurm.net_nodesets.yaml",
3266+
],
3267+
ignores: &[],
3268+
},
32533269
UpstreamSource {
32543270
project_name: "slok/sloth",
32553271
license: APACHE_V2,
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
apiVersion: "apiextensions.k8s.io/v1"
2+
kind: "CustomResourceDefinition"
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: "v0.16.4"
6+
name: "clusters.slinky.slurm.net"
7+
spec:
8+
group: "slinky.slurm.net"
9+
names:
10+
kind: "Cluster"
11+
listKind: "ClusterList"
12+
plural: "clusters"
13+
singular: "cluster"
14+
scope: "Namespaced"
15+
versions:
16+
- additionalPrinterColumns:
17+
- jsonPath: ".status.isReady"
18+
name: "READY"
19+
type: "string"
20+
- jsonPath: ".metadata.creationTimestamp"
21+
name: "AGE"
22+
type: "date"
23+
name: "v1alpha1"
24+
schema:
25+
openAPIV3Schema:
26+
description: "Cluster is the Schema for the clusters API"
27+
properties:
28+
apiVersion:
29+
description: "APIVersion defines the versioned schema of this representation of an object.\nServers should convert recognized schemas to the latest internal value, and\nmay reject unrecognized values.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources"
30+
type: "string"
31+
kind:
32+
description: "Kind is a string value representing the REST resource this object represents.\nServers may infer this from the endpoint the client submits requests to.\nCannot be updated.\nIn CamelCase.\nMore info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"
33+
type: "string"
34+
metadata:
35+
type: "object"
36+
spec:
37+
description: "ClusterSpec defines the desired state of Cluster"
38+
properties:
39+
server:
40+
description: "server defines the address to a slurmrestd."
41+
type: "string"
42+
token:
43+
description: "token represents the authentication token to the server."
44+
properties:
45+
secretRef:
46+
description: "secretRef defines a secret to read the valid auth token to the cluster."
47+
type: "string"
48+
required:
49+
- "secretRef"
50+
type: "object"
51+
required:
52+
- "server"
53+
- "token"
54+
type: "object"
55+
status:
56+
description: "ClusterStatus defines the observed state of Cluster"
57+
properties:
58+
conditions:
59+
description: "Represents the latest available observations of a Cluster's current state."
60+
items:
61+
description: "Condition contains details for one aspect of the current state of this API Resource."
62+
properties:
63+
lastTransitionTime:
64+
description: "lastTransitionTime is the last time the condition transitioned from one status to another.\nThis should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable."
65+
format: "date-time"
66+
type: "string"
67+
message:
68+
description: "message is a human readable message indicating details about the transition.\nThis may be an empty string."
69+
maxLength: 32768
70+
type: "string"
71+
observedGeneration:
72+
description: "observedGeneration represents the .metadata.generation that the condition was set based upon.\nFor instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date\nwith respect to the current state of the instance."
73+
format: "int64"
74+
minimum: 0.0
75+
type: "integer"
76+
reason:
77+
description: "reason contains a programmatic identifier indicating the reason for the condition's last transition.\nProducers of specific condition types may define expected values and meanings for this field,\nand whether the values are considered a guaranteed API.\nThe value should be a CamelCase string.\nThis field may not be empty."
78+
maxLength: 1024
79+
minLength: 1
80+
pattern: "^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$"
81+
type: "string"
82+
status:
83+
description: "status of the condition, one of True, False, Unknown."
84+
enum:
85+
- "True"
86+
- "False"
87+
- "Unknown"
88+
type: "string"
89+
type:
90+
description: "type of condition in CamelCase or in foo.example.com/CamelCase."
91+
maxLength: 316
92+
pattern: "^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$"
93+
type: "string"
94+
required:
95+
- "lastTransitionTime"
96+
- "message"
97+
- "reason"
98+
- "status"
99+
- "type"
100+
type: "object"
101+
type: "array"
102+
x-kubernetes-list-map-keys:
103+
- "type"
104+
x-kubernetes-list-type: "map"
105+
isReady:
106+
description: "Represents if the Cluster was successfully registered and communication\nwas established."
107+
type: "boolean"
108+
type: "object"
109+
type: "object"
110+
served: true
111+
storage: true
112+
subresources:
113+
status: {}

0 commit comments

Comments
 (0)