Skip to content

Comments

feat: add support for --skip-crds flag#317

Merged
manusa merged 1 commit intomanusa:mainfrom
afalhambra-hivemq:feat/skip-crds
Dec 15, 2025
Merged

feat: add support for --skip-crds flag#317
manusa merged 1 commit intomanusa:mainfrom
afalhambra-hivemq:feat/skip-crds

Conversation

@afalhambra-hivemq
Copy link
Contributor

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

Copy link
Owner

@manusa manusa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa manusa merged commit 7a982eb into manusa:main Dec 15, 2025
3 checks passed
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

2 participants