Skip to content

Commit 7f748d5

Browse files
Update DEVELOPMENT.md with additional build info
1 parent f9c485a commit 7f748d5

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

DEVELOPMENT.md

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Development
22

3+
## Building development images
4+
5+
```sh
6+
export TDTAG="dockerregistry.example.com/cluster-turndown:X.Y.Z"
7+
docker build -t "${TDTAG}" .
8+
docker push "${TDTAG}"
9+
10+
# Then update the image in your cluster
11+
kubectl set image \
12+
-n turndown \
13+
deployment/cluster-turndown \
14+
cluster-turndown="${TDTAG}"
15+
```
16+
317
## Generating turndown schedule CRD code
418

519
To re-generate the code for the defined CRDs, do the following:
@@ -11,8 +25,8 @@ The script is based on https://github.com/kubernetes/sample-controller, specific
1125

1226
## Cutting a release
1327

14-
1. Call `update-version.sh VERSION`, e.g. `./update-version.sh 1.3.0`
15-
2. Build and push the new image to GCR (`make release`)
28+
1. Call `update-version.sh VERSION`, e.g. `./update-version.sh X.Y.Z`
29+
2. Build and push the new image to GCR (`make VERSION=X.Y.Z release`)
1630
3. Merge the changes
1731
4. Tag a new release off of `develop` for the new version
1832
5. Manually upload `artifacts/cluster-turndown-full.yaml` and `scripts/gke-create-service-key.sh` to the GitHub Release created by the tag

0 commit comments

Comments
 (0)