| 1 |
// Copyright 2019 The Kubernetes Authors. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package builtinpluginconsts |
| 5 |
|
| 6 |
// LINT.IfChange |
| 7 |
const ( |
| 8 |
nameReferenceFieldSpecs = ` |
| 9 |
nameReference: |
| 10 |
- kind: Deployment |
| 11 |
fieldSpecs: |
| 12 |
- path: spec/scaleTargetRef/name |
| 13 |
kind: HorizontalPodAutoscaler |
| 14 |
|
| 15 |
- kind: ReplicationController |
| 16 |
fieldSpecs: |
| 17 |
- path: spec/scaleTargetRef/name |
| 18 |
kind: HorizontalPodAutoscaler |
| 19 |
|
| 20 |
- kind: ReplicaSet |
| 21 |
fieldSpecs: |
| 22 |
- path: spec/scaleTargetRef/name |
| 23 |
kind: HorizontalPodAutoscaler |
| 24 |
|
| 25 |
- kind: StatefulSet |
| 26 |
fieldSpecs: |
| 27 |
- path: spec/scaleTargetRef/name |
| 28 |
kind: HorizontalPodAutoscaler |
| 29 |
|
| 30 |
- kind: ConfigMap |
| 31 |
version: v1 |
| 32 |
fieldSpecs: |
| 33 |
- path: spec/volumes/configMap/name |
| 34 |
version: v1 |
| 35 |
kind: Pod |
| 36 |
- path: spec/containers/env/valueFrom/configMapKeyRef/name |
| 37 |
version: v1 |
| 38 |
kind: Pod |
| 39 |
- path: spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 40 |
version: v1 |
| 41 |
kind: Pod |
| 42 |
- path: spec/containers/envFrom/configMapRef/name |
| 43 |
version: v1 |
| 44 |
kind: Pod |
| 45 |
- path: spec/initContainers/envFrom/configMapRef/name |
| 46 |
version: v1 |
| 47 |
kind: Pod |
| 48 |
- path: spec/volumes/projected/sources/configMap/name |
| 49 |
version: v1 |
| 50 |
kind: Pod |
| 51 |
- path: template/spec/volumes/configMap/name |
| 52 |
kind: PodTemplate |
| 53 |
- path: template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 54 |
kind: PodTemplate |
| 55 |
- path: template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 56 |
kind: PodTemplate |
| 57 |
- path: template/spec/containers/envFrom/configMapRef/name |
| 58 |
kind: PodTemplate |
| 59 |
- path: template/spec/initContainers/envFrom/configMapRef/name |
| 60 |
kind: PodTemplate |
| 61 |
- path: template/spec/volumes/projected/sources/configMap/name |
| 62 |
kind: PodTemplate |
| 63 |
- path: spec/template/spec/volumes/configMap/name |
| 64 |
kind: Deployment |
| 65 |
- path: spec/template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 66 |
kind: Deployment |
| 67 |
- path: spec/template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 68 |
kind: Deployment |
| 69 |
- path: spec/template/spec/containers/envFrom/configMapRef/name |
| 70 |
kind: Deployment |
| 71 |
- path: spec/template/spec/initContainers/envFrom/configMapRef/name |
| 72 |
kind: Deployment |
| 73 |
- path: spec/template/spec/volumes/projected/sources/configMap/name |
| 74 |
kind: Deployment |
| 75 |
- path: spec/template/spec/volumes/configMap/name |
| 76 |
kind: ReplicaSet |
| 77 |
- path: spec/template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 78 |
kind: ReplicaSet |
| 79 |
- path: spec/template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 80 |
kind: ReplicaSet |
| 81 |
- path: spec/template/spec/containers/envFrom/configMapRef/name |
| 82 |
kind: ReplicaSet |
| 83 |
- path: spec/template/spec/initContainers/envFrom/configMapRef/name |
| 84 |
kind: ReplicaSet |
| 85 |
- path: spec/template/spec/volumes/projected/sources/configMap/name |
| 86 |
kind: ReplicaSet |
| 87 |
- path: spec/template/spec/volumes/configMap/name |
| 88 |
kind: DaemonSet |
| 89 |
- path: spec/template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 90 |
kind: DaemonSet |
| 91 |
- path: spec/template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 92 |
kind: DaemonSet |
| 93 |
- path: spec/template/spec/containers/envFrom/configMapRef/name |
| 94 |
kind: DaemonSet |
| 95 |
- path: spec/template/spec/initContainers/envFrom/configMapRef/name |
| 96 |
kind: DaemonSet |
| 97 |
- path: spec/template/spec/volumes/projected/sources/configMap/name |
| 98 |
kind: DaemonSet |
| 99 |
- path: spec/template/spec/volumes/configMap/name |
| 100 |
kind: StatefulSet |
| 101 |
- path: spec/template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 102 |
kind: StatefulSet |
| 103 |
- path: spec/template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 104 |
kind: StatefulSet |
| 105 |
- path: spec/template/spec/containers/envFrom/configMapRef/name |
| 106 |
kind: StatefulSet |
| 107 |
- path: spec/template/spec/initContainers/envFrom/configMapRef/name |
| 108 |
kind: StatefulSet |
| 109 |
- path: spec/template/spec/volumes/projected/sources/configMap/name |
| 110 |
kind: StatefulSet |
| 111 |
- path: spec/template/spec/volumes/configMap/name |
| 112 |
kind: Job |
| 113 |
- path: spec/template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 114 |
kind: Job |
| 115 |
- path: spec/template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 116 |
kind: Job |
| 117 |
- path: spec/template/spec/containers/envFrom/configMapRef/name |
| 118 |
kind: Job |
| 119 |
- path: spec/template/spec/initContainers/envFrom/configMapRef/name |
| 120 |
kind: Job |
| 121 |
- path: spec/template/spec/volumes/projected/sources/configMap/name |
| 122 |
kind: Job |
| 123 |
- path: spec/jobTemplate/spec/template/spec/volumes/configMap/name |
| 124 |
kind: CronJob |
| 125 |
- path: spec/jobTemplate/spec/template/spec/volumes/projected/sources/configMap/name |
| 126 |
kind: CronJob |
| 127 |
- path: spec/jobTemplate/spec/template/spec/containers/env/valueFrom/configMapKeyRef/name |
| 128 |
kind: CronJob |
| 129 |
- path: spec/jobTemplate/spec/template/spec/initContainers/env/valueFrom/configMapKeyRef/name |
| 130 |
kind: CronJob |
| 131 |
- path: spec/jobTemplate/spec/template/spec/containers/envFrom/configMapRef/name |
| 132 |
kind: CronJob |
| 133 |
- path: spec/jobTemplate/spec/template/spec/initContainers/envFrom/configMapRef/name |
| 134 |
kind: CronJob |
| 135 |
- path: spec/configSource/configMap |
| 136 |
kind: Node |
| 137 |
- path: rules/resourceNames |
| 138 |
kind: Role |
| 139 |
- path: rules/resourceNames |
| 140 |
kind: ClusterRole |
| 141 |
- path: metadata/annotations/nginx.ingress.kubernetes.io\/fastcgi-params-configmap |
| 142 |
kind: Ingress |
| 143 |
|
| 144 |
- kind: Secret |
| 145 |
version: v1 |
| 146 |
fieldSpecs: |
| 147 |
- path: spec/volumes/secret/secretName |
| 148 |
version: v1 |
| 149 |
kind: Pod |
| 150 |
- path: spec/containers/env/valueFrom/secretKeyRef/name |
| 151 |
version: v1 |
| 152 |
kind: Pod |
| 153 |
- path: spec/initContainers/env/valueFrom/secretKeyRef/name |
| 154 |
version: v1 |
| 155 |
kind: Pod |
| 156 |
- path: spec/containers/envFrom/secretRef/name |
| 157 |
version: v1 |
| 158 |
kind: Pod |
| 159 |
- path: spec/initContainers/envFrom/secretRef/name |
| 160 |
version: v1 |
| 161 |
kind: Pod |
| 162 |
- path: spec/imagePullSecrets/name |
| 163 |
version: v1 |
| 164 |
kind: Pod |
| 165 |
- path: spec/volumes/projected/sources/secret/name |
| 166 |
version: v1 |
| 167 |
kind: Pod |
| 168 |
- path: template/spec/volumes/secret/secretName |
| 169 |
kind: PodTemplate |
| 170 |
- path: template/spec/containers/env/valueFrom/secretKeyRef/name |
| 171 |
kind: PodTemplate |
| 172 |
- path: template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 173 |
kind: PodTemplate |
| 174 |
- path: template/spec/containers/envFrom/secretRef/name |
| 175 |
kind: PodTemplate |
| 176 |
- path: template/spec/initContainers/envFrom/secretRef/name |
| 177 |
kind: PodTemplate |
| 178 |
- path: template/spec/imagePullSecrets/name |
| 179 |
kind: PodTemplate |
| 180 |
- path: template/spec/volumes/projected/sources/secret/name |
| 181 |
kind: PodTemplate |
| 182 |
- path: spec/template/spec/volumes/secret/secretName |
| 183 |
kind: Deployment |
| 184 |
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 185 |
kind: Deployment |
| 186 |
- path: spec/template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 187 |
kind: Deployment |
| 188 |
- path: spec/template/spec/containers/envFrom/secretRef/name |
| 189 |
kind: Deployment |
| 190 |
- path: spec/template/spec/initContainers/envFrom/secretRef/name |
| 191 |
kind: Deployment |
| 192 |
- path: spec/template/spec/imagePullSecrets/name |
| 193 |
kind: Deployment |
| 194 |
- path: spec/template/spec/volumes/projected/sources/secret/name |
| 195 |
kind: Deployment |
| 196 |
- path: spec/template/spec/volumes/secret/secretName |
| 197 |
kind: ReplicaSet |
| 198 |
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 199 |
kind: ReplicaSet |
| 200 |
- path: spec/template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 201 |
kind: ReplicaSet |
| 202 |
- path: spec/template/spec/containers/envFrom/secretRef/name |
| 203 |
kind: ReplicaSet |
| 204 |
- path: spec/template/spec/initContainers/envFrom/secretRef/name |
| 205 |
kind: ReplicaSet |
| 206 |
- path: spec/template/spec/imagePullSecrets/name |
| 207 |
kind: ReplicaSet |
| 208 |
- path: spec/template/spec/volumes/projected/sources/secret/name |
| 209 |
kind: ReplicaSet |
| 210 |
- path: spec/template/spec/volumes/secret/secretName |
| 211 |
kind: DaemonSet |
| 212 |
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 213 |
kind: DaemonSet |
| 214 |
- path: spec/template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 215 |
kind: DaemonSet |
| 216 |
- path: spec/template/spec/containers/envFrom/secretRef/name |
| 217 |
kind: DaemonSet |
| 218 |
- path: spec/template/spec/initContainers/envFrom/secretRef/name |
| 219 |
kind: DaemonSet |
| 220 |
- path: spec/template/spec/imagePullSecrets/name |
| 221 |
kind: DaemonSet |
| 222 |
- path: spec/template/spec/volumes/projected/sources/secret/name |
| 223 |
kind: DaemonSet |
| 224 |
- path: spec/template/spec/volumes/secret/secretName |
| 225 |
kind: StatefulSet |
| 226 |
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 227 |
kind: StatefulSet |
| 228 |
- path: spec/template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 229 |
kind: StatefulSet |
| 230 |
- path: spec/template/spec/containers/envFrom/secretRef/name |
| 231 |
kind: StatefulSet |
| 232 |
- path: spec/template/spec/initContainers/envFrom/secretRef/name |
| 233 |
kind: StatefulSet |
| 234 |
- path: spec/template/spec/imagePullSecrets/name |
| 235 |
kind: StatefulSet |
| 236 |
- path: spec/template/spec/volumes/projected/sources/secret/name |
| 237 |
kind: StatefulSet |
| 238 |
- path: spec/template/spec/volumes/secret/secretName |
| 239 |
kind: Job |
| 240 |
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 241 |
kind: Job |
| 242 |
- path: spec/template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 243 |
kind: Job |
| 244 |
- path: spec/template/spec/containers/envFrom/secretRef/name |
| 245 |
kind: Job |
| 246 |
- path: spec/template/spec/initContainers/envFrom/secretRef/name |
| 247 |
kind: Job |
| 248 |
- path: spec/template/spec/imagePullSecrets/name |
| 249 |
kind: Job |
| 250 |
- path: spec/template/spec/volumes/projected/sources/secret/name |
| 251 |
kind: Job |
| 252 |
- path: spec/jobTemplate/spec/template/spec/volumes/secret/secretName |
| 253 |
kind: CronJob |
| 254 |
- path: spec/jobTemplate/spec/template/spec/volumes/projected/sources/secret/name |
| 255 |
kind: CronJob |
| 256 |
- path: spec/jobTemplate/spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 257 |
kind: CronJob |
| 258 |
- path: spec/jobTemplate/spec/template/spec/initContainers/env/valueFrom/secretKeyRef/name |
| 259 |
kind: CronJob |
| 260 |
- path: spec/jobTemplate/spec/template/spec/containers/envFrom/secretRef/name |
| 261 |
kind: CronJob |
| 262 |
- path: spec/jobTemplate/spec/template/spec/initContainers/envFrom/secretRef/name |
| 263 |
kind: CronJob |
| 264 |
- path: spec/jobTemplate/spec/template/spec/imagePullSecrets/name |
| 265 |
kind: CronJob |
| 266 |
- path: spec/tls/secretName |
| 267 |
kind: Ingress |
| 268 |
- path: metadata/annotations/ingress.kubernetes.io\/auth-secret |
| 269 |
kind: Ingress |
| 270 |
- path: metadata/annotations/nginx.ingress.kubernetes.io\/auth-secret |
| 271 |
kind: Ingress |
| 272 |
- path: metadata/annotations/nginx.ingress.kubernetes.io\/auth-tls-secret |
| 273 |
kind: Ingress |
| 274 |
- path: spec/tls/secretName |
| 275 |
kind: Ingress |
| 276 |
- path: imagePullSecrets/name |
| 277 |
kind: ServiceAccount |
| 278 |
- path: parameters/secretName |
| 279 |
kind: StorageClass |
| 280 |
- path: parameters/adminSecretName |
| 281 |
kind: StorageClass |
| 282 |
- path: parameters/userSecretName |
| 283 |
kind: StorageClass |
| 284 |
- path: parameters/secretRef |
| 285 |
kind: StorageClass |
| 286 |
- path: rules/resourceNames |
| 287 |
kind: Role |
| 288 |
- path: rules/resourceNames |
| 289 |
kind: ClusterRole |
| 290 |
- path: spec/template/spec/containers/env/valueFrom/secretKeyRef/name |
| 291 |
kind: Service |
| 292 |
group: serving.knative.dev |
| 293 |
version: v1 |
| 294 |
- path: spec/azureFile/secretName |
| 295 |
kind: PersistentVolume |
| 296 |
|
| 297 |
- kind: Service |
| 298 |
version: v1 |
| 299 |
fieldSpecs: |
| 300 |
- path: spec/serviceName |
| 301 |
kind: StatefulSet |
| 302 |
group: apps |
| 303 |
- path: spec/rules/http/paths/backend/serviceName |
| 304 |
kind: Ingress |
| 305 |
- path: spec/backend/serviceName |
| 306 |
kind: Ingress |
| 307 |
- path: spec/rules/http/paths/backend/service/name |
| 308 |
kind: Ingress |
| 309 |
- path: spec/defaultBackend/service/name |
| 310 |
kind: Ingress |
| 311 |
- path: spec/service/name |
| 312 |
kind: APIService |
| 313 |
group: apiregistration.k8s.io |
| 314 |
- path: webhooks/clientConfig/service |
| 315 |
kind: ValidatingWebhookConfiguration |
| 316 |
group: admissionregistration.k8s.io |
| 317 |
- path: webhooks/clientConfig/service |
| 318 |
kind: MutatingWebhookConfiguration |
| 319 |
group: admissionregistration.k8s.io |
| 320 |
|
| 321 |
- kind: Role |
| 322 |
group: rbac.authorization.k8s.io |
| 323 |
fieldSpecs: |
| 324 |
- path: roleRef/name |
| 325 |
kind: RoleBinding |
| 326 |
group: rbac.authorization.k8s.io |
| 327 |
|
| 328 |
- kind: ClusterRole |
| 329 |
group: rbac.authorization.k8s.io |
| 330 |
fieldSpecs: |
| 331 |
- path: roleRef/name |
| 332 |
kind: RoleBinding |
| 333 |
group: rbac.authorization.k8s.io |
| 334 |
- path: roleRef/name |
| 335 |
kind: ClusterRoleBinding |
| 336 |
group: rbac.authorization.k8s.io |
| 337 |
|
| 338 |
- kind: ServiceAccount |
| 339 |
version: v1 |
| 340 |
fieldSpecs: |
| 341 |
- path: subjects |
| 342 |
kind: RoleBinding |
| 343 |
group: rbac.authorization.k8s.io |
| 344 |
- path: subjects |
| 345 |
kind: ClusterRoleBinding |
| 346 |
group: rbac.authorization.k8s.io |
| 347 |
- path: spec/serviceAccountName |
| 348 |
kind: Pod |
| 349 |
- path: spec/template/spec/serviceAccountName |
| 350 |
kind: StatefulSet |
| 351 |
- path: spec/template/spec/serviceAccountName |
| 352 |
kind: Deployment |
| 353 |
- path: spec/template/spec/serviceAccountName |
| 354 |
kind: ReplicationController |
| 355 |
- path: spec/jobTemplate/spec/template/spec/serviceAccountName |
| 356 |
kind: CronJob |
| 357 |
- path: spec/template/spec/serviceAccountName |
| 358 |
kind: Job |
| 359 |
- path: spec/template/spec/serviceAccountName |
| 360 |
kind: DaemonSet |
| 361 |
|
| 362 |
- kind: PersistentVolumeClaim |
| 363 |
version: v1 |
| 364 |
fieldSpecs: |
| 365 |
- path: spec/volumes/persistentVolumeClaim/claimName |
| 366 |
kind: Pod |
| 367 |
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName |
| 368 |
kind: StatefulSet |
| 369 |
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName |
| 370 |
kind: Deployment |
| 371 |
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName |
| 372 |
kind: ReplicationController |
| 373 |
- path: spec/jobTemplate/spec/template/spec/volumes/persistentVolumeClaim/claimName |
| 374 |
kind: CronJob |
| 375 |
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName |
| 376 |
kind: Job |
| 377 |
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName |
| 378 |
kind: DaemonSet |
| 379 |
|
| 380 |
- kind: PersistentVolume |
| 381 |
version: v1 |
| 382 |
fieldSpecs: |
| 383 |
- path: spec/volumeName |
| 384 |
kind: PersistentVolumeClaim |
| 385 |
- path: rules/resourceNames |
| 386 |
kind: ClusterRole |
| 387 |
|
| 388 |
- kind: StorageClass |
| 389 |
version: v1 |
| 390 |
group: storage.k8s.io |
| 391 |
fieldSpecs: |
| 392 |
- path: spec/storageClassName |
| 393 |
kind: PersistentVolume |
| 394 |
- path: spec/storageClassName |
| 395 |
kind: PersistentVolumeClaim |
| 396 |
- path: spec/volumeClaimTemplates/spec/storageClassName |
| 397 |
kind: StatefulSet |
| 398 |
|
| 399 |
- kind: PriorityClass |
| 400 |
version: v1 |
| 401 |
group: scheduling.k8s.io |
| 402 |
fieldSpecs: |
| 403 |
- path: spec/priorityClassName |
| 404 |
kind: Pod |
| 405 |
- path: spec/template/spec/priorityClassName |
| 406 |
kind: StatefulSet |
| 407 |
- path: spec/template/spec/priorityClassName |
| 408 |
kind: Deployment |
| 409 |
- path: spec/template/spec/priorityClassName |
| 410 |
kind: ReplicationController |
| 411 |
- path: spec/jobTemplate/spec/template/spec/priorityClassName |
| 412 |
kind: CronJob |
| 413 |
- path: spec/template/spec/priorityClassName |
| 414 |
kind: Job |
| 415 |
- path: spec/template/spec/priorityClassName |
| 416 |
kind: DaemonSet |
| 417 |
|
| 418 |
- kind: IngressClass |
| 419 |
version: v1 |
| 420 |
group: networking.k8s.io/v1 |
| 421 |
fieldSpecs: |
| 422 |
- path: spec/ingressClassName |
| 423 |
kind: Ingress |
| 424 |
|
| 425 |
- kind: ValidatingAdmissionPolicy |
| 426 |
group: admissionregistration.k8s.io |
| 427 |
fieldSpecs: |
| 428 |
- path: spec/policyName |
| 429 |
kind: ValidatingAdmissionPolicyBinding |
| 430 |
group: admissionregistration.k8s.io |
| 431 |
` |
| 432 |
) |
| 433 |
|
| 434 |
// LINT.ThenChange(/examples/transformerconfigs/README.md) |