Skip to content

Conversation

@afalhambra-hivemq
Copy link

Closes #316

Summary

This PR adds support for Helm's --skip-crds flag to the Java client, allowing users to skip Custom Resource Definition (CRD) installation during chart operations.

Changes

  • Added skipCrds() method to InstallCommand, UpgradeCommand, and TemplateCommand
  • Implemented support across all layers:
    • Go native layer (InstallOptions, UpgradeOptions, TemplateOptions)
    • C bindings (FFI layer)
    • JNA bridge layer (InstallOptions.java, UpgradeOptions.java, TemplateOptions.java)
    • Java API layer (InstallCommand.java, UpgradeCommand.java, TemplateCommand.java)
  • Added tests for the new functionality

Usage Example

// Install without CRDs
Helm.install("my-chart")
  .withName("my-release")
  .skipCrds()
  .call();

// Upgrade without CRDs
Helm.upgrade("my-chart")
  .withName("my-release")
  .skipCrds()
  .call();

// Template without CRDs
String manifests = Helm.template("my-chart")
  .skipCrds()
  .call();

Testing

  • Added tests in HelmInstallTest, HelmTemplateTest, and HelmKubernetesTest
  • All existing tests pass
  • Native libraries rebuilt with updated struct definitions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for --skip-crds flag in install, upgrade, and template commands

1 participant