pub struct KubectlConfig {
pub read_only: Vec<String>,
pub mutating: Vec<String>,
pub allowed_with_config: Vec<String>,
pub config_env: HashMap<String, String>,
}Expand description
kubectl subcommand evaluation rules.
Fields§
§read_only: Vec<String>Read-only subcommands that are always allowed (e.g. get, describe, logs).
mutating: Vec<String>Known mutating subcommands that always require confirmation (e.g. apply, delete).
allowed_with_config: Vec<String>Subcommands allowed only when all config_env entries match.
config_env: HashMap<String, String>Environment variable requirements for allowed_with_config subcommands.
Trait Implementations§
Source§impl Debug for KubectlConfig
impl Debug for KubectlConfig
Source§impl Default for KubectlConfig
impl Default for KubectlConfig
Source§fn default() -> KubectlConfig
fn default() -> KubectlConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KubectlConfig
impl<'de> Deserialize<'de> for KubectlConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KubectlConfig
impl RefUnwindSafe for KubectlConfig
impl Send for KubectlConfig
impl Sync for KubectlConfig
impl Unpin for KubectlConfig
impl UnsafeUnpin for KubectlConfig
impl UnwindSafe for KubectlConfig
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
Mutably borrows from an owned value. Read more