Compare commits

..

3 Commits

Author SHA1 Message Date
Jeff McCune
dbc7e374cd (#178) Update buf 2024-05-23 09:37:46 -07:00
Jeff McCune
d81729857b (#178) v0.81.2 for holos
Use v0.81.2 to build out the holos platform.  Once we have the
components structured fairly well we can circle back around and copy the
components to schematics.  There's a bit of friction regenerating the
platform from schematic each time.
2024-05-23 09:14:27 -07:00
Jeff McCune
d3d8a7b73c (#178) Shape _Namespaces to corev1.#Namespace
Eliminate the need for a for loop by having _Namespaces be a struct of
name to k8s.io/api/core/v1.#Namespace
2024-05-23 09:12:08 -07:00
7 changed files with 17 additions and 22 deletions

View File

@@ -20,7 +20,7 @@
"@angular/router": "^17.3.0",
"@bufbuild/protobuf": "^1.9.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-query": "^1.4.0",
"@connectrpc/connect-query": "^1.4.1",
"@connectrpc/connect-web": "^1.4.0",
"@ngx-formly/core": "^6.3.0",
"@ngx-formly/material": "^6.3.0",
@@ -37,10 +37,10 @@
"@angular-eslint/template-parser": "17.3.0",
"@angular/cli": "^17.3.4",
"@angular/compiler-cli": "^17.3.0",
"@bufbuild/buf": "^1.32.0",
"@bufbuild/buf": "^1.32.1",
"@bufbuild/protoc-gen-es": "^1.9.0",
"@connectrpc/protoc-gen-connect-es": "^1.4.0",
"@connectrpc/protoc-gen-connect-query": "^1.4.0",
"@connectrpc/protoc-gen-connect-query": "^1.4.1",
"@ngx-formly/schematics": "^6.3.0",
"@types/jasmine": "~5.1.0",
"@typescript-eslint/eslint-plugin": "7.2.0",

View File

@@ -23,7 +23,7 @@
"@angular/router": "^17.3.0",
"@bufbuild/protobuf": "^1.9.0",
"@connectrpc/connect": "^1.4.0",
"@connectrpc/connect-query": "^1.4.0",
"@connectrpc/connect-query": "^1.4.1",
"@connectrpc/connect-web": "^1.4.0",
"@ngx-formly/core": "^6.3.0",
"@ngx-formly/material": "^6.3.0",
@@ -40,10 +40,10 @@
"@angular-eslint/template-parser": "17.3.0",
"@angular/cli": "^17.3.4",
"@angular/compiler-cli": "^17.3.0",
"@bufbuild/buf": "^1.32.0",
"@bufbuild/buf": "^1.32.1",
"@bufbuild/protoc-gen-es": "^1.9.0",
"@connectrpc/protoc-gen-connect-es": "^1.4.0",
"@connectrpc/protoc-gen-connect-query": "^1.4.0",
"@connectrpc/protoc-gen-connect-query": "^1.4.1",
"@ngx-formly/schematics": "^6.3.0",
"@types/jasmine": "~5.1.0",
"@typescript-eslint/eslint-plugin": "7.2.0",

View File

@@ -1,16 +1,10 @@
package holos
import corev1 "k8s.io/api/core/v1"
let Objects = {
Name: "{{ .Name }}"
Namespace: "{{ .Namespace }}"
Resources: {
for ns in _Namespaces {
Namespace: "\(ns.name)": corev1.#Namespace
}
}
Resources: Namespace: _Namespaces
}
// Produce a kubernetes objects build plan.

View File

@@ -2,6 +2,8 @@ package holos
import "encoding/yaml"
import v1 "github.com/holos-run/holos/api/v1alpha1"
import corev1 "k8s.io/api/core/v1"
// #Helm represents a holos build plan composed of one or more helm charts.
#Helm: {
@@ -45,6 +47,8 @@ import v1 "github.com/holos-run/holos/api/v1alpha1"
metadata: name: string | *NAME
}
Resources: Namespace: [string]: corev1.#Namespace
// output represents the build plan provided to the holos cli.
Output: v1.#BuildPlan & {
// resources is a map unlike other build plans which use a list.

View File

@@ -1,16 +1,10 @@
package holos
import corev1 "k8s.io/api/core/v1"
let Objects = {
Name: "namespaces"
Namespace: "default"
Resources: {
for ns in _Namespaces {
Namespace: "\(ns.name)": corev1.#Namespace
}
}
Resources: Namespace: _Namespaces
}
// Produce a kubernetes objects build plan.

View File

@@ -5,6 +5,7 @@ import "encoding/json"
import v1 "github.com/holos-run/holos/api/v1alpha1"
import dto "github.com/holos-run/holos/service/gen/holos/object/v1alpha1:object"
import corev1 "k8s.io/api/core/v1"
// _PlatformConfig represents all of the data passed from holos to cue, used to
// carry the platform and project models.
@@ -56,5 +57,7 @@ _Platform: #Platform & {
_Namespaces: #Namespaces
// #Namespaces defines the shape of _Namespaces.
#Namespaces: {
[Name=string]: name: Name
[Name=string]: corev1.#Namespace & {
metadata: name: Name
}
}

View File

@@ -1 +1 @@
1
2