pub struct KrewConfig {Show 15 fields
pub name: Option<String>,
pub ids: Option<Vec<String>>,
pub repository: Option<RepositoryConfig>,
pub commit_author: Option<CommitAuthorConfig>,
pub commit_msg_template: Option<String>,
pub description: Option<String>,
pub short_description: Option<String>,
pub homepage: Option<String>,
pub url_template: Option<String>,
pub caveats: Option<String>,
pub skip_upload: Option<StringOrBool>,
pub skip: Option<StringOrBool>,
pub amd64_variant: Option<String>,
pub arm_variant: Option<String>,
pub update_existing_pr: Option<StringOrBool>,
}Fields§
§name: Option<String>Override the plugin name (default: crate name).
ids: Option<Vec<String>>Build IDs filter: only include artifacts whose id is in this list.
repository: Option<RepositoryConfig>Unified repository config with branch, token, PR, git SSH support.
(Replaces the legacy manifests_repo: / upstream_repo: form.) The
upstream PR target is derived from repository.pull_request.base
when set, falling back to the canonical kubernetes-sigs/krew-index.
Commit author with optional signing.
commit_msg_template: Option<String>Custom commit message template.
description: Option<String>Full description of the kubectl plugin.
short_description: Option<String>One-line summary of the kubectl plugin (max 255 chars).
homepage: Option<String>Project homepage URL for the plugin.
url_template: Option<String>Custom URL template for download URLs (overrides release URL).
caveats: Option<String>Post-install message shown to the user.
skip_upload: Option<StringOrBool>Skip publishing. "true" always skips; "auto" skips for prereleases.
Accepts bool or template string.
skip: Option<StringOrBool>Skip this Krew config. Accepts bool or template string
(e.g. "{{ if .IsSnapshot }}true{{ endif }}" for conditional skip).
Distinct from skip_upload so users can opt out of generating the
manifest entirely (common when a project is not a kubectl plugin and
has no krew channel).
amd64_variant: Option<String>amd64 microarchitecture variant filter (e.g. “v1”, “v2”, “v3”, “v4”). Only artifacts matching this variant are included. Default: “v1”.
arm_variant: Option<String>ARM version filter (e.g. “6”, “7”). Only artifacts matching this variant are included.
update_existing_pr: Option<StringOrBool>When true, force-push the updated plugin manifest to the existing PR branch when a PR for the same head branch already exists. The PR content is updated in place rather than creating a duplicate. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not update the PR.
Trait Implementations§
Source§impl Clone for KrewConfig
impl Clone for KrewConfig
Source§fn clone(&self) -> KrewConfig
fn clone(&self) -> KrewConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KrewConfig
impl Debug for KrewConfig
Source§impl Default for KrewConfig
impl Default for KrewConfig
Source§fn default() -> KrewConfig
fn default() -> KrewConfig
Source§impl<'de> Deserialize<'de> for KrewConfigwhere
KrewConfig: Default,
impl<'de> Deserialize<'de> for KrewConfigwhere
KrewConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for KrewConfig
impl JsonSchema for KrewConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more