Skip to content

Commit

Permalink
Update versions in sample yamls
Browse files Browse the repository at this point in the history
Currently, update-version-list.sh is only updating few of the
sample yamls. This PR modifies it to update the missing files
along with the ambient sample yamls.

Signed-off-by: Sridhar Gaddam <[email protected]>
  • Loading branch information
sridhargaddam committed Jan 9, 2025
1 parent 8d48dc0 commit 6c0624a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion chart/samples/ambient/istio-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Istio
metadata:
name: default
spec:
version: v1.24.0
version: v1.24.2
namespace: istio-system
profile: ambient
updateStrategy:
Expand Down
2 changes: 1 addition & 1 deletion chart/samples/ambient/istiocni-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: IstioCNI
metadata:
name: default
spec:
version: v1.24.0
version: v1.24.2
profile: ambient
namespace: istio-cni
2 changes: 1 addition & 1 deletion chart/samples/ambient/istioztunnel-sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ kind: ZTunnel
metadata:
name: default
spec:
version: v1.24.0
version: v1.24.2
namespace: ztunnel
profile: ambient
2 changes: 1 addition & 1 deletion chart/samples/istio-sample-gw-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Istio
metadata:
name: gateway-controller
spec:
version: v1.23.0
version: v1.24.2
namespace: gateway-controller
updateStrategy:
type: InPlace
Expand Down
2 changes: 1 addition & 1 deletion chart/samples/istio-sample-revisionbased.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Istio
metadata:
name: default
spec:
version: v1.23.2
version: v1.24.2
namespace: istio-system
updateStrategy:
type: RevisionBased
Expand Down
4 changes: 3 additions & 1 deletion hack/update-version-list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ function updateVersionInSamples() {

sed -i -E \
-e "s/version: .*/version: $defaultVersion/g" \
chart/samples/istio-sample.yaml chart/samples/istiocni-sample.yaml
chart/samples/istio-sample.yaml chart/samples/istiocni-sample.yaml chart/samples/istio-sample-gw-api.yaml \
chart/samples/istio-sample-revisionbased.yaml chart/samples/ambient/istiocni-sample.yaml \
chart/samples/ambient/istio-sample.yaml chart/samples/ambient/istioztunnel-sample.yaml
}

updateVersionsInIstioTypeComment
Expand Down

0 comments on commit 6c0624a

Please sign in to comment.