Skip to content

Commit aa07d90

Browse files
authored
Update environment.rs (#794)
1 parent 2c0f42e commit aa07d90

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/controllers/config/environment.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,14 @@ pub struct Variable {
9898
pub is_optional: Option<bool>,
9999
}
100100

101+
#[skip_serializing_none]
102+
#[derive(Debug, Clone, Deserialize, Serialize, Default, JsonSchema)]
103+
#[serde(default, rename_all = "camelCase")]
104+
pub struct RegistryCredentials {
105+
pub username: Option<String>,
106+
pub password: Option<String>,
107+
}
108+
101109
#[skip_serializing_none]
102110
#[derive(Debug, Clone, Deserialize, Serialize, Default, JsonSchema)]
103111
#[serde(default, rename_all = "camelCase")]
@@ -111,6 +119,7 @@ pub struct DeployConfig {
111119
pub restart_policy_type: Option<String>, // ON_FAILURE | ALWAYS | NEVER
112120
pub restart_policy_max_retries: Option<i64>,
113121
pub sleep_application: Option<bool>,
122+
pub registry_credentials: Option<RegistryCredentials>,
114123
}
115124

116125
#[skip_serializing_none]

0 commit comments

Comments
 (0)