mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
Extract the HTTP port (int) from the container section end use it in the service definition. Also enable variable replacement for Service object.
208 lines
4.7 KiB
Go
208 lines
4.7 KiB
Go
/*
|
|
Copyright 2018 The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
|
|
package defaultconfig
|
|
|
|
const (
|
|
varReferenceFieldSpecs = `
|
|
varReference:
|
|
- path: spec/jobTemplate/spec/template/spec/containers/args
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/containers/command
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/containers/env/value
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/containers/volumeMounts/mountPath
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/initContainers/args
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/initContainers/command
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/initContainers/env/value
|
|
kind: CronJob
|
|
|
|
- path: spec/jobTemplate/spec/template/spec/initContainers/volumeMounts/mountPath
|
|
kind: CronJob
|
|
|
|
- path: spec/template/spec/containers/args
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/containers/command
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/containers/env/value
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/containers/volumeMounts/mountPath
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/initContainers/args
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/initContainers/command
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/initContainers/env/value
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/initContainers/volumeMounts/mountPath
|
|
kind: DaemonSet
|
|
|
|
- path: spec/template/spec/containers/args
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/containers/command
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/containers/env/value
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/containers/volumeMounts/mountPath
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/initContainers/args
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/initContainers/command
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/initContainers/env/value
|
|
kind: Deployment
|
|
|
|
- path: spec/template/spec/initContainers/volumeMounts/mountPath
|
|
kind: Deployment
|
|
|
|
- path: spec/rules/host
|
|
kind: Ingress
|
|
|
|
- path: spec/tls/hosts
|
|
kind: Ingress
|
|
|
|
- path: spec/tls/secretName
|
|
kind: Ingress
|
|
|
|
- path: spec/template/spec/containers/args
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/containers/command
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/containers/env/value
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/containers/volumeMounts/mountPath
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/initContainers/args
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/initContainers/command
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/initContainers/env/value
|
|
kind: Job
|
|
|
|
- path: spec/template/spec/initContainers/volumeMounts/mountPath
|
|
kind: Job
|
|
|
|
- path: spec/containers/args
|
|
kind: Pod
|
|
|
|
- path: spec/containers/command
|
|
kind: Pod
|
|
|
|
- path: spec/containers/env/value
|
|
kind: Pod
|
|
|
|
- path: spec/containers/volumeMounts/mountPath
|
|
kind: Pod
|
|
|
|
- path: spec/initContainers/args
|
|
kind: Pod
|
|
|
|
- path: spec/initContainers/command
|
|
kind: Pod
|
|
|
|
- path: spec/initContainers/env/value
|
|
kind: Pod
|
|
|
|
- path: spec/initContainers/volumeMounts/mountPath
|
|
kind: Pod
|
|
|
|
- path: spec/template/spec/containers/args
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/containers/command
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/containers/env/value
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/containers/volumeMounts/mountPath
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/initContainers/args
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/initContainers/command
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/initContainers/env/value
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/template/spec/initContainers/volumeMounts/mountPath
|
|
kind: ReplicaSet
|
|
|
|
- path: spec/ports/port
|
|
kind: Service
|
|
|
|
- path: spec/ports/targetPort
|
|
kind: Service
|
|
|
|
- path: spec/template/spec/containers/args
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/containers/command
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/containers/env/value
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/containers/volumeMounts/mountPath
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/initContainers/args
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/initContainers/command
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/initContainers/env/value
|
|
kind: StatefulSet
|
|
|
|
- path: spec/template/spec/initContainers/volumeMounts/mountPath
|
|
kind: StatefulSet
|
|
|
|
- path: metadata/labels
|
|
`
|
|
)
|