Skip to content

armory-plugins/armory-crdcheck-plugin

Repository files navigation

CI

This plugin helps to determinate if the Armory Spinnaker Operator CRD is stable or not. It ONLY checks this CRD for stability. This matches against

kind = "SpinnakerService"
apiGroup = "spinnaker.armory.io"

resources for status checks.

Version Compatibility

Plugin Spinnaker Platform Armory Spinnaker Platform
0.2.0 1.23.x, 1.24.x, 1.25.x, 1.26.x, 1.27.x 2.23.x, 2.24.x, 2.25.x, 2.26.x, 2.27.x
0.3.0 1.28.x 2.28.x
0.4.0 1.30.x 2.30.x

No other supported versions.

Usage

  1. Run ./gradlew releaseBundle
  2. Put the /build/distributions/<project>-<version>.zip into the configured plugins location for your service.
  3. Configure the Spinnaker service. Put the following in the service yml to enable the plugin and configure the extension:
spinnaker:
  extensibility:
    plugins:
      Armory.CRDCheck:
        enabled: true
        version: 0.4.0

Or use the examplePluginRepository to avoid copying the plugin .zip artifact.

Debugging

To debug the crdcheck-clouddriver server component inside a Spinnaker service (like Clouddriver) using IntelliJ Idea follow these steps:

  1. Run ./gradlew releaseBundle in the plugin project.
  2. Copy the generated .plugin-ref file under build in the plugin project submodule for the service to the plugins directory under root in the Spinnaker service that will use the plugin .
  3. Link the plugin project to the service project in IntelliJ (from the service project use the + button in the Gradle tab and select the plugin build.gradle).
  4. Configure the Spinnaker service the same way specified above.
  5. Create a new IntelliJ run configuration for the service that has the VM option -Dpf4j.mode=development and does a Build Project before launch.
  6. Debug away...