mirror of https://github.com/linkerd/linkerd2.git
23 lines
490 B
Rust
23 lines
490 B
Rust
use super::{LocalTargetRef, NamespacedTargetRef};
|
|
|
|
#[derive(
|
|
Clone,
|
|
Debug,
|
|
Default,
|
|
kube::CustomResource,
|
|
serde::Deserialize,
|
|
serde::Serialize,
|
|
schemars::JsonSchema,
|
|
)]
|
|
#[kube(
|
|
group = "policy.linkerd.io",
|
|
version = "v1alpha1",
|
|
kind = "AuthorizationPolicy",
|
|
namespaced
|
|
)]
|
|
#[serde(rename_all = "camelCase")]
|
|
pub struct AuthorizationPolicySpec {
|
|
pub target_ref: LocalTargetRef,
|
|
pub required_authentication_refs: Vec<NamespacedTargetRef>,
|
|
}
|