-
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
#ObjectReference
to Timoni's CUE schemas
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
- Loading branch information
1 parent
c4c685a
commit 9a56cc1
Showing
5 changed files
with
46 additions
and
2 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
21 changes: 21 additions & 0 deletions
21
examples/minimal/cue.mod/pkg/timoni.sh/core/v1alpha1/object.cue
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,21 @@ | ||
// Copyright 2023 Stefan Prodan | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
import "strings" | ||
|
||
// ObjectReference is a reference to a Kubernetes object. | ||
#ObjectReference: { | ||
// Name of the referent. | ||
name!: string & strings.MaxRunes(256) | ||
|
||
// Namespace of the referent. | ||
namespace?: string & strings.MaxRunes(256) | ||
|
||
// API version of the referent. | ||
apiVersion?: string & strings.MaxRunes(256) | ||
|
||
// Kind of the referent. | ||
kind?: string & strings.MaxRunes(256) | ||
} |
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,21 @@ | ||
// Copyright 2023 Stefan Prodan | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package v1alpha1 | ||
|
||
import "strings" | ||
|
||
// ObjectReference is a reference to a Kubernetes object. | ||
#ObjectReference: { | ||
// Name of the referent. | ||
name!: string & strings.MaxRunes(256) | ||
|
||
// Namespace of the referent. | ||
namespace?: string & strings.MaxRunes(256) | ||
|
||
// API version of the referent. | ||
apiVersion?: string & strings.MaxRunes(256) | ||
|
||
// Kind of the referent. | ||
kind?: string & strings.MaxRunes(256) | ||
} |