java.lang.Object
com.scivicslab.pojoactor.workflow.kustomize.PatchEntry

public class PatchEntry extends Object
Represents a patch entry in overlay-conf.yaml.

Supports two formats:

  • Simple: just a patch file name (target is null, applies to all matching workflows)
  • Targeted: specifies both target workflow and patch file

Example YAML formats:

 # Simple format (target is null)
 patches:
   - patch.yaml

 # Targeted format
 patches:
   - target: setup.yaml
     patch: patch.yaml
   - target: build.yaml
     patch: patch-build.yaml
 
Since:
2.9.1
Author:
devteam@scivics-lab.com
  • Constructor Details

    • PatchEntry

      public PatchEntry()
      Default constructor for YAML deserialization.
    • PatchEntry

      public PatchEntry(String patch)
      Constructs a PatchEntry with just a patch file (no specific target).
      Parameters:
      patch - the patch file name
    • PatchEntry

      public PatchEntry(String target, String patch)
      Constructs a PatchEntry with both target and patch.
      Parameters:
      target - the target workflow file name
      patch - the patch file name
  • Method Details

    • getTarget

      public String getTarget()
      Gets the target workflow file name.
      Returns:
      the target file name, or null if patch applies to all matching workflows
    • setTarget

      public void setTarget(String target)
      Sets the target workflow file name.
      Parameters:
      target - the target file name
    • getPatch

      public String getPatch()
      Gets the patch file name.
      Returns:
      the patch file name
    • setPatch

      public void setPatch(String patch)
      Sets the patch file name.
      Parameters:
      patch - the patch file name
    • hasTarget

      public boolean hasTarget()
      Checks if this patch entry has a specific target.
      Returns:
      true if target is specified, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object