IPBlock

io.k8s.api.networking.v1.IPBlock
See theIPBlock companion object
final case class IPBlock(cidr: String, except: Option[Seq[String]])

IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.

Attributes

Companion
object
Source
IPBlock.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addExcept(newValues: String*): IPBlock

Appends new values to except

Appends new values to except

Attributes

Source
IPBlock.scala

transforms cidr to result of function

transforms cidr to result of function

Attributes

Source
IPBlock.scala

if except has a value, transforms to the result of function

if except has a value, transforms to the result of function

Attributes

Source
IPBlock.scala
def withCidr(value: String): IPBlock

Returns a new data with cidr set to new value

Returns a new data with cidr set to new value

Attributes

Source
IPBlock.scala
def withExcept(value: Seq[String]): IPBlock

Returns a new data with except set to new value

Returns a new data with except set to new value

Attributes

Source
IPBlock.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product