From 01ec929ddb7564fe672f391854cdc2d84218d546 Mon Sep 17 00:00:00 2001 From: arora Date: Mon, 2 Sep 2024 18:17:04 +0200 Subject: [PATCH] Removing rhsm certificates, not needed. --- ci-scripts/cls_containerize.py | 3 --- openshift/README.md | 2 -- openshift/oai-gnb-fhi72-bc.yaml | 7 ------- openshift/ran-base-bc.yaml | 7 ------- 4 files changed, 19 deletions(-) diff --git a/ci-scripts/cls_containerize.py b/ci-scripts/cls_containerize.py index 94d7526813..ca7ca2608f 100644 --- a/ci-scripts/cls_containerize.py +++ b/ci-scripts/cls_containerize.py @@ -335,9 +335,6 @@ class Containerize(): # if asterix, copy the entitlement and subscription manager configurations if self.host == 'Red Hat': - cmd.run('mkdir -p ./etc-pki-entitlement ./rhsm-conf ./rhsm-ca') - cmd.run('cp /etc/rhsm/rhsm.conf ./rhsm-conf/') - cmd.run('cp /etc/rhsm/ca/redhat-uep.pem ./rhsm-ca/') cmd.run('cp /etc/pki/entitlement/*.pem ./etc-pki-entitlement/') baseImage = 'ran-base' diff --git a/openshift/README.md b/openshift/README.md index 5560621e68..e5a2b00bdd 100644 --- a/openshift/README.md +++ b/openshift/README.md @@ -53,8 +53,6 @@ In case you have difficulties in following it then you can copy the certificates from an RHEL9 host ```bash -oc create configmap rhsm-conf --from-file /etc/rhsm/rhsm.conf -oc create configmap rhsm-ca --from-file /etc/rhsm/ca/redhat-uep.pem oc create secret generic etc-pki-entitlement --from-file /etc/pki/entitlement/{NUMBER_ON_YOUR_COMPUTER}.pem --from-file /etc/pki/entitlement/{NUMBER_ON_YOUR_COMPUTER}-key.pem ``` diff --git a/openshift/oai-gnb-fhi72-bc.yaml b/openshift/oai-gnb-fhi72-bc.yaml index 2d8861e2d6..0e453ae379 100644 --- a/openshift/oai-gnb-fhi72-bc.yaml +++ b/openshift/oai-gnb-fhi72-bc.yaml @@ -32,13 +32,6 @@ spec: - secret: name: etc-pki-entitlement destinationDir: etc-pki-entitlement - configMaps: - - configMap: - name: rhsm-conf - destinationDir: rhsm-conf - - configMap: - name: rhsm-ca - destinationDir: rhsm-ca strategy: dockerStrategy: dockerfilePath: "docker/Dockerfile.gNB.fhi72.rhel9" diff --git a/openshift/ran-base-bc.yaml b/openshift/ran-base-bc.yaml index 788e980fef..5707e64abb 100644 --- a/openshift/ran-base-bc.yaml +++ b/openshift/ran-base-bc.yaml @@ -34,13 +34,6 @@ spec: - secret: name: etc-pki-entitlement destinationDir: etc-pki-entitlement - configMaps: - - configMap: - name: rhsm-conf - destinationDir: rhsm-conf - - configMap: - name: rhsm-ca - destinationDir: rhsm-ca strategy: dockerStrategy: dockerfilePath: "docker/Dockerfile.base.rhel9"