Skip to content

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

@afalhambra-hivemq

Description

@afalhambra-hivemq

Summary

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

Motivation

The native Helm CLI supports the --skip-crds flag for install, upgrade, and template commands. This flag is useful when:

  • CRDs are managed separately from chart releases
  • Installing charts in environments where CRDs are already present
  • Performing dry-run operations without CRD validation

Currently, the Helm Java client does not expose this functionality.

Proposed Changes

Add skipCrds() method to:

  • InstallCommand
  • UpgradeCommand
  • TemplateCommand

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();

Implementation

Implementation requires changes across all layers:

  • Go native layer (InstallOptions, UpgradeOptions, TemplateOptions)
  • C bindings (FFI layer)
  • JNA bridge layer
  • Java API layer

PR created: #317

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions