File tree 5 files changed +46
-2
lines changed
cue.mod/pkg/timoni.sh/core/v1alpha1
5 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ timoni -n default delete minimal
52
52
| ` metadata: labels: ` | ` {[ string]: string} ` | ` {} ` | Common labels for all resources |
53
53
| ` metadata: annotations: ` | ` {[ string]: string} ` | ` {} ` | Common annotations for all resources |
54
54
| ` podAnnotations: ` | ` {[ string]: string} ` | ` {} ` | Annotations applied to pods |
55
- | ` imagePullSecrets: ` | ` [...corev1.LocalObjectReference] ` | ` [] ` | [ Kubernetes image pull secrets] ( https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod ) |
55
+ | ` imagePullSecrets: ` | ` [...timoniv1.ObjectReference] ` | ` [] ` | [ Kubernetes image pull secrets] ( https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod ) |
56
56
| ` tolerations: ` | ` [ ...corev1.#Toleration] ` | ` [] ` | [ Kubernetes toleration] ( https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration ) |
57
57
| ` affinity: ` | ` corev1.#Affinity ` | ` {} ` | [ Kubernetes affinity and anti-affinity] ( https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity ) |
58
58
| ` resources: ` | ` timoniv1.#ResourceRequirements ` | ` {} ` | [ Kubernetes resource requests and limits] ( https://kubernetes.io/docs/concepts/configuration/manage-resources-containers ) |
Original file line number Diff line number Diff line change
1
+ // Copyright 2023 Stefan Prodan
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ package v1alpha1
5
+
6
+ import " strings "
7
+
8
+ // ObjectReference is a reference to a Kubernetes object.
9
+ #ObjectReference : {
10
+ // Name of the referent.
11
+ name ! : string & strings .MaxRunes (256 )
12
+
13
+ // Namespace of the referent.
14
+ namespace ?: string & strings .MaxRunes (256 )
15
+
16
+ // API version of the referent.
17
+ apiVersion ?: string & strings .MaxRunes (256 )
18
+
19
+ // Kind of the referent.
20
+ kind ?: string & strings .MaxRunes (256 )
21
+ }
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ import (
77
77
// Pod optional settings.
78
78
podAnnotations ?: {[string ]: string }
79
79
podSecurityContext ?: corev1 .#PodSecurityContext
80
- imagePullSecrets ?: [...corev1 . LocalObjectReference ]
80
+ imagePullSecrets ?: [...timoniv1 . ObjectReference ]
81
81
tolerations ?: [...corev1 .#Toleration ]
82
82
affinity ?: corev1 .#Affinity
83
83
topologySpreadConstraints ?: [...corev1 .#TopologySpreadConstraint ]
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ The Timoni's CUE schemas are included in the modules generated with `timoni mod
21
21
with automatic generation of ` app.kubernetes.io/component ` label.
22
22
- ` #Selector ` - Schema for generating Kubernetes label selectors
23
23
with automatic generation of ` app.kubernetes.io/name ` label.
24
+ - ` #ObjectReference ` - Schema for generating Kubernetes object references
25
+ based on ` apiVersion ` , ` kind ` , ` name ` and ` namespace ` .
24
26
25
27
### Container Image
26
28
Original file line number Diff line number Diff line change
1
+ // Copyright 2023 Stefan Prodan
2
+ // SPDX-License-Identifier: Apache-2.0
3
+
4
+ package v1alpha1
5
+
6
+ import " strings "
7
+
8
+ // ObjectReference is a reference to a Kubernetes object.
9
+ #ObjectReference : {
10
+ // Name of the referent.
11
+ name ! : string & strings .MaxRunes (256 )
12
+
13
+ // Namespace of the referent.
14
+ namespace ?: string & strings .MaxRunes (256 )
15
+
16
+ // API version of the referent.
17
+ apiVersion ?: string & strings .MaxRunes (256 )
18
+
19
+ // Kind of the referent.
20
+ kind ?: string & strings .MaxRunes (256 )
21
+ }
You can’t perform that action at this time.
0 commit comments