Skip to content

Commit b1fcf44

Browse files
authored
Dav/quick fix (#13)
* modified doc * generate manifest * synchronize tag with release version number
1 parent 001c8f5 commit b1fcf44

7 files changed

Lines changed: 28 additions & 14 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# CDNOS Image URL to use to test CDNOS CRD Deployment
22
CDNOS_IMG ?= registry.dev.drivenets.net/devops/cdnos_pr_61596:19.1.0.1_priv.61596.59ad5662f25a3760114008c0e51c2ef1b583ae7e
33
# Image URL to use all building/pushing image targets
4-
CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:1.4
4+
CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:1.7.1
55
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
66
ENVTEST_K8S_VERSION = 1.28.0
77

README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,16 @@ make uninstall
7474
make undeploy
7575
```
7676

77-
## Update cdnos controller image on AWS
77+
## Update cdnos controller image
78+
79+
### AWS
7880

7981
To update cdnos controller, update the image tag on makefile:
8082
This line:
81-
>>> CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:<your-tag>
8283

84+
```
85+
CONTROLLER_IMG ?= public.ecr.aws/dn/cdnos-controller:<your-tag>
86+
```
8387

8488
Rebuild the image:
8589

@@ -94,7 +98,8 @@ aws ecr-public get-login-password --region us-east-1 | docker login --username A
9498

9599
Push image to registry:
96100
```sh
97-
make docker-push```
101+
make docker-push
102+
```
98103

99104
We want to keep the latest tag updated so tag the image to `latest`:
100105
```sh
@@ -109,4 +114,19 @@ docker push public.ecr.aws/dn/cdnos-controller:latest
109114
You should now be able to pull the image:
110115

111116
```sh
112-
docker pull public.ecr.aws/dn/cdnos-controller:<your-tag>```
117+
docker pull public.ecr.aws/dn/cdnos-controller:<your-tag>
118+
```
119+
120+
### Manifest
121+
We need to update the kubernetes manifest with the new image tag.
122+
Modify this line in `config/manager/kustomization.yaml`:
123+
```
124+
newTag: "<your tag>"
125+
```
126+
127+
Generate the manifest:
128+
```sh
129+
make generate-manifest
130+
```
131+
132+
The new manifest is now available at this path: `config/manifests/manifest.yaml`.

bin/controller-gen

21.1 MB
Binary file not shown.

bin/kustomize

27 MB
Binary file not shown.

config/crd/bases/cdnos.dev.drivenets.net_cdnos.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,7 @@ spec:
244244
description: 'Requests describes the minimum amount of compute
245245
resources required. If Requests is omitted for a container,
246246
it defaults to Limits if that is explicitly specified, otherwise
247-
to an implementation-defined value. Requests cannot exceed Limits.
248-
More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
247+
to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
249248
type: object
250249
type: object
251250
tls:

config/manager/kustomization.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
images:
66
- name: controller
7-
<<<<<<< HEAD
87
newName: public.ecr.aws/dn/cdnos-controller
9-
newTag: "1.4"
10-
=======
11-
newName: registry.dev.drivenets.net/devops/cdnos-controller
12-
newTag: "1.6"
13-
>>>>>>> 432cb45 (add redis env var support)
8+
newTag: "1.7.1"

config/manifests/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ spec:
576576
- --leader-elect
577577
command:
578578
- /manager
579-
image: public.ecr.aws/dn/cdnos-controller:1.4
579+
image: public.ecr.aws/dn/cdnos-controller:1.7.1
580580
livenessProbe:
581581
httpGet:
582582
path: /healthz

0 commit comments

Comments
 (0)