-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a8ab4da
commit 2184bda
Showing
16 changed files
with
227 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# https://github.com/holos-run/holos/issues/357 | ||
exec holos init platform v1alpha5 --force | ||
! exec holos render platform | ||
stderr 'secret.kind: conflicting values "Forbidden. Use an ExternalSecret instead." and "Secret"' | ||
|
||
-- validators.cue -- | ||
package holos | ||
|
||
import "github.com/holos-run/holos/api/author/v1alpha5:author" | ||
|
||
#ComponentConfig: author.#ComponentConfig & { | ||
Validators: cue: { | ||
kind: "Command" | ||
command: args: ["holos", "cue", "vet", "./policy", "--path", "strings.ToLower(kind)"] | ||
} | ||
} | ||
-- policy/validations.cue -- | ||
package validations | ||
|
||
secret: kind: "Forbidden. Use an ExternalSecret instead." | ||
-- platform/example.cue -- | ||
package holos | ||
|
||
Platform: Components: example: { | ||
name: "example" | ||
path: "components/example" | ||
} | ||
-- components/example/secret.cue -- | ||
package holos | ||
|
||
holos: Component.BuildPlan | ||
|
||
Component: #Kubernetes & { | ||
Resources: Secret: test: { | ||
metadata: name: "test" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.