Files
kustomize/api/internal/konfig/builtinpluginconsts/images.go
Kazuki Suda 12135e1563 fix: add CronJob Image Volume support to images transformer
The default images field spec covers spec/volumes[]/image/reference
under Pod and PodTemplateSpec, but CronJob's Image Volume under
spec/jobTemplate/spec/template/spec was missing from the list. This
adds the missing path.
2026-08-29 18:53:27 +09:00

25 lines
584 B
Go

// Copyright 2019 The Kubernetes Authors.
// SPDX-License-Identifier: Apache-2.0
package builtinpluginconsts
const (
imagesFieldSpecs = `
images:
- path: spec/containers[]/image
create: true
- path: spec/initContainers[]/image
create: true
- path: spec/volumes[]/image/reference
create: true
- path: spec/template/spec/containers[]/image
create: true
- path: spec/template/spec/initContainers[]/image
create: true
- path: spec/template/spec/volumes[]/image/reference
create: true
- path: spec/jobTemplate/spec/template/spec/volumes[]/image/reference
create: true
`
)