pub struct PostgresPolicyStatus {Show 15 fields
pub conditions: Vec<PolicyCondition>,
pub observed_generation: Option<i64>,
pub last_attempted_generation: Option<i64>,
pub last_successful_reconcile_time: Option<String>,
pub last_reconcile_time: Option<String>,
pub change_summary: Option<ChangeSummary>,
pub last_reconcile_mode: Option<PolicyMode>,
pub planned_sql: Option<String>,
pub planned_sql_truncated: bool,
pub managed_database_identity: Option<String>,
pub owned_roles: Vec<String>,
pub owned_schemas: Vec<String>,
pub last_error: Option<String>,
pub applied_password_source_versions: BTreeMap<String, String>,
pub transient_failure_count: i32,
}Expand description
Status of a PostgresPolicy resource.
Fields§
§conditions: Vec<PolicyCondition>Standard Kubernetes conditions.
observed_generation: Option<i64>The .metadata.generation that was last successfully reconciled.
last_attempted_generation: Option<i64>The .metadata.generation that was last attempted.
last_successful_reconcile_time: Option<String>ISO 8601 timestamp of the last successful reconciliation.
last_reconcile_time: Option<String>Deprecated alias retained for compatibility with older status readers.
change_summary: Option<ChangeSummary>Summary of changes applied in the last reconciliation.
last_reconcile_mode: Option<PolicyMode>The reconciliation mode used for the last successful reconcile.
planned_sql: Option<String>Planned SQL for the last successful plan-mode reconcile.
planned_sql_truncated: boolWhether planned_sql was truncated to fit safely in status.
managed_database_identity: Option<String>Canonical identity of the managed database target.
owned_roles: Vec<String>Roles claimed by this policy’s declared ownership scope.
owned_schemas: Vec<String>Schemas claimed by this policy’s declared ownership scope.
last_error: Option<String>Last reconcile error message, if any.
applied_password_source_versions: BTreeMap<String, String>Last applied password source version for each password-managed role.
transient_failure_count: i32Consecutive transient operational failures used for exponential backoff.
Implementations§
Source§impl PostgresPolicyStatus
impl PostgresPolicyStatus
Sourcepub fn set_condition(&mut self, condition: PolicyCondition)
pub fn set_condition(&mut self, condition: PolicyCondition)
Set a condition, replacing any existing condition of the same type.
Trait Implementations§
Source§impl Clone for PostgresPolicyStatus
impl Clone for PostgresPolicyStatus
Source§fn clone(&self) -> PostgresPolicyStatus
fn clone(&self) -> PostgresPolicyStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PostgresPolicyStatus
impl Debug for PostgresPolicyStatus
Source§impl Default for PostgresPolicyStatus
impl Default for PostgresPolicyStatus
Source§fn default() -> PostgresPolicyStatus
fn default() -> PostgresPolicyStatus
Source§impl<'de> Deserialize<'de> for PostgresPolicyStatus
impl<'de> Deserialize<'de> for PostgresPolicyStatus
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 PostgresPolicyStatus
impl JsonSchema for PostgresPolicyStatus
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 inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PostgresPolicyStatus
impl RefUnwindSafe for PostgresPolicyStatus
impl Send for PostgresPolicyStatus
impl Sync for PostgresPolicyStatus
impl Unpin for PostgresPolicyStatus
impl UnsafeUnpin for PostgresPolicyStatus
impl UnwindSafe for PostgresPolicyStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request