Class OverlayConf
java.lang.Object
com.scivicslab.pojoactor.workflow.kustomize.OverlayConf
Represents an overlay-conf.yaml configuration file.
This class is designed to be populated from YAML using SnakeYAML or Jackson. It defines which base workflows to use and which patches to apply.
Example overlay-conf.yaml:
apiVersion: pojoactor.scivicslab.com/v1
kind: OverlayConf
bases:
- ../../base
# Simple format (applies to all matching workflows)
patches:
- patch-prod.yaml
# OR Targeted format (applies patch to specific workflow file)
patches:
- target: setup.yaml
patch: patch-setup.yaml
- target: build.yaml
patch: patch-build.yaml
vars:
environment: production
nodeGroup: webservers
namePrefix: prod-
- Since:
- 2.9.0
- Author:
- devteam@scivics-lab.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the API version.getBases()Gets the list of base directories.Gets the common labels map.getKind()Gets the kind.Gets the name prefix.Gets the name suffix.Gets the list of patch entries.getVars()Gets the variable substitution map.voidsetApiVersion(String apiVersion) Sets the API version.voidSets the list of base directories.voidsetCommonLabels(Map<String, String> commonLabels) Sets the common labels map.voidSets the kind.voidsetNamePrefix(String namePrefix) Sets the name prefix.voidsetNameSuffix(String nameSuffix) Sets the name suffix.voidsetPatches(List<PatchEntry> patches) Sets the list of patch entries.voidSets the variable substitution map.
-
Constructor Details
-
OverlayConf
public OverlayConf()
-
-
Method Details
-
getApiVersion
Gets the API version.- Returns:
- the API version string
-
setApiVersion
Sets the API version.- Parameters:
apiVersion- the API version string
-
getKind
Gets the kind.- Returns:
- the kind string (typically "OverlayConf")
-
setKind
Sets the kind.- Parameters:
kind- the kind string
-
getBases
Gets the list of base directories.- Returns:
- list of relative paths to base kustomization directories
-
setBases
Sets the list of base directories.- Parameters:
bases- list of relative paths to base directories
-
getPatches
Gets the list of patch entries.- Returns:
- list of patch entries (each may have target and patch fields)
-
setPatches
Sets the list of patch entries.- Parameters:
patches- list of patch entries
-
getVars
Gets the variable substitution map.- Returns:
- map of variable names to values
-
setVars
Sets the variable substitution map.- Parameters:
vars- map of variable names to values
-
getNamePrefix
Gets the name prefix.- Returns:
- the prefix to add to workflow names
-
setNamePrefix
Sets the name prefix.- Parameters:
namePrefix- the prefix to add to workflow names
-
getNameSuffix
Gets the name suffix.- Returns:
- the suffix to add to workflow names
-
setNameSuffix
Sets the name suffix.- Parameters:
nameSuffix- the suffix to add to workflow names
-
getCommonLabels
Gets the common labels map.- Returns:
- map of label names to values
-
setCommonLabels
Sets the common labels map.- Parameters:
commonLabels- map of label names to values
-