class Pyrite::Api::Networking::V1::NetworkPolicySpec

Overview

NetworkPolicySpec provides the specification of a NetworkPolicy

Defined in:

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

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

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

NetworkPolicySpec provides the specification of a NetworkPolicy


def self.new(pull : JSON::PullParser) #

NetworkPolicySpec provides the specification of a NetworkPolicy


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

Instance Method Detail


def egress=(egress : Array(Api::Networking::V1::NetworkPolicyEgressRule)?) #


def ingress=(ingress : Array(Api::Networking::V1::NetworkPolicyIngressRule)?) #


def pod_selector=(pod_selector : Apimachinery::Apis::Meta::V1::LabelSelector) #

def policy_types : Array(String)? #

def policy_types=(policy_types : Array(String)?) #