| 1 |
// Copyright 2019 The Kubernetes Authors. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package builtinpluginconsts |
| 5 |
|
| 6 |
const commonLabelFieldSpecs = ` |
| 7 |
commonLabels: |
| 8 |
- path: spec/selector |
| 9 |
create: true |
| 10 |
version: v1 |
| 11 |
kind: Service |
| 12 |
|
| 13 |
- path: spec/selector |
| 14 |
create: true |
| 15 |
version: v1 |
| 16 |
kind: ReplicationController |
| 17 |
- path: spec/selector/matchLabels |
| 18 |
create: true |
| 19 |
kind: Deployment |
| 20 |
|
| 21 |
- path: spec/template/spec/affinity/podAffinity/preferredDuringSchedulingIgnoredDuringExecution/podAffinityTerm/labelSelector/matchLabels |
| 22 |
create: false |
| 23 |
group: apps |
| 24 |
kind: Deployment |
| 25 |
|
| 26 |
- path: spec/template/spec/affinity/podAffinity/requiredDuringSchedulingIgnoredDuringExecution/labelSelector/matchLabels |
| 27 |
create: false |
| 28 |
group: apps |
| 29 |
kind: Deployment |
| 30 |
|
| 31 |
- path: spec/template/spec/affinity/podAntiAffinity/preferredDuringSchedulingIgnoredDuringExecution/podAffinityTerm/labelSelector/matchLabels |
| 32 |
create: false |
| 33 |
group: apps |
| 34 |
kind: Deployment |
| 35 |
|
| 36 |
- path: spec/template/spec/affinity/podAntiAffinity/requiredDuringSchedulingIgnoredDuringExecution/labelSelector/matchLabels |
| 37 |
create: false |
| 38 |
group: apps |
| 39 |
kind: Deployment |
| 40 |
|
| 41 |
- path: spec/template/spec/topologySpreadConstraints/labelSelector/matchLabels |
| 42 |
create: false |
| 43 |
group: apps |
| 44 |
kind: Deployment |
| 45 |
|
| 46 |
- path: spec/selector/matchLabels |
| 47 |
create: true |
| 48 |
kind: ReplicaSet |
| 49 |
|
| 50 |
- path: spec/selector/matchLabels |
| 51 |
create: true |
| 52 |
kind: DaemonSet |
| 53 |
|
| 54 |
- path: spec/selector/matchLabels |
| 55 |
create: true |
| 56 |
group: apps |
| 57 |
kind: StatefulSet |
| 58 |
|
| 59 |
- path: spec/template/spec/affinity/podAffinity/preferredDuringSchedulingIgnoredDuringExecution/podAffinityTerm/labelSelector/matchLabels |
| 60 |
create: false |
| 61 |
group: apps |
| 62 |
kind: StatefulSet |
| 63 |
|
| 64 |
- path: spec/template/spec/affinity/podAffinity/requiredDuringSchedulingIgnoredDuringExecution/labelSelector/matchLabels |
| 65 |
create: false |
| 66 |
group: apps |
| 67 |
kind: StatefulSet |
| 68 |
|
| 69 |
- path: spec/template/spec/affinity/podAntiAffinity/preferredDuringSchedulingIgnoredDuringExecution/podAffinityTerm/labelSelector/matchLabels |
| 70 |
create: false |
| 71 |
group: apps |
| 72 |
kind: StatefulSet |
| 73 |
|
| 74 |
- path: spec/template/spec/affinity/podAntiAffinity/requiredDuringSchedulingIgnoredDuringExecution/labelSelector/matchLabels |
| 75 |
create: false |
| 76 |
group: apps |
| 77 |
kind: StatefulSet |
| 78 |
|
| 79 |
- path: spec/template/spec/topologySpreadConstraints/labelSelector/matchLabels |
| 80 |
create: false |
| 81 |
group: apps |
| 82 |
kind: StatefulSet |
| 83 |
|
| 84 |
- path: spec/selector/matchLabels |
| 85 |
create: false |
| 86 |
group: batch |
| 87 |
kind: Job |
| 88 |
|
| 89 |
- path: spec/jobTemplate/spec/selector/matchLabels |
| 90 |
create: false |
| 91 |
group: batch |
| 92 |
kind: CronJob |
| 93 |
|
| 94 |
- path: spec/selector/matchLabels |
| 95 |
create: false |
| 96 |
group: policy |
| 97 |
kind: PodDisruptionBudget |
| 98 |
|
| 99 |
- path: spec/podSelector/matchLabels |
| 100 |
create: false |
| 101 |
group: networking.k8s.io |
| 102 |
kind: NetworkPolicy |
| 103 |
|
| 104 |
- path: spec/ingress/from/podSelector/matchLabels |
| 105 |
create: false |
| 106 |
group: networking.k8s.io |
| 107 |
kind: NetworkPolicy |
| 108 |
|
| 109 |
- path: spec/egress/to/podSelector/matchLabels |
| 110 |
create: false |
| 111 |
group: networking.k8s.io |
| 112 |
kind: NetworkPolicy |
| 113 |
` + metadataLabelsFieldSpecs |