class K8S::Api::Networking::V1::NetworkPolicySpec

Overview

NetworkPolicySpec provides the specification of a NetworkPolicy

Included Modules

Defined in:

versions/v1.19/api/networking/v1/network_policy_spec.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector, egress : Array? = nil, ingress : Array? = nil, policy_types : Array? = nil) #

[View source]

Instance Method Detail


[View source]
def egress=(egress : Array(Api::Networking::V1::NetworkPolicyEgressRule)?) #

[View source]

[View source]
def ingress=(ingress : Array(Api::Networking::V1::NetworkPolicyIngressRule)?) #

[View source]

[View source]
def pod_selector=(pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector) #

[View source]
def policy_types : Array(String)? #

[View source]
def policy_types=(policy_types : Array(String)?) #

[View source]