java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.yupiik.bundlebee.maven.mojo.BaseMojo
io.yupiik.bundlebee.maven.generated.mojo.DiffMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="diff", requiresProject=false, threadSafe=true) public class DiffMojo extends BaseMojo
Diff an alveolus against a running cluster. The logic behind is to visit the configured alveolus and for each of its descriptor, query the cluster state and do a JSON-Diff between both. To avoid false positives, you will likely want to tune the ignored pointers which enable to drop dynamic data (managed by Kubernetes server). The diff output has two types of diff: * `JSON-Patch`: a JSON-Patch which, once applied on the actual state will bring up the state to the expected one, * `JSON`: means the Kubernetes server misses an alveolus descriptor and the expected one is fully printed The diff line syntax is: `diff --$alveolusName a/$expectedLocalDescriptor b/$remoteDescriptor`.
  • Field Summary

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     

    Methods inherited from class io.yupiik.bundlebee.maven.mojo.BaseMojo

    execute, toArgs

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DiffMojo

      public DiffMojo()
  • Method Details