Skip to content

Commit

Permalink
Major version bump, fix #55 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
rblaine95 authored Apr 5, 2021
1 parent e36e307 commit 2842787
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,22 @@ $ helm install npm \
--set persistence.existingClaim=PVC_NAME \
verdaccio/verdaccio
```

### Migrating chart 2.x -> 3.x
Due to some breaking changes in Selector Labels and Security Contexts in Chart `3.0.0` you will need to migrate when upgrading.

First off, the `securityContext.enabled` field has been removed.
In addition to this, `fsGroup` is not a valid Container Security Context field and has been migrated to the `podSecurityContext` instead.
```diff
# values.yaml
podSecurityContext:
+ fsGroup: 101
securityContext:
- enabled: true
- fsGroup: 101
runAsUser: 10001
```

Secondly, the `apps.v1.Deployment.spec.selector` field is immutable and changes were made to Selector Labels which tries to update this.
To get around this, you will need to `kubectl delete deployment $deploymentName` before doing a `helm upgrade`
So long as your PVC is not destroyed, the new deployment will be rolled out with the same PVC as before and your data will remain intact.
2 changes: 1 addition & 1 deletion charts/verdaccio/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A lightweight private npm proxy registry (sinopia fork)
name: verdaccio
version: 2.1.0
version: 3.0.0
appVersion: 4.12.0
home: https://verdaccio.org
icon: https://cdn.verdaccio.dev/logos/default.png
Expand Down

0 comments on commit 2842787

Please sign in to comment.