pub struct Package {Show 16 fields
pub charts: Vec<PathBuf>,
pub app_version: Option<String>,
pub ca_file: Option<PathBuf>,
pub cert_file: Option<PathBuf>,
pub dependency_update: bool,
pub destination: Option<PathBuf>,
pub insecure_skip_tls_verify: bool,
pub key: Option<String>,
pub key_file: Option<PathBuf>,
pub keyring: Option<PathBuf>,
pub passphrase: Option<Passphrase>,
pub password: Option<Secret>,
pub plain_http: bool,
pub sign: bool,
pub username: Option<String>,
pub version: Option<String>,
}Expand description
helm package (pkg/cmd/package.go, pkg/action/package.go): packages chart directories
into NAME-VERSION.tgz archives and returns the path of each, in order.
Helm hands --username and --password only to its registry client, which downloads the
oci:// dependencies of --dependency-update. The password never reaches argv: the CLI backend
writes it to a 0600 temporary registry config with an entry for every oci:// host the
charts declare, and refuses a password when the charts have no oci:// dependency.
Fields§
§charts: Vec<PathBuf>The CHART_PATH arguments: the chart directories; at least one.
app_version: Option<String>Flag --app-version: set appVersion in the archive.
ca_file: Option<PathBuf>Flag --ca-file: the CA bundle that verifies the dependency servers.
cert_file: Option<PathBuf>Flag --cert-file: the TLS client certificate for dependency downloads.
dependency_update: boolFlag --dependency-update: fetch the dependencies into charts/ first.
destination: Option<PathBuf>Flag --destination: where to write the archives (Helm’s default is the working
directory).
insecure_skip_tls_verify: boolFlag --insecure-skip-tls-verify: skip TLS checks for dependency downloads.
key: Option<String>Flag --key: the name of the signing key; required with sign.
key_file: Option<PathBuf>Flag --key-file: the TLS client key for dependency downloads.
keyring: Option<PathBuf>Flag --keyring: the keyring that holds the signing key (Helm reads the legacy keyring
format, for example the output of gpg --export-secret-keys).
passphrase: Option<Passphrase>Flag --passphrase-file: the passphrase of the signing key, from a file or, as a secret,
through Helm’s stdin (--passphrase-file -). Without one Helm prompts on the terminal.
password: Option<Secret>Never a flag: the password for username at the oci:// dependency registries.
plain_http: boolFlag --plain-http: use HTTP for dependency downloads.
sign: boolFlag --sign: sign each archive with a PGP key and write a .prov file next to it.
username: Option<String>Flag --username: the repository username for dependency downloads.
version: Option<String>Flag --version: set version in the archive.
Implementations§
Trait Implementations§
impl Eq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl Forget for Package
impl Freeze for Package
impl Move for Package
impl RefUnwindSafe for Package
impl Send for Packagewhere
RawVecInner: Send,
impl Sync for Packagewhere
RawVecInner: Sync,
impl Unpin for Package
impl UnsafeUnpin for Packagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Packagewhere
RawVecInner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more