Skip to content

Commit 331a16b

Browse files
committed
fixup! reorg kustomize
Signed-off-by: Todd Short <[email protected]>
1 parent eec65b2 commit 331a16b

File tree

5 files changed

+12
-18
lines changed

5 files changed

+12
-18
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ else
5454
$(warning Could not find docker or podman in path! This may result in targets requiring a container runtime failing!)
5555
endif
5656

57-
KUSTOMIZE_BUILD_DIR := config/secure
57+
KUSTOMIZE_BUILD_DIR := config/overlays/cert-manager
5858

5959
# Disable -j flag for make
6060
.NOTPARALLEL:
@@ -150,12 +150,12 @@ build-push-e2e-catalog: ## Build the testdata catalog used for e2e tests and pus
150150
# for example: ARTIFACT_PATH=/tmp/artifacts make test-e2e
151151
.PHONY: test-e2e
152152
test-e2e: KIND_CLUSTER_NAME := operator-controller-e2e
153-
test-e2e: KUSTOMIZE_BUILD_DIR := config/e2e
153+
test-e2e: KUSTOMIZE_BUILD_DIR := config/overlays/e2e
154154
test-e2e: GO_BUILD_FLAGS := -cover
155155
test-e2e: run image-registry build-push-e2e-catalog registry-load-bundles e2e e2e-coverage kind-clean #HELP Run e2e test suite on local kind cluster
156156

157157
.PHONY: extension-developer-e2e
158-
extension-developer-e2e: KUSTOMIZE_BUILD_DIR := config/secure
158+
extension-developer-e2e: KUSTOMIZE_BUILD_DIR := config/overlays/cert-manager
159159
extension-developer-e2e: KIND_CLUSTER_NAME := operator-controller-ext-dev-e2e #EXHELP Run extension-developer e2e on local kind cluster
160160
extension-developer-e2e: run image-registry test-ext-dev-e2e kind-clean
161161

config/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This provides an insecure (i.e. no TLS) basic configuration of operator-controll
66

77
This configuration specifies a namespace of `olmv1-system`.
88

9-
## config/secure
9+
## config/overlays/cert-manager
1010

1111
This includes support for a secure (i.e. with TLS) configuration of operator-controller. This configuration uses:
1212
* config/base
@@ -15,7 +15,7 @@ This includes support for a secure (i.e. with TLS) configuration of operator-con
1515

1616
This configuration requires cert-manager.
1717

18-
## config/e2e
18+
## config/overlays/e2e
1919

2020
This provides additional configuration support for end-to-end testing, including code coverage. This configuration uses:
2121
* config/base

config/components/tls/patches/manager_deployment_cert.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
- op: add
2-
path: /spec/template/spec/volumes/-
3-
value: {"name":"catalogd-certificate", "secret":{"secretName":"catalogd-catalogserver-cert", "optional": false, "items": [{"key": "ca.crt", "path": "catalogd.crt"}]}}
41
- op: add
52
path: /spec/template/spec/volumes/-
63
value: {"name":"olmv1-certificate", "secret":{"secretName":"olmv1-cert", "optional": false, "items": [{"key": "ca.crt", "path": "olm-ca.crt"}]}}
7-
- op: add
8-
path: /spec/template/spec/containers/0/volumeMounts/-
9-
value: {"name":"catalogd-certificate", "readOnly": true, "mountPath":"/var/certs/catalogd.crt", "subPath":"catalogd.crt"}
104
- op: add
115
path: /spec/template/spec/containers/0/volumeMounts/-
126
value: {"name":"olmv1-certificate", "readOnly": true, "mountPath":"/var/certs/olm-ca.crt", "subPath":"olm-ca.crt"}

config/secure/kustomization.yaml renamed to config/overlays/cert-manager/kustomization.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
resources:
6-
- ../base
6+
- ../../base
77
components:
8-
- ../components/tls
8+
- ../../components/tls
99
# ca must be last or tls will overwrite the namespaces
10-
- ../components/ca
10+
- ../../components/ca

config/e2e/kustomization.yaml renamed to config/overlays/e2e/kustomization.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
resources:
6-
- ../base
6+
- ../../base
77
components:
8-
- ../components/tls
9-
- ../components/coverage
8+
- ../../components/tls
9+
- ../../components/coverage
1010
# ca must be last or (tls|coverage) will overwrite the namespaces
11-
- ../components/ca
11+
- ../../components/ca

0 commit comments

Comments
 (0)