Skip to content

Commit cd15788

Browse files
authored
Change default namespace to olmv1-system (#283)
1 parent fae2442 commit cd15788

File tree

11 files changed

+21
-21
lines changed

11 files changed

+21
-21
lines changed

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@ release:
6767
kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.11.0/cert-manager.yaml
6868
kubectl wait --for=condition=Available --namespace=cert-manager deployment/cert-manager-webhook --timeout=60s
6969
kubectl apply -f https://github.com/operator-framework/catalogd/releases/download/{{ .Tag }}/catalogd.yaml
70-
kubectl wait --for=condition=Available --namespace=catalogd-system deployment/catalogd-controller-manager --timeout=60s
70+
kubectl wait --for=condition=Available --namespace=olmv1-system deployment/catalogd-controller-manager --timeout=60s
7171
```

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ endif
3333
# E2E configuration
3434
TESTDATA_DIR := testdata
3535

36-
CATALOGD_NAMESPACE := catalogd-system
36+
CATALOGD_NAMESPACE := olmv1-system
3737
KIND_CLUSTER_IMAGE := kindest/node:v1.30.0@sha256:047357ac0cfea04663786a612ba1eaba9702bef25227a794b52890dd8bcd692e
3838

3939
##@ General

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ Procedure steps marked with an asterisk (`*`) are likely to change with future A
9595
Events: <none>
9696
```
9797
98-
1. Port forward the `catalogd-catalogserver` service in the `catalogd-system` namespace:
98+
1. Port forward the `catalogd-catalogserver` service in the `olmv1-system` namespace:
9999
```sh
100-
$ kubectl -n catalogd-system port-forward svc/catalogd-catalogserver 8080:443
100+
$ kubectl -n olmv1-system port-forward svc/catalogd-catalogserver 8080:443
101101
```
102102
103103
1. Run the following command to get a list of packages:

cmd/manager/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func main() {
8484
"Enabling this will ensure there is only one active controller manager.")
8585
flag.StringVar(&systemNamespace, "system-namespace", "", "The namespace catalogd uses for internal state, configuration, and workloads")
8686
flag.StringVar(&catalogServerAddr, "catalogs-server-addr", ":8083", "The address where the unpacked catalogs' content will be accessible")
87-
flag.StringVar(&externalAddr, "external-address", "catalogd-catalogserver.catalogd-system.svc", "The external address at which the http(s) server is reachable.")
87+
flag.StringVar(&externalAddr, "external-address", "catalogd-catalogserver.olmv1-system.svc", "The external address at which the http(s) server is reachable.")
8888
flag.StringVar(&cacheDir, "cache-dir", "/var/cache/", "The directory in the filesystem that catalogd will use for file based caching")
8989
flag.BoolVar(&catalogdVersion, "version", false, "print the catalogd version and exit")
9090
flag.DurationVar(&gcInterval, "gc-interval", 12*time.Hour, "interval in which garbage collection should be run against the catalog content cache")
@@ -227,7 +227,7 @@ func main() {
227227
func podNamespace() string {
228228
namespace, err := os.ReadFile("/var/run/secrets/kubernetes.io/serviceaccount/namespace")
229229
if err != nil {
230-
return "catalogd-system"
230+
return "olmv1-system"
231231
}
232232
return string(namespace)
233233
}

config/base/default/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Adds namespace to all resources.
2-
namespace: catalogd-system
2+
namespace: olmv1-system
33

44
# Value of this field is prepended to the
55
# names of all resources, e.g. a deployment named

config/base/manager/manager.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
args:
7777
- --leader-elect
7878
- --metrics-bind-address=127.0.0.1:8080
79-
- --external-address=catalogd-catalogserver.catalogd-system.svc
79+
- --external-address=catalogd-catalogserver.olmv1-system.svc
8080
image: controller:latest
8181
name: manager
8282
volumeMounts:

config/base/nginx-ingress/resources/nginx_ingress.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: networking.k8s.io/v1
22
kind: Ingress
33
metadata:
44
name: catalogd-ingress
5-
namespace: catalogd-system
5+
namespace: olmv1-system
66
spec:
77
ingressClassName: nginx
88
rules:

config/overlays/cert-manager/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Adds namespace to all resources.
2-
namespace: catalogd-system
2+
namespace: olmv1-system
33

44
# Value of this field is prepended to the
55
# names of all resources, e.g. a deployment named

config/overlays/cert-manager/resources/certificate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
secretName: catalogd-catalogserver-cert
99
dnsNames:
1010
- localhost
11-
- catalogd-catalogserver.catalogd-system.svc
11+
- catalogd-catalogserver.olmv1-system.svc
1212
issuerRef:
1313
kind: Issuer
1414
name: catalogd-catalogserver-ca-issuer

docs/fetching-catalog-contents.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ of a catalog can be read from:
2121
reason: UnpackSuccessful
2222
status: "True"
2323
type: Unpacked
24-
contentURL: https://catalogd-catalogserver.catalogd-system.svc/catalogs/operatorhubio/all.json
24+
contentURL: https://catalogd-catalogserver.olmv1-system.svc/catalogs/operatorhubio/all.json
2525
phase: Unpacked
2626
resolvedSource:
2727
image:
@@ -37,20 +37,20 @@ object.
3737
3838
When making a request for the contents of the `operatorhubio` `ClusterCatalog` from within
3939
the cluster issue a HTTP `GET` request to
40-
`https://catalogd-catalogserver.catalogd-system.svc/catalogs/operatorhubio/all.json`
40+
`https://catalogd-catalogserver.olmv1-system.svc/catalogs/operatorhubio/all.json`
4141

4242
An example command to run a `Pod` to `curl` the catalog contents:
4343
```sh
44-
kubectl run fetcher --image=curlimages/curl:latest -- curl https://catalogd-catalogserver.catalogd-system.svc/catalogs/operatorhubio/all.json
44+
kubectl run fetcher --image=curlimages/curl:latest -- curl https://catalogd-catalogserver.olmv1-system.svc/catalogs/operatorhubio/all.json
4545
```
4646

4747
## Off cluster
4848

4949
When making a request for the contents of the `operatorhubio` `ClusterCatalog` from outside
5050
the cluster, we have to perform an extra step:
51-
1. Port forward the `catalogd-catalogserver` service in the `catalogd-system` namespace:
51+
1. Port forward the `catalogd-catalogserver` service in the `olmv1-system` namespace:
5252
```sh
53-
kubectl -n catalogd-system port-forward svc/catalogd-catalogserver 8080:443
53+
kubectl -n olmv1-system port-forward svc/catalogd-catalogserver 8080:443
5454
```
5555

5656
Once the service has been successfully forwarded to a localhost port, issue a HTTP `GET`
@@ -106,7 +106,7 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi
106106
kind: Ingress
107107
metadata:
108108
name: catalogd-nginx-ingress
109-
namespace: catalogd-system
109+
namespace: olmv1-system
110110
spec:
111111
ingressClassName: nginx
112112
rules:
@@ -123,7 +123,7 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi
123123
Let's verify that the `Ingress` object got created successfully from the sample by running the following command:
124124

125125
```sh
126-
$ kubectl describe ingress/catalogd-ingress -n catalogd-system
126+
$ kubectl describe ingress/catalogd-ingress -n olmv1-system
127127
```
128128

129129
1. Run the below example `curl` request to retrieve all of the catalog contents:
@@ -134,7 +134,7 @@ This section outlines a way of exposing the `Catalogd` Service's endpoints outsi
134134

135135
To obtain `address` of the ingress object, you can run the below command and look for the value in the `ADDRESS` field from output:
136136
```sh
137-
$ kubectl -n catalogd-system get ingress
137+
$ kubectl -n olmv1-system get ingress
138138
```
139139

140140
You can further use the `curl` commands outlined in the [Catalogd README](https://github.com/operator-framework/catalogd/blob/main/README.md) to filter out the JSON content by list of bundles, channels & packages.

hack/scripts/demo-script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sleep 10
99
# install catalogd on the cluster
1010
# could also `make install` in repo
1111
kubectl apply -f https://github.com/operator-framework/catalogd/releases/latest/download/catalogd.yaml
12-
kubectl wait --for=condition=Available -n catalogd-system deploy/catalogd-controller-manager --timeout=60s
12+
kubectl wait --for=condition=Available -n olmv1-system deploy/catalogd-controller-manager --timeout=60s
1313
sleep 10
1414
# inspect crds (catalog)
1515
kubectl get crds -A
@@ -22,7 +22,7 @@ kubectl get catalog -A
2222
time kubectl wait --for=condition=Unpacked catalog/operatorhubio --timeout=1m
2323

2424
# port forward the catalogd-catalogserver service to interact with the HTTP server serving catalog contents
25-
(kubectl -n catalogd-system port-forward svc/catalogd-catalogserver 8080:80)&
25+
(kubectl -n olmv1-system port-forward svc/catalogd-catalogserver 8080:80)&
2626

2727
# check what 'packages' are available in this catalog
2828
curl http://localhost:8080/catalogs/operatorhubio/all.json | jq -s '.[] | select(.schema == "olm.package") | .name'

0 commit comments

Comments
 (0)