pub struct Declaration {
pub application: Option<String>,
pub automated: Option<bool>,
pub digest: Option<String>,
pub env: Option<Vec<DeclareEnv>>,
pub hosts: Option<Vec<String>>,
pub name: Option<String>,
pub org: Option<String>,
pub path: Option<String>,
pub project: Option<String>,
pub replicas: Option<i32>,
pub repository: Option<String>,
pub tag: Option<String>,
}Fields§
§application: Option<String>Application is the CD Application name the generator mints:
automated: Option<bool>Automated is cd.automated: false means the Application reports drift and NOTHING moves. It is off by default for a new file on purpose.
digest: Option<String>image.digest — wins over tag
env: Option<Vec<DeclareEnv>>Env is the declared container environment, as the chart’s list of {name,value}. It is read back so a re-declare of an identical body is a no-op rather than a refusal — idempotency is what makes a retry safe.
hosts: Option<Vec<String>>ingress.hosts, both shapes flattened
name: Option<String>the Helm release name — the file’s basename
org: Option<String>Org is the owner. It is ALSO the values directory and the destination namespace, because those are one value under one name — see the header.
path: Option<String>Path is the file, relative to the repository root.
project: Option<String>Project is the AppProject the sync is admitted under, derived from the directory exactly as the ApplicationSet derives it. It differs from Org for a reserved directory, which syncs under the platform fence.
replicas: Option<i32>§repository: Option<String>image.repository
tag: Option<String>image.tag
Implementations§
Source§impl Declaration
impl Declaration
pub fn new() -> Declaration
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more