class K8S::Api::Networking::V1::NetworkPolicySpec
- K8S::Api::Networking::V1::NetworkPolicySpec
- Reference
- Object
Overview
NetworkPolicySpec provides the specification of a NetworkPolicy
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
versions/v1.21/api/networking/v1/network_policy_spec.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector, egress : Array? = nil, ingress : Array? = nil, policy_types : Array? = nil)
Instance Method Summary
- #egress : Array(Api::Networking::V1::NetworkPolicyEgressRule)?
- #egress=(egress : Array(Api::Networking::V1::NetworkPolicyEgressRule)?)
- #ingress : Array(Api::Networking::V1::NetworkPolicyIngressRule)?
- #ingress=(ingress : Array(Api::Networking::V1::NetworkPolicyIngressRule)?)
- #pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector
- #pod_selector=(pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector)
- #policy_types : Array(String)?
- #policy_types=(policy_types : Array(String)?)
Constructor Detail
def self.new(*, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector, egress : Array? = nil, ingress : Array? = nil, policy_types : Array? = nil)
#