Xe's Kubernetes custom resources
0

Configure Feed

Select the types of activity you want to include in your feed.

feat(postgres): specify runtime class name

Signed-off-by: Xe Iaso <me@xeiaso.net>

+11 -4
+1 -1
db/postgres/example.yaml
··· 5 5 6 6 spec: 7 7 storage: 8 - size: 5Gi 8 + size: 5Gi
+2 -1
db/postgres/v1/flight/main.go
··· 85 85 Annotations: map[string]string{}, 86 86 }, 87 87 Spec: appsv1.DeploymentSpec{ 88 - Replicas: &[]int32{1}[0], 88 + Replicas: new(int32(1)), 89 89 Strategy: appsv1.DeploymentStrategy{ 90 90 Type: appsv1.RollingUpdateDeploymentStrategyType, 91 91 }, ··· 93 93 Template: corev1.PodTemplateSpec{ 94 94 ObjectMeta: metav1.ObjectMeta{Labels: backend.Labels}, 95 95 Spec: corev1.PodSpec{ 96 + RuntimeClassName: backend.Spec.RuntimeClass, 96 97 SecurityContext: &corev1.PodSecurityContext{ 97 98 FSGroup: ptr.To[int64](70), 98 99 },
+3 -2
db/postgres/v1/postgres.go
··· 25 25 Env []internal.EnvVar `json:"env,omitempty" yaml:"env,omitempty"` 26 26 Healthcheck bool `json:"healthcheck,omitempty" yaml:"healthcheck,omitempty"` 27 27 28 - Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"` 29 - Secrets []Secret `json:"secrets,omitempty" yaml:"secrets,omitempty"` 28 + Storage Storage `json:"storage,omitempty" yaml:"storage,omitempty"` 29 + RuntimeClass *string `json:"runtimeClass,omitempty"` 30 + Secrets []Secret `json:"secrets,omitempty" yaml:"secrets,omitempty"` 30 31 } 31 32 32 33 type Secret struct {
+5
db/postgres/yeetfile.js
··· 1 1 $`GOOS=wasip1 GOARCH=wasm go build -o postgres.wasm ./v1/flight`; 2 2 $`GOOS=wasip1 GOARCH=wasm go build -o postgres-airway.wasm ./v1/airway`; 3 3 4 + yeet.setenv("AWS_PROFILE", "tigris"); 5 + 6 + $`aws s3 cp ./postgres.wasm s3://xedn/crds/db/postgres/flight-${git.tag()}.wasm`; 7 + $`aws s3 cp ./postgres-airway.wasm s3://xedn/crds/db/postgres/airway-${git.tag()}.wasm`; 8 + 4 9 $`go tool yoke stow ./postgres.wasm oci://registry.int.xeserv.us/crds/db/postgres/flight:v${git.tag()}`; 5 10 $`go tool yoke stow ./postgres-airway.wasm oci://registry.int.xeserv.us/crds/db/postgres/airway:v${git.tag()}`; 6 11