Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add das updatestrategy #84

Merged
merged 4 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/generate-chart-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions: {} # Remove all permissions by default

jobs:
update-readme-metadata:
runs-on: ubuntu-latest
runs-on: ubuntu-4
permissions:
contents: write
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-4
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-chart-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:

jobs:
push-charts:
runs-on: ubuntu-latest
runs-on: ubuntu-4
steps:
- name: Checkout code
uses: actions/checkout@master
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/push-chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
get-modified-charts:
runs-on: ubuntu-latest
runs-on: ubuntu-4
outputs:
paths: ${{ steps.get-modified-charts.outputs.paths }}
steps:
Expand All @@ -24,7 +24,7 @@ jobs:

push-charts:
needs: get-modified-charts
runs-on: ubuntu-latest
runs-on: ubuntu-4
if: ${{ needs.get-modified-charts.outputs.paths != '' }}
steps:
- uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test-install:
runs-on: ubuntu-latest
runs-on: ubuntu-8

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test-upgrade:
runs-on: ubuntu-latest
runs-on: ubuntu-8

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion charts/das/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ maintainers:

type: application

version: 0.5.11
version: 0.5.12

appVersion: "v3.2.1-d81324d"
1 change: 1 addition & 0 deletions charts/das/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ extraEnv:
| `readinessProbe.successThreshold` | Success threshold for the readiness probe | `1` |
| `startupProbe` | startupProbe | |
| `startupProbe.enabled` | Enable startup probe | `false` |
| `updateStrategy.type` | Update strategy type | `RollingUpdate` |
| `persistence.localdbstorage` | This will only be created if local db storage is enabled in the configmap | |
| `persistence.localdbstorage.size` | Size of the persistent volume claim | `100Gi` |
| `persistence.localdbstorage.storageClassName` | Storage class of the persistent volume claim | `nil` |
Expand Down
6 changes: 6 additions & 0 deletions charts/das/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ spec:
matchLabels:
{{- include "das.selectorLabels" . | nindent 6 }}
podManagementPolicy: Parallel
{{- if .Values.updateStrategy }}
{{- with .Values.updateStrategy }}
updateStrategy:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
template:
metadata:
annotations:
Expand Down
4 changes: 4 additions & 0 deletions charts/das/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ readinessProbe:
startupProbe:
enabled: false

## @param updateStrategy.type Update strategy type
updateStrategy:
type: RollingUpdate

persistence:
## @extra persistence.localdbstorage This will only be created if local db storage is enabled in the configmap
## @param persistence.localdbstorage.size Size of the persistent volume claim
Expand Down
Loading