import { IComGithubCiliumCiliumPkgPolicyApiCIDR } from "./CIDR.js"; import { IComGithubCiliumCiliumPkgPolicyApiCIDRGroupRef } from "./CIDRGroupRef.js"; import { IComGithubCiliumCiliumPkgPolicyApiEndpointSelector } from "./EndpointSelector.js"; /** * CIDRRule is a rule that specifies a CIDR prefix to/from which outside * communication is allowed, along with an optional list of subnets within that * CIDR prefix to/from which outside communication is not allowed. */ export type ICIDRRule = { /** * CIDR is a CIDR prefix / IP Block. */ "cidr"?: IComGithubCiliumCiliumPkgPolicyApiCIDR; /** * CIDRGroupRef is a reference to a CiliumCIDRGroup object. * A CiliumCIDRGroup contains a list of CIDRs that the endpoint, subject to * the rule, can (Ingress/Egress) or cannot (IngressDeny/EgressDeny) receive * connections from. */ "cidrGroupRef"?: IComGithubCiliumCiliumPkgPolicyApiCIDRGroupRef; /** * CIDRGroupSelector selects CiliumCIDRGroups by their labels, * rather than by name. */ "cidrGroupSelector"?: IComGithubCiliumCiliumPkgPolicyApiEndpointSelector; /** * ExceptCIDRs is a list of IP blocks which the endpoint subject to the rule * is not allowed to initiate connections to. These CIDR prefixes should be * contained within Cidr, using ExceptCIDRs together with CIDRGroupRef is not * supported yet. * These exceptions are only applied to the Cidr in this CIDRRule, and do not * apply to any other CIDR prefixes in any other CIDRRules. */ "except"?: Array; } & ({ /** * CIDR is a CIDR prefix / IP Block. */ "cidr": IComGithubCiliumCiliumPkgPolicyApiCIDR; /** * CIDRGroupRef is a reference to a CiliumCIDRGroup object. * A CiliumCIDRGroup contains a list of CIDRs that the endpoint, subject to * the rule, can (Ingress/Egress) or cannot (IngressDeny/EgressDeny) receive * connections from. */ "cidrGroupRef"?: IComGithubCiliumCiliumPkgPolicyApiCIDRGroupRef; /** * CIDRGroupSelector selects CiliumCIDRGroups by their labels, * rather than by name. */ "cidrGroupSelector"?: IComGithubCiliumCiliumPkgPolicyApiEndpointSelector; /** * ExceptCIDRs is a list of IP blocks which the endpoint subject to the rule * is not allowed to initiate connections to. These CIDR prefixes should be * contained within Cidr, using ExceptCIDRs together with CIDRGroupRef is not * supported yet. * These exceptions are only applied to the Cidr in this CIDRRule, and do not * apply to any other CIDR prefixes in any other CIDRRules. */ "except"?: Array; } | { /** * CIDR is a CIDR prefix / IP Block. */ "cidr"?: IComGithubCiliumCiliumPkgPolicyApiCIDR; /** * CIDRGroupRef is a reference to a CiliumCIDRGroup object. * A CiliumCIDRGroup contains a list of CIDRs that the endpoint, subject to * the rule, can (Ingress/Egress) or cannot (IngressDeny/EgressDeny) receive * connections from. */ "cidrGroupRef": IComGithubCiliumCiliumPkgPolicyApiCIDRGroupRef; /** * CIDRGroupSelector selects CiliumCIDRGroups by their labels, * rather than by name. */ "cidrGroupSelector"?: IComGithubCiliumCiliumPkgPolicyApiEndpointSelector; /** * ExceptCIDRs is a list of IP blocks which the endpoint subject to the rule * is not allowed to initiate connections to. These CIDR prefixes should be * contained within Cidr, using ExceptCIDRs together with CIDRGroupRef is not * supported yet. * These exceptions are only applied to the Cidr in this CIDRRule, and do not * apply to any other CIDR prefixes in any other CIDRRules. */ "except"?: Array; } | { /** * CIDR is a CIDR prefix / IP Block. */ "cidr"?: IComGithubCiliumCiliumPkgPolicyApiCIDR; /** * CIDRGroupRef is a reference to a CiliumCIDRGroup object. * A CiliumCIDRGroup contains a list of CIDRs that the endpoint, subject to * the rule, can (Ingress/Egress) or cannot (IngressDeny/EgressDeny) receive * connections from. */ "cidrGroupRef"?: IComGithubCiliumCiliumPkgPolicyApiCIDRGroupRef; /** * CIDRGroupSelector selects CiliumCIDRGroups by their labels, * rather than by name. */ "cidrGroupSelector": IComGithubCiliumCiliumPkgPolicyApiEndpointSelector; /** * ExceptCIDRs is a list of IP blocks which the endpoint subject to the rule * is not allowed to initiate connections to. These CIDR prefixes should be * contained within Cidr, using ExceptCIDRs together with CIDRGroupRef is not * supported yet. * These exceptions are only applied to the Cidr in this CIDRRule, and do not * apply to any other CIDR prefixes in any other CIDRRules. */ "except"?: Array; }); export type CIDRRule = ICIDRRule; export type { ICIDRRule as IComGithubCiliumCiliumPkgPolicyApiCIDRRule, CIDRRule as ComGithubCiliumCiliumPkgPolicyApiCIDRRule };