Add environment schema and secret rendering for application configuration

This commit is contained in:
2025-03-14 11:11:59 +08:00
parent c4a1f3aefd
commit 1993029144
3 changed files with 28 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
import k8s.api.core.v1 as corev1
schema Envs:
"""Env schema"""
envs: {str:str}
envSecretRender = lambda e: Envs {
secret = corev1.Secret {
apiVersion = "v1"
kind = "Secret"
metadata = {
name = "app-sevret"
}
data = e.envs
}
secret
}