Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
2.12.18
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelgatelement committed Jan 16, 2024
1 parent 3cf287e commit ed6bd84
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 6 deletions.
4 changes: 2 additions & 2 deletions helm/operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.12.17
version: 2.12.18

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 2.12.17
appVersion: 2.12.18
2 changes: 1 addition & 1 deletion helm/operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ operator:
imagePullPolicy: Always
image:
repository: docker.io/vectorim/ess-starter-edition-core-operator
tag: 2.12.17
tag: 2.12.18

rbacProxy:
resources:
Expand Down
4 changes: 2 additions & 2 deletions helm/updater/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 2.12.17
version: 2.12.18

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 2.12.17
appVersion: 2.12.18
2 changes: 1 addition & 1 deletion helm/updater/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ updater:
- ALL
image:
repository: docker.io/vectorim/ess-starter-edition-core-updater
tag: 2.12.17
tag: 2.12.18

rbacProxy:
resources:
Expand Down
34 changes: 34 additions & 0 deletions roles/generic_apply/filter_plugins/sort_apply_order.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright 2023 New Vector Ltd
#
# SPDX-License-Identifier: AGPL-3.0-or-later


# Anything not listed below gets sorted after Kinds that have been listed, maintaining the input order
resources_order = [
"Secret",
"ConfigMap",
"PersistentVolumeClaim",
"Pod",
"Deployment",
"StatefulSet",
"Ingress",
"Service",
# We deploy Synapse here because
# we want to deploy it before every other resources
"Synapse"
]

class FilterModule(object):
def filters(self): return {'sort_apply_order': sort_apply_order}

def _res_order(o):
try:
return resources_order.index(o['kind'])
except ValueError:
return len(resources_order)

def sort_apply_order(data):
if isinstance(data, list):
data.sort(key=_res_order)
return data

1 change: 1 addition & 0 deletions roles/generic_apply/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
| map('drop_null_values')
| select
| map('combine', _generic_apply_mixin, recursive=true)
| sort_apply_order
}}
- name: Apply Manifest in check_mode
Expand Down

0 comments on commit ed6bd84

Please sign in to comment.