Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit ed0843b

Browse files
committed
Release v0.5.0
1 parent ea1151f commit ed0843b

File tree

9 files changed

+569
-8
lines changed

9 files changed

+569
-8
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Release 0.5.0
2+
- Release artifacts now split out the default bundles from the rest of
3+
the release. This allows a user to update the operator without
4+
overwriting their bundle configurations.
5+
- Add a new `spec.url` field to `CrcBundle` resources to specify an
6+
optional URL that will be used, if given, when provisioning
7+
persistent clusters. This URL should point to a qcow2 or raw virtual
8+
machine image over HTTP or HTTPS. This significantly speeds up the
9+
initial provisioning time of persistent clusters compared to using a
10+
container image. Container images are still used for all
11+
non-persistent clusters.
12+
113
# Release 0.4.3
214
- Added an OpenShift 4.5.0-rc.6 bundle in the default install
315

DEVELOPMENT.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ make release
5454
git add version/version.go
5555
git add deploy/releases/release-v${RELEASE_VERSION}_crd.yaml
5656
git add deploy/releases/release-v${RELEASE_VERSION}.yaml
57+
git add deploy/releases/release-v${RELEASE_VERSION}_bundles.yaml
5758
git commit -m "Release v${RELEASE_VERSION}"
5859
git tag v${RELEASE_VERSION}
5960
git push origin master --tags

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ release:
2020
@echo -e "\n---\n" >> deploy/releases/release-v$(RELEASE_VERSION).yaml
2121
@cat deploy/operator.yaml | sed -e "s|REPLACE_IMAGE|quay.io/bbrowning/crc-operator:v$(RELEASE_VERSION)|g" -e "s|REPLACE_ROUTES_HELPER_IMAGE|quay.io/bbrowning/crc-operator-routes-helper:v$(RELEASE_VERSION)|g" >> deploy/releases/release-v$(RELEASE_VERSION).yaml
2222
@echo -e "\n---\n" >> deploy/releases/release-v$(RELEASE_VERSION).yaml >> deploy/releases/release-v$(RELEASE_VERSION).yaml
23-
@cat deploy/crds/crc.developer.openshift.io_v1alpha1_crcbundle_cr.yaml >> deploy/releases/release-v$(RELEASE_VERSION).yaml
23+
@cat deploy/crds/crc.developer.openshift.io_v1alpha1_crcbundle_cr.yaml > deploy/releases/release-v$(RELEASE_VERSION)_bundles.yaml
2424
@cat deploy/crds/crc.developer.openshift.io_crcclusters_crd.yaml > deploy/releases/release-v$(RELEASE_VERSION)_crd.yaml
2525
@echo -e "\n---\n" >> deploy/releases/release-v$(RELEASE_VERSION)_crd.yaml
2626
@cat deploy/crds/crc.developer.openshift.io_crcbundles_crd.yaml >> deploy/releases/release-v$(RELEASE_VERSION)_crd.yaml

README.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ Create the necessary Custom Resource Definitions
6868

6969
```
7070
71-
oc apply -f https://github.com/bbrowning/crc-operator/releases/download/v0.4.3/release-v0.4.3_crd.yaml
71+
oc apply -f https://github.com/bbrowning/crc-operator/releases/download/v0.5.0/release-v0.5.0_crd.yaml
7272
```
7373

7474
Deploy the operator
7575

7676
```
7777
oc create ns crc-operator
78-
oc apply -f https://github.com/bbrowning/crc-operator/releases/download/v0.4.3/release-v0.4.3.yaml
78+
oc apply -f https://github.com/bbrowning/crc-operator/releases/download/v0.5.0/release-v0.5.0.yaml
7979
```
8080

8181
Ensure the operator comes up with no errors in its logs
@@ -84,6 +84,14 @@ Ensure the operator comes up with no errors in its logs
8484
oc logs deployment/crc-operator -n crc-operator
8585
```
8686

87+
Deploy some bundles - the actual CRC virtual machine images. A default
88+
set that anyone can use is shipped with each release. Advanced users
89+
may want to create their own as described in [DEVELOPMENT.md]().
90+
91+
```
92+
oc apply -f https://github.com/bbrowning/crc-operator/releases/download/v0.5.0/release-v0.5.0.yaml
93+
```
94+
8795
## Create a CRC cluster
8896

8997
Copy your OpenShift pull secret into a file called `pull-secret`, and
@@ -99,8 +107,7 @@ Create a crc namespace:
99107
oc create ns crc
100108
```
101109

102-
Create an OpenShift 4.4.5 cluster (the default if `bundleName` is
103-
unspecified) with ephemeral storage:
110+
Create an OpenShift 4.4.8 cluster with ephemeral storage:
104111

105112
```
106113
cat <<EOF | oc apply -f -
@@ -113,7 +120,7 @@ spec:
113120
cpu: 6
114121
memory: 16Gi
115122
pullSecret: $(cat pull-secret | base64 -w 0)
116-
bundleName: ocp445
123+
bundleName: ocp448
117124
EOF
118125
```
119126

deploy/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ spec:
3636
- name: ROUTES_HELPER_IMAGE
3737
value: REPLACE_ROUTES_HELPER_IMAGE
3838
- name: DEFAULT_BUNDLE_NAME
39-
value: ocp445
39+
value: ocp448

deploy/releases/release-v0.5.0.yaml

Lines changed: 205 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,205 @@
1+
apiVersion: v1
2+
kind: ServiceAccount
3+
metadata:
4+
name: crc-operator
5+
namespace: crc-operator
6+
7+
---
8+
9+
apiVersion: rbac.authorization.k8s.io/v1
10+
kind: ClusterRole
11+
metadata:
12+
creationTimestamp: null
13+
name: crc-operator
14+
rules:
15+
- apiGroups:
16+
- ""
17+
resources:
18+
- pods
19+
- services
20+
- services/finalizers
21+
- endpoints
22+
- persistentvolumeclaims
23+
- events
24+
- configmaps
25+
- secrets
26+
- serviceaccounts
27+
verbs:
28+
- create
29+
- delete
30+
- get
31+
- list
32+
- patch
33+
- update
34+
- watch
35+
- apiGroups:
36+
- apps
37+
resources:
38+
- deployments
39+
- replicasets
40+
verbs:
41+
- create
42+
- delete
43+
- get
44+
- list
45+
- patch
46+
- update
47+
- watch
48+
- apiGroups:
49+
- monitoring.coreos.com
50+
resources:
51+
- servicemonitors
52+
verbs:
53+
- get
54+
- create
55+
- apiGroups:
56+
- apps
57+
resourceNames:
58+
- crc-operator
59+
resources:
60+
- deployments/finalizers
61+
verbs:
62+
- update
63+
- apiGroups:
64+
- ""
65+
resources:
66+
- pods
67+
verbs:
68+
- get
69+
- apiGroups:
70+
- apps
71+
resources:
72+
- replicasets
73+
- deployments
74+
verbs:
75+
- get
76+
- apiGroups:
77+
- crc.developer.openshift.io
78+
resources:
79+
- "*"
80+
verbs:
81+
- create
82+
- delete
83+
- get
84+
- list
85+
- patch
86+
- update
87+
- watch
88+
- apiGroups:
89+
- kubevirt.io
90+
resources:
91+
- virtualmachines
92+
verbs:
93+
- create
94+
- delete
95+
- get
96+
- list
97+
- patch
98+
- update
99+
- watch
100+
- apiGroups:
101+
- config.openshift.io
102+
resources:
103+
- ingresses
104+
verbs:
105+
- get
106+
- list
107+
- watch
108+
- apiGroups:
109+
- networking.k8s.io
110+
resources:
111+
- ingresses
112+
verbs:
113+
- create
114+
- delete
115+
- get
116+
- list
117+
- patch
118+
- update
119+
- watch
120+
- apiGroups:
121+
- route.openshift.io
122+
resources:
123+
- routes
124+
- routes/custom-host
125+
verbs:
126+
- create
127+
- delete
128+
- get
129+
- list
130+
- patch
131+
- update
132+
- watch
133+
- apiGroups:
134+
- rbac.authorization.k8s.io
135+
resources:
136+
- roles
137+
- rolebindings
138+
verbs:
139+
- create
140+
- delete
141+
- get
142+
- list
143+
- patch
144+
- update
145+
- watch
146+
147+
---
148+
149+
kind: ClusterRoleBinding
150+
apiVersion: rbac.authorization.k8s.io/v1
151+
metadata:
152+
name: crc-operator
153+
subjects:
154+
- kind: ServiceAccount
155+
name: crc-operator
156+
namespace: crc-operator
157+
roleRef:
158+
kind: ClusterRole
159+
name: crc-operator
160+
apiGroup: rbac.authorization.k8s.io
161+
162+
---
163+
164+
apiVersion: apps/v1
165+
kind: Deployment
166+
metadata:
167+
name: crc-operator
168+
namespace: crc-operator
169+
spec:
170+
replicas: 1
171+
selector:
172+
matchLabels:
173+
name: crc-operator
174+
template:
175+
metadata:
176+
labels:
177+
name: crc-operator
178+
spec:
179+
serviceAccountName: crc-operator
180+
containers:
181+
- name: crc-operator
182+
image: quay.io/bbrowning/crc-operator:v0.5.0
183+
command:
184+
- crc-operator
185+
imagePullPolicy: Always
186+
env:
187+
- name: WATCH_NAMESPACE
188+
value: ""
189+
- name: POD_NAME
190+
valueFrom:
191+
fieldRef:
192+
fieldPath: metadata.name
193+
- name: POD_NAMESPACE
194+
valueFrom:
195+
fieldRef:
196+
fieldPath: metadata.namespace
197+
- name: OPERATOR_NAME
198+
value: crc-operator
199+
- name: ROUTES_HELPER_IMAGE
200+
value: quay.io/bbrowning/crc-operator-routes-helper:v0.5.0
201+
- name: DEFAULT_BUNDLE_NAME
202+
value: ocp445
203+
204+
---
205+

deploy/releases/release-v0.5.0_bundles.yaml

Lines changed: 76 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)