Skip to content

Commit 300b2f3

Browse files
camilamacedo86ci-robot
authored andcommitted
UPSTREAM: <carry>: Move operator-controller openshift files to its own dir
1 parent 5f50f1f commit 300b2f3

File tree

41 files changed

+13
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+13
-13
lines changed

openshift/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ verify: ## Run downstream-specific verify
1515

1616
.PHONY: manifests
1717
manifests: $(KUSTOMIZE) $(YQ)
18-
$(DIR)/generate-manifests.sh
18+
$(DIR)/operator-controller/generate-manifests.sh
1919

2020
.PHONY: verify-manifests
2121
verify-manifests: manifests
@@ -32,6 +32,6 @@ export CATALOG_IMG := $(LOCAL_REGISTRY_HOST)/$(E2E_TEST_CATALOG_V1)
3232
export DOWNSTREAM_E2E_FLAGS := -count=1 -v -skip 'TestClusterExtensionInstallReResolvesWhenNewCatalog|TestClusterExtensionInstallRegistry/package_requires_mirror_registry_configuration_in_/etc/containers/registries.conf'
3333
.PHONY: test-e2e
3434
test-e2e: ## Run the e2e tests.
35-
$(DIR)/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME) $(E2E_REGISTRY_IMAGE)
35+
$(DIR)/operator-controller/build-test-registry.sh $(E2E_REGISTRY_NAMESPACE) $(E2E_REGISTRY_NAME) $(E2E_REGISTRY_IMAGE)
3636
cd $(DIR)/../; \
3737
go test $(DOWNSTREAM_E2E_FLAGS) ./test/e2e/...;

openshift/operator-controller.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RUN make go-build-local
66
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
77
USER 1001
88
COPY --from=builder /build/bin/operator-controller /operator-controller
9-
COPY openshift/manifests /openshift/manifests
9+
COPY openshift/operator-controller/manifests /openshift/manifests
1010

1111
LABEL io.k8s.display-name="OpenShift Operator Lifecycle Manager Operator Controller" \
1212
io.k8s.description="This is a component of OpenShift Container Platform that allows operator installation."
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build tools
22
// +build tools
33

4-
package openshift
4+
package operator_controller
55

66
import _ "github.com/openshift/build-machinery-go"

openshift/generate-manifests.sh renamed to openshift/operator-controller/generate-manifests.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ FLAG_MAPPINGS[global-pull-secret]="openshift-config/pull-secret"
3838
##################################################
3939

4040
# Know where the repo root is so we can reference things relative to it
41-
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
41+
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
4242

4343
# Source bingo so we can use kustomize and yq
4444
. "${REPO_ROOT}/openshift/.bingo/variables.env"
@@ -50,8 +50,8 @@ trap 'rm -rf $TMP_ROOT' EXIT
5050

5151
# Copy all kustomize files into a temp dir
5252
cp -a "${REPO_ROOT}/config" "${TMP_ROOT}/config"
53-
mkdir -p "${TMP_ROOT}/openshift"
54-
cp -a "${REPO_ROOT}/openshift/kustomize" "${TMP_ROOT}/openshift/kustomize"
53+
mkdir -p "${TMP_ROOT}/openshift/operator-controller/"
54+
cp -a "${REPO_ROOT}/openshift/operator-controller/kustomize" "${TMP_ROOT}/openshift/operator-controller/kustomize"
5555

5656
# Override OPENSHIFT-NAMESPACE to ${NAMESPACE}
5757
find "${TMP_ROOT}" -name "*.yaml" -exec sed -i'.bak' "s/OPENSHIFT-NAMESPACE/${NAMESPACE}/g" {} \;
@@ -63,7 +63,7 @@ mkdir -p "$TMP_MANIFEST_DIR"
6363

6464
# Run kustomize, which emits a single yaml file
6565
TMP_KUSTOMIZE_OUTPUT="${TMP_MANIFEST_DIR}/temp.yaml"
66-
$KUSTOMIZE build "${TMP_ROOT}/openshift/kustomize/overlays/openshift" -o "$TMP_KUSTOMIZE_OUTPUT"
66+
$KUSTOMIZE build "${TMP_ROOT}/openshift/operator-controller/kustomize/overlays/openshift" -o "$TMP_KUSTOMIZE_OUTPUT"
6767

6868
for container_name in "${!IMAGE_MAPPINGS[@]}"; do
6969
placeholder="${IMAGE_MAPPINGS[$container_name]}"
@@ -98,7 +98,7 @@ done
9898
rm "$TMP_KUSTOMIZE_OUTPUT"
9999

100100
# Delete and recreate the actual manifests directory
101-
MANIFEST_DIR="${REPO_ROOT}/openshift/manifests"
101+
MANIFEST_DIR="${REPO_ROOT}/openshift/operator-controller/manifests"
102102
rm -rf "${MANIFEST_DIR}"
103103
mkdir -p "${MANIFEST_DIR}"
104104

openshift/kustomize/overlays/openshift/olmv1-ns/kustomization.yaml renamed to openshift/operator-controller/kustomize/overlays/openshift/olmv1-ns/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
namespace: OPENSHIFT-NAMESPACE
33

44
resources:
5-
- ../../../../../config/base/crd
6-
- ../../../../../config/base/rbac
7-
- ../../../../../config/base/manager
5+
- ../../../../../../config/base/crd
6+
- ../../../../../../config/base/rbac
7+
- ../../../../../../config/base/manager
88
- trusted-ca/operator_controller_trusted_ca_configmap.yaml
99

1010
patches:

openshift/registry.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM registry.ci.openshift.org/ocp/4.18:base-rhel9
1010
USER 1001
1111
COPY --from=builder /build/registry /registry
1212
COPY --from=builder /build/push /push
13-
COPY openshift/manifests /openshift/manifests
13+
COPY openshift/operator-controller/manifests /openshift/manifests
1414
COPY testdata/images /images
1515

1616
LABEL io.k8s.display-name="OpenShift Operator Lifecycle Manager Operator Controller E2E Registry" \

0 commit comments

Comments
 (0)