forked from knative/serving
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschemapatch-config.yaml
174 lines (174 loc) · 3.95 KB
/
schemapatch-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# This is the config file for schema generation via controller-tool's schemapatch
# command. It's used by update-schemas.sh.
k8s.io/api/core/v1.Volume:
allowedFields:
- Name
- VolumeSource
k8s.io/api/core/v1.VolumeSource:
preserveUnknownFields: true # for feature flagged fields
allowedFields:
- Secret
- ConfigMap
- Projected
k8s.io/api/core/v1.VolumeProjection:
allowedFields:
- Secret
- ConfigMap
- ServiceAccountToken
k8s.io/api/core/v1.ConfigMapProjection:
allowedFields:
- LocalObjectReference
- Items
- Optional
k8s.io/api/core/v1.SecretProjection:
allowedFields:
- LocalObjectReference
- Items
- Optional
k8s.io/api/core/v1.ServiceAccountTokenProjection:
allowedFields:
- Audience
- ExpirationSeconds
- Path
k8s.io/api/core/v1.KeyToPath:
allowedFields:
- Key
- Path
- Mode
k8s.io/api/core/v1.PodSpec:
preserveUnknownFields: true # for feature flagged fields
allowedFields:
- ServiceAccountName
- Containers
- Volumes
- ImagePullSecrets
- EnableServiceLinks
- AutomountServiceAccountToken
k8s.io/api/core/v1.Container:
preserveUnknownFields: true # for backwards compat field defaulting
allowedFields:
- Name
- Args
- Command
- Env
- WorkingDir
- EnvFrom
- Image
- ImagePullPolicy
- LivenessProbe
- Ports
- ReadinessProbe
- Resources
- SecurityContext
- TerminationMessagePath
- TerminationMessagePolicy
- VolumeMounts
fieldOverrides:
Name:
optional: true
Ports:
optional: true
k8s.io/api/core/v1.VolumeMount:
allowedFields:
- Name
- ReadOnly
- MountPath
- SubPath
k8s.io/api/core/v1.Probe:
allowedFields:
- Handler
- InitialDelaySeconds
- TimeoutSeconds
- PeriodSeconds
- SuccessThreshold
- FailureThreshold
fieldOverrides:
PeriodSeconds:
description: "How often (in seconds) to perform the probe."
k8s.io/api/core/v1.Handler:
allowedFields:
- Exec
- HTTPGet
- TCPSocket
k8s.io/api/core/v1.ExecAction:
allowedFields:
- Command
k8s.io/api/core/v1.HTTPGetAction:
preserveUnknownFields: true # for backwards compat field defaulting
allowedFields:
- Host
- Path
- Scheme
- HTTPHeaders
k8s.io/api/core/v1.TCPSocketAction:
preserveUnknownFields: true # for backwards compat field defaulting
allowedFields:
- Host
k8s.io/api/core/v1.ContainerPort:
preserveUnknownFields: true # for backwards compat field defaulting
allowedFields:
- ContainerPort
- Name
- Protocol
k8s.io/api/core/v1.EnvVar:
allowedFields:
- Name
- Value
- ValueFrom
k8s.io/api/core/v1.EnvVarSource:
preserveUnknownFields: true # for feature flagged fields
allowedFields:
- ConfigMapKeyRef
- SecretKeyRef
k8s.io/api/core/v1.LocalObjectReference:
allowedFields:
- Name
k8s.io/api/core/v1.ConfigMapKeySelectorMask:
allowedFields:
- Key
- Optional
- LocalObjectReference
k8s.io/api/core/v1.SecretKeySelectorMask:
allowedFields:
- Key
- Optional
- LocalObjectReference
k8s.io/api/core/v1.ConfigMapEnvSource:
allowedFields:
- Optional
- LocalObjectReference
k8s.io/api/core/v1.SecretEnvSource:
allowedFields:
- Optional
- LocalObjectReference
k8s.io/api/core/v1.EnvFromSource:
allowedFields:
- Prefix
- ConfigMapRef
- SecretRef
k8s.io/api/core/v1.ResourceRequirementsMask:
allowedFields:
- Limits
- Requests
k8s.io/api/core/v1.PodSecurityContext:
allowedFields:
- RunAsUser
- RunAsGroup
- RunAsNonRoot
- FSGroup
- SupplementalGroups
k8s.io/api/core/v1.SecurityContext:
preserveUnknownFields: true # for feature flagged fields
allowedFields:
- RunAsUser
- ReadOnlyRootFilesystem
- Capabilities
k8s.io/api/core/v1.Capabilities:
allowedFields:
- Drop
preserveUnknownFields: true # for feature flagged fields
k8s.io/api/core/v1.ObjectReference:
allowedFields:
- APIVersion
- Kind
- Name