Skip to content

Commit 2a2e00f

Browse files
chore: yq_ibl fix, fix registry to docker
Signed-off-by: Abhinandan Purkait <[email protected]>
1 parent c05b9b3 commit 2a2e00f

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

deploy/helm/charts/values.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ lvmNode:
3838
# microk8s where kubelet dir is different
3939
kubeletDir: "/var/lib/kubelet/"
4040
resources: {}
41-
# limits:
42-
# cpu: 10m
43-
# memory: 32Mi
44-
# requests:
45-
# cpu: 10m
46-
# memory: 32Mi
41+
# limits:
42+
# cpu: 10m
43+
# memory: 32Mi
44+
# requests:
45+
# cpu: 10m
46+
# memory: 32Mi
4747
## Labels to be added to openebs-lvm node pods
4848
podLabels:
4949
app: openebs-lvm-node
@@ -121,12 +121,12 @@ lvmController:
121121
annotations: {}
122122
podAnnotations: {}
123123
resources: {}
124-
# limits:
125-
# cpu: 10m
126-
# memory: 32Mi
127-
# requests:
128-
# cpu: 10m
129-
# memory: 32Mi
124+
# limits:
125+
# cpu: 10m
126+
# memory: 32Mi
127+
# requests:
128+
# cpu: 10m
129+
# memory: 32Mi
130130
## Labels to be added to openebs-lvm controller pods
131131
podLabels:
132132
name: openebs-lvm-controller
@@ -152,7 +152,7 @@ lvmPlugin:
152152
image:
153153
# Make sure that registry name end with a '/'.
154154
# For example : registry.k8s.io/ is a correct value here and quay.io is incorrect
155-
registry:
155+
registry: docker.io/
156156
repository: openebs/lvm-driver
157157
pullPolicy: IfNotPresent
158158
# Overrides the image tag whose default is the chart appVersion.

scripts/yq_utils.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
# this function gets around that using diff with --ignore-blank-lines
33
yq_ibl()
44
{
5-
set +e
6-
diff_out=$(diff -B <(yq '.' "$2") <(yq "$1" "$2")) || error=$?
5+
error=0
6+
diff_out=$(diff -B <(cat "$2") <(yq "$1" "$2")) || error=$?
77
if [ "$error" != "0" ] && [ "$error" != "1" ]; then
88
exit "$error"
99
fi
1010
if [ -n "$diff_out" ]; then
1111
echo "$diff_out" | patch --quiet --no-backup-if-mismatch "$2" -
1212
fi
13-
set -euo pipefail
1413
}

0 commit comments

Comments
 (0)