Skip to content

Commit 9a53531

Browse files
committed
feat: generate crd
1 parent a1de8de commit 9a53531

7 files changed

+187
-1
lines changed

.envrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_url "https://raw.githubusercontent.com/cachix/devenv/95f329d49a8a5289d31e0982652f7058a189bfca/direnvrc" "sha256-d+8cBpDfDBj41inrADaJt+bDWhOktwslgoP5YiGJ1v0="
2+
3+
use devenv

.gitignore

+9-1
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,12 @@ deploy_key.pub
3333
ssh_known_hosts
3434

3535
# Docs
36-
docs/*
36+
docs/*# Devenv
37+
.devenv*
38+
devenv.local.nix
39+
40+
# direnv
41+
.direnv
42+
43+
# pre-commit
44+
.pre-commit-config.yaml

config/crd/bases/i.4ts.fr_instancedchallenges.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ spec:
3838
exposedPorts:
3939
items:
4040
properties:
41+
description:
42+
type: string
4143
kind:
4244
enum:
4345
- tcp

config/crd/bases/i.4ts.fr_oracleinstancedchallenges.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ spec:
3838
exposedPorts:
3939
items:
4040
properties:
41+
description:
42+
type: string
4143
kind:
4244
enum:
4345
- tcp

devenv.lock

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
{
2+
"nodes": {
3+
"devenv": {
4+
"locked": {
5+
"dir": "src/modules",
6+
"lastModified": 1728037814,
7+
"owner": "cachix",
8+
"repo": "devenv",
9+
"rev": "4549e9ea6b9fe90ee5ea6705f7f82f301f464d6b",
10+
"type": "github"
11+
},
12+
"original": {
13+
"dir": "src/modules",
14+
"owner": "cachix",
15+
"repo": "devenv",
16+
"type": "github"
17+
}
18+
},
19+
"flake-compat": {
20+
"flake": false,
21+
"locked": {
22+
"lastModified": 1696426674,
23+
"owner": "edolstra",
24+
"repo": "flake-compat",
25+
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
26+
"type": "github"
27+
},
28+
"original": {
29+
"owner": "edolstra",
30+
"repo": "flake-compat",
31+
"type": "github"
32+
}
33+
},
34+
"gitignore": {
35+
"inputs": {
36+
"nixpkgs": [
37+
"pre-commit-hooks",
38+
"nixpkgs"
39+
]
40+
},
41+
"locked": {
42+
"lastModified": 1709087332,
43+
"owner": "hercules-ci",
44+
"repo": "gitignore.nix",
45+
"rev": "637db329424fd7e46cf4185293b9cc8c88c95394",
46+
"type": "github"
47+
},
48+
"original": {
49+
"owner": "hercules-ci",
50+
"repo": "gitignore.nix",
51+
"type": "github"
52+
}
53+
},
54+
"nixpkgs": {
55+
"locked": {
56+
"lastModified": 1716977621,
57+
"owner": "cachix",
58+
"repo": "devenv-nixpkgs",
59+
"rev": "4267e705586473d3e5c8d50299e71503f16a6fb6",
60+
"type": "github"
61+
},
62+
"original": {
63+
"owner": "cachix",
64+
"ref": "rolling",
65+
"repo": "devenv-nixpkgs",
66+
"type": "github"
67+
}
68+
},
69+
"nixpkgs-stable": {
70+
"locked": {
71+
"lastModified": 1727907660,
72+
"owner": "NixOS",
73+
"repo": "nixpkgs",
74+
"rev": "5966581aa04be7eff830b9e1457d56dc70a0b798",
75+
"type": "github"
76+
},
77+
"original": {
78+
"owner": "NixOS",
79+
"ref": "nixos-24.05",
80+
"repo": "nixpkgs",
81+
"type": "github"
82+
}
83+
},
84+
"pre-commit-hooks": {
85+
"inputs": {
86+
"flake-compat": "flake-compat",
87+
"gitignore": "gitignore",
88+
"nixpkgs": [
89+
"nixpkgs"
90+
],
91+
"nixpkgs-stable": "nixpkgs-stable"
92+
},
93+
"locked": {
94+
"lastModified": 1727854478,
95+
"owner": "cachix",
96+
"repo": "pre-commit-hooks.nix",
97+
"rev": "5f58871c9657b5fc0a7f65670fe2ba99c26c1d79",
98+
"type": "github"
99+
},
100+
"original": {
101+
"owner": "cachix",
102+
"repo": "pre-commit-hooks.nix",
103+
"type": "github"
104+
}
105+
},
106+
"root": {
107+
"inputs": {
108+
"devenv": "devenv",
109+
"nixpkgs": "nixpkgs",
110+
"pre-commit-hooks": "pre-commit-hooks"
111+
}
112+
}
113+
},
114+
"root": "root",
115+
"version": 7
116+
}

devenv.nix

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{ pkgs, lib, config, inputs, ... }:
2+
3+
{
4+
# https://devenv.sh/basics/
5+
env.GREET = "devenv";
6+
7+
# https://devenv.sh/packages/
8+
packages = [ pkgs.git ];
9+
10+
# https://devenv.sh/languages/
11+
languages.go.enable = true;
12+
languages.go.package = pkgs.go_1_21;
13+
14+
# https://devenv.sh/scripts/
15+
scripts.hello.exec = ''
16+
echo hello from $GREET
17+
'';
18+
19+
enterShell = ''
20+
hello
21+
git --version
22+
'';
23+
24+
# https://devenv.sh/tasks/
25+
# tasks = {
26+
# "myproj:setup".exec = "mytool build";
27+
# "devenv:enterShell".after = [ "myproj:setup" ];
28+
# };
29+
30+
# https://devenv.sh/tests/
31+
enterTest = ''
32+
echo "Running tests"
33+
git --version | grep --color=auto "${pkgs.git.version}"
34+
'';
35+
36+
# https://devenv.sh/pre-commit-hooks/
37+
# pre-commit.hooks.shellcheck.enable = true;
38+
39+
# See full reference at https://devenv.sh/reference/options/
40+
}

devenv.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
2+
inputs:
3+
nixpkgs:
4+
url: github:cachix/devenv-nixpkgs/rolling
5+
6+
# If you're using non-OSS software, you can set allowUnfree to true.
7+
# allowUnfree: true
8+
9+
# If you're willing to use a package that's vulnerable
10+
# permittedInsecurePackages:
11+
# - "openssl-1.1.1w"
12+
13+
# If you have more than one devenv you can merge them
14+
#imports:
15+
# - ./backend

0 commit comments

Comments
 (0)