From 18f34a7bc3d74c145a51515b2a1eddceea5eb7da Mon Sep 17 00:00:00 2001 From: Karol Wozniak Date: Thu, 21 Nov 2024 16:15:35 +0100 Subject: [PATCH 1/2] ILS-247 adjust to envsubst usage --- .../ibm-license-service-reporter-oidc-egress.yaml | 2 +- ...license-service-reporter-operator-k8s-cncf-egress.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml b/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml index 0de56fedd..59ede6f72 100644 --- a/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml +++ b/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml @@ -10,6 +10,6 @@ spec: egress: - to: - ipBlock: - cidr: # Replace with actual CIDR range + cidr: ${OIDC-CIRD} # CIDR of OIDC policyTypes: - Egress \ No newline at end of file diff --git a/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-operator-k8s-cncf-egress.yaml b/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-operator-k8s-cncf-egress.yaml index 30846962c..889d2a0c1 100644 --- a/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-operator-k8s-cncf-egress.yaml +++ b/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-operator-k8s-cncf-egress.yaml @@ -13,11 +13,11 @@ spec: matchLabels: name: ibm-license-service-reporter-operator egress: - - ports: - - protocol: TCP - port: <$TargetPort> # TargetPort from the DEFAULT KUBERNETES SERVICE + - ports:S + - protocol: TCP + port: ${K8-API-SERVER-PORT} # TargetPort from the DEFAULT KUBERNETES SERVICE to: - ipBlock: - cidr: /32 # IPs from the DEFAULT KUBERNETES SERVICE + cidr: ${K8-API-SERVER-CIRD} # IP from the DEFAULT KUBERNETES SERVICE policyTypes: - Egress \ No newline at end of file From c49d6a966b1a8d1fc57bda25c91dd981ec6f8ccc Mon Sep 17 00:00:00 2001 From: Karol Wozniak Date: Thu, 21 Nov 2024 16:47:52 +0100 Subject: [PATCH 2/2] REVIEW: Unnecessary comment removed Co-authored-by: Piotr Godowski --- .../ibm-license-service-reporter-oidc-egress.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml b/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml index 59ede6f72..e4bc165e0 100644 --- a/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml +++ b/cp3-networkpolicy/egress/license-service-reporter-manually/ibm-license-service-reporter-oidc-egress.yaml @@ -10,6 +10,6 @@ spec: egress: - to: - ipBlock: - cidr: ${OIDC-CIRD} # CIDR of OIDC + cidr: ${OIDC-CIDF} policyTypes: - Egress \ No newline at end of file