Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render platform succeeds when it should fail #384

Open
jeffmccune opened this issue Dec 19, 2024 · 0 comments
Open

Render platform succeeds when it should fail #384

jeffmccune opened this issue Dec 19, 2024 · 0 comments
Labels
NeedsInvestigation Needs investigation Triage Needs triage, issue reported from externally

Comments

@jeffmccune
Copy link
Contributor

What version of holos are you using (holos --version)?

0.101.6-5-g32abfa1d

What did you do?

With tag v0.0.7 of https://github.com/holos-run/kargo-demo

❯ git diff projects.config.cue
diff --git a/projects.config.cue b/projects.config.cue
index 9b17aca..453ff83 100644
--- a/projects.config.cue
+++ b/projects.config.cue
@@ -33,6 +33,7 @@ Projects: holos.#Projects & {
                        "cert-manager": {
                                name: "cert-manager"
                                path: "projects/security/components/cert-manager"
+                               instances: ["./data/cert-manager/cert-manager.yaml"]
                        }
                        "local-ca": {
                                name: "local-ca"

This should break holos render platform, but does not. It succeeds and the
AppProject resources are removed from the output.

Cue fails as expected though:

❯ cue export --out yaml -e Projects
Projects.security.components."cert-manager".instances: field not allowed:
    ./cue.mod/gen/github.com/holos-run/holos/api/core/v1alpha5/types_go_gen.cue:328:13
    ./projects.config.cue:7:11
    ./projects.config.cue:36:5
    ./schemas/holos/v1alpha5/project_types.cue:8:14
    ./schemas/holos/v1alpha5/project_types.cue:13:27
    ./schemas/holos/v1alpha5/project_types.cue:17:24
    ./schemas/holos/v1alpha5/project_types.cue:19:13
    ./schemas/holos/v1alpha5/project_types.cue:19:31
@jeffmccune jeffmccune added NeedsInvestigation Needs investigation Triage Needs triage, issue reported from externally labels Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation Needs investigation Triage Needs triage, issue reported from externally
Projects
None yet
Development

No branches or pull requests

1 participant