File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -342,7 +342,33 @@ func (s *Genesis) getWSNetworkPolicy() *networkingv1.NetworkPolicy {
342342 },
343343
344344 {
345+ Ports : []networkingv1.NetworkPolicyPort {
346+ {
347+ Protocol : & tcpProtocol ,
348+ Port : & intstr.IntOrString {
349+ IntVal : 8080 ,
350+ },
351+ },
352+ },
353+ To : []networkingv1.NetworkPolicyPeer {
354+ {
355+ PodSelector : & k8smetav1.LabelSelector {
356+ MatchLabels : map [string ]string {
357+ "app" : "octelium" ,
358+ "octelium.com/component" : "ingress-dataplane" ,
359+ "octelium.com/component-type" : "cluster" ,
360+ },
361+ },
362+ NamespaceSelector : & k8smetav1.LabelSelector {
363+ MatchLabels : map [string ]string {
364+ "kubernetes.io/metadata.name" : "octelium" ,
365+ },
366+ },
367+ },
368+ },
369+ },
345370
371+ {
346372 Ports : []networkingv1.NetworkPolicyPort {
347373 {
348374 Protocol : & tcpProtocol ,
You can’t perform that action at this time.
0 commit comments