Skip to content

Commit

Permalink
Bump Azurite version & Chart version & misc fixes (#6)
Browse files Browse the repository at this point in the history
* bump version

* update changelog

* feat: bump Azurite version to 3.29.0, update CHANGELOG.md, tidy-up

---------

Co-authored-by: Łukasz Szcześniak <[email protected]>
  • Loading branch information
horihel and viters committed Feb 6, 2024
1 parent 95f35fc commit c1ee70f
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
10 changes: 10 additions & 0 deletions charts/azurite/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ Entries should be ordered as follows:

Entries should include a reference to the pull request that introduced the change.

## 2.0.0

- ⚠️ BREAKING [CHANGE] Make Azurite image configuration compatible with renovate/dependabot
- ⚠️ BREAKING [CHANGE] Disable --loose by default
- [FEATURE] Allow specifying imagePullSecret in initJob
- [FEATURE] Allow passing additional arguments to azurite process
- [ENHANCEMENT] Make --loose and --disableProductStyleUrl configurable
- [ENHANCEMENT] Move initJob image configuration into values.yaml
- [ENHANCEMENT] Bump default Azurite version to 3.29.0

## 1.8.0

- [CHANGE] Bump Azurite version to 3.21.0
Expand Down
4 changes: 2 additions & 2 deletions charts/azurite/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: "v2"
name: "azurite"
type: application
version: "1.9.1"
appVersion: "3.23.0"
version: "2.0.0"
appVersion: "3.29.0"
description: "A lightweight server clone of Azure Storage that simulates most of the commands supported by it with minimal dependencies"
home: "https://github.com/Azure/Azurite"
6 changes: 5 additions & 1 deletion charts/azurite/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ spec:
metadata:
name: "{{ .Release.Name }}"
spec:
{{- with .Values.config.blobs.initJob.image.pullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: azurite-init-containers
image: lukaszczesniak/azure-storage-init-containers
image: "{{ .Values.config.blobs.initJob.image.repository}}:{{ .Values.config.blobs.initJob.image.version | toString }}"
env:
- name: AZURE_STORAGE_CONNECTION_STRING
value: "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1"
Expand Down
9 changes: 8 additions & 1 deletion charts/azurite/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,18 @@ spec:
{{- toYaml .Values.statefulset.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.name }}:{{ .Chart.AppVersion | toString }}"
image: "{{ .Values.image.repository }}:{{ .Values.image.version | default .Chart.AppVersion | toString }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
command:
- "azurite"
- "-l"
- "/data"
{{- if .Values.config.disableProductStyleUrl }}
- "--disableProductStyleUrl"
{{- end }}
{{- if .Values.config.loose }}
- "--loose"
{{- end }}
{{- if .Values.config.blobs.enabled }}
- "--blobHost"
- "0.0.0.0"
Expand All @@ -76,6 +80,9 @@ spec:
- "--tableHost"
- "0.0.0.0"
{{- end }}
{{- range .Values.config.arguments }}
- "{{ . }}"
{{- end }}
ports:
{{- if .Values.config.blobs.enabled }}
- containerPort: 10000
Expand Down
18 changes: 17 additions & 1 deletion charts/azurite/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,32 @@ nameOverride: null
fullnameOverride: null

image:
name: mcr.microsoft.com/azure-storage/azurite
repository: mcr.microsoft.com/azure-storage/azurite
# Azurite version defaults to appVersion from Chart.yaml.
version: ""
pullPolicy: Always
pullSecrets: []

config:
# When using FQDN instead of IP in request Uri host,
# by default Azurite will parse storage account name from request Uri host.
# Force parsing storage account name from request Uri path with disableProductStyleUrl.
disableProductStyleUrl: true
# By default, Azurite will apply strict mode.
# Strict mode will block unsupported request headers or parameters.
# Disable it by enabling loose mode.
loose: false
# Pass additional arguments to azurite process.
arguments: []
blobs:
enabled: true
## https://github.com/viters/azure-storage-init-containers
initJob:
enabled: false
image:
repository: lukaszczesniak/azure-storage-init-containers
version: latest
pullSecrets: []
containers:
public: ""
private: ""
Expand Down

0 comments on commit c1ee70f

Please sign in to comment.