pub struct Release {
pub name: String,
pub info: Option<Info>,
pub chart: Option<Chart>,
pub config: Value,
pub manifest: String,
pub hooks: Vec<Hook>,
pub version: Revision,
pub namespace: String,
pub labels: BTreeMap<String, String>,
pub apply_method: Option<ApplyMethod>,
}Expand description
A deployment of a chart with the values used (Release).
Timestamps are jiff::Timestamps: they are written in UTC (Go writes the local offset;
the instant is the same), and Go’s zero time reads as None.
Fields§
§name: StringThe release name.
info: Option<Info>Status, times and notes.
chart: Option<Chart>The chart that was released.
config: ValueThe user-supplied values only, not the coalesced result (null when none).
manifest: StringThe rendered non-hook manifests as one YAML stream with # Source: comments.
hooks: Vec<Hook>The hooks, kept apart from manifest.
version: RevisionThe revision.
namespace: StringThe Kubernetes namespace of the release.
labels: BTreeMap<String, String>Custom release labels. Not part of the JSON: they live on the storage object, so only
store fills this in (system labels removed, as Helm does).
apply_method: Option<ApplyMethod>ssa or csa; None when the record has no field, which means client-side apply.
Implementations§
Source§impl Release
impl Release
Sourcepub fn decode(record: &[u8]) -> Result<Self, Error>
pub fn decode(record: &[u8]) -> Result<Self, Error>
Decodes a storage record: base64, then gzip when the gzip magic (1f 8b 08) is present,
then JSON (decodeRelease in pkg/storage/driver/util.go).
record is the base64 text. For a Secret that is data.release after the Kubernetes API
decoded the outer base64 (what kube-rs yields as bytes); for a ConfigMap it is the
data.release string. A raw kubectl get secret -o json value needs one more base64
decode first.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Release
impl<'de> Deserialize<'de> for Release
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>,
impl StructuralPartialEq for Release
Auto Trait Implementations§
impl Forget for Release
impl Freeze for Releasewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<Option<Maintainer>>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<Option<Dependency>>: Freeze,
PhantomData<File>: Freeze,
PhantomData<Chart>: Freeze,
PhantomData<Hook>: Freeze,
impl Move for Release
impl RefUnwindSafe for Release
impl Send for Release
impl Sync for Release
impl Unpin for Release
impl UnsafeUnpin for Releasewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Option<Maintainer>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<Option<Dependency>>: UnsafeUnpin,
PhantomData<File>: UnsafeUnpin,
PhantomData<Chart>: UnsafeUnpin,
PhantomData<Hook>: UnsafeUnpin,
impl UnwindSafe for Releasewhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, String>: 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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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