Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: openebs/dynamic-localpv-provisioner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.1.2
Choose a base ref
...
head repository: openebs/dynamic-localpv-provisioner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.1.3
Choose a head ref
  • 2 commits
  • 16 files changed
  • 3 contributors

Commits on Nov 28, 2024

  1. ci: fix trigger for build_and_push workflow (#222) (#223)

    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    niladrih authored Nov 28, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    f66f290 View commit details

Commits on Jan 22, 2025

  1. Cherry-pick #182 and #183 to release/4.1 branch (#231)

    * Allow specifying additional labels to be applied to all helm chart resources
    
    This is added as a top-level `labels` map within the values file.
    If it is populated, these labels will be added to the storageclass.
    It is also added to the 'localpv.labels' variable, already included
    within every resource besides the storageclass.
    
    Signed-off-by: Andrew Lavery <laverya@umich.edu>
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    * Add pod priorityClassName
    
    Signed-off-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    * refactor(chart): refactor implementation for adding extra labels to all chart resources
    
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    * refactor(chart): refactor implementation for adding priorityClassName
    
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    * fix(charts): use the correct slack channel link
    
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    * chore(changelog): add changelog entries for PRs 182 & 183
    
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    * ci: pin medyagh/setup-minikube runs to ubuntu-22.04 (#229)
    
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    
    ---------
    
    Signed-off-by: Andrew Lavery <laverya@umich.edu>
    Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
    Signed-off-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
    Co-authored-by: Andrew Lavery <laverya@umich.edu>
    Co-authored-by: Bernard Gütermann <bernard.gutermann@sekops.ch>
    3 people authored Jan 22, 2025
    Copy the full SHA
    70dfaab View commit details
3 changes: 1 addition & 2 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Build and Push

on:
create:
push:
branches:
- 'develop'
@@ -64,7 +63,7 @@ jobs:
flags: unittests

integration-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: ['lint', 'unit-test']
strategy:
matrix:
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ jobs:
flags: unittests

integration-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: ['lint', 'unit-test']
strategy:
matrix:
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ jobs:
flags: unittests

integration-test:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: ['lint', 'unit-test']
strategy:
matrix:
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
v4.1.3 / 2025-01-22
===================
* Add pod priorityClassName to prevent race condition due to pod eviction ([#182](https://github.com/openebs/dynamic-localpv-provisioner/pull/182),[@bernardgut](https://github.com/bernardgut))
* Allow specifying additional labels to be applied to all helm chart resources ([#183](https://github.com/openebs/dynamic-localpv-provisioner/pull/183),[@laverya](https://github.com/laverya))

v4.1.2 / 2024-11-28
===================
* Fix bug where analytics toggle env configuration doesn't disable analytics ([#211](https://github.com/openebs/dynamic-localpv-provisioner/pull/211),[@emosbaugh](https://github.com/emosbaugh))

v4.1.1 / 2024-09-13
===================
* Update analytics dependency to v0.3.0 ([#200](https://github.com/openebs/dynamic-localpv-provisioner/pull/200),[@niladrih](https://github.com/niladrih))

v4.1.0 / 2024-07-03
===================
* feat(provisioner): update analytics pkg ([#188](https://github.com/openebs/dynamic-localpv-provisioner/pull/188),[@niladrih](https://github.com/niladrih))
1 change: 1 addition & 0 deletions changelogs/released/v4.1.1/200-niladrih
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update analytics dependency to v0.3.0
1 change: 1 addition & 0 deletions changelogs/released/v4.1.2/211-emosbaugh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix bug where analytics toggle env configuration doesn't disable analytics
1 change: 1 addition & 0 deletions changelogs/released/v4.1.3/182-bernardgut
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add pod priorityClassName to prevent race condition due to pod eviction
1 change: 1 addition & 0 deletions changelogs/released/v4.1.3/183-laverya
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow specifying additional labels to be applied to all helm chart resources
2 changes: 2 additions & 0 deletions deploy/helm/charts/README.md
Original file line number Diff line number Diff line change
@@ -70,6 +70,7 @@ helm install openebs-localpv openebs-localpv/localpv-provisioner --namespace ope
| ------------------------------------------- |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------|
| `analytics.enabled` | Enable sending stats to Google Analytics | `true` |
| `analytics.pingInterval` | Duration(hours) between sending ping stat | `24h` |
| `extraLabels` | Additional labels to add to all chart resources | `{}` |
| `helperPod.image.registry` | Registry for helper image | `""` |
| `helperPod.image.repository` | Image for helper pod | `"openebs/linux-utils"` |
| `helperPod.image.pullPolicy` | Pull policy for helper pod | `"IfNotPresent"` |
@@ -101,6 +102,7 @@ helm install openebs-localpv openebs-localpv/localpv-provisioner --namespace ope
| `localpv.replicas` | No. of LocalPV Provisioner replica | `1` |
| `localpv.enableLeaderElection` | Enable leader election | `true` |
| `localpv.affinity` | LocalPV Provisioner pod affinity | `{}` |
| `localpv.priorityClassName` | Sets priorityClassName in pod | `""` |
| `rbac.create` | Enable RBAC Resources | `true` |
| `rbac.pspEnabled` | Create pod security policy resources | `false` |

2 changes: 1 addition & 1 deletion deploy/helm/charts/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -8,5 +8,5 @@ blockdevices attached to the Kubernetes cluster nodes.
Get started with the Dynamic LocalPV Provisioner Quickstart guide at:
https://github.com/openebs/dynamic-localpv-provisioner/blob/develop/docs/quickstart.md

For more information, visit our Slack at https://openebs.io/community or view
For more information, visit our Slack at https://kubernetes.slack.com/messages/openebs or view
the OpenEBS documentation online at https://openebs.io/docs
1 change: 0 additions & 1 deletion deploy/helm/charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -65,7 +65,6 @@ Common labels
{{ include "localpv.componentLabels" . }}
{{- end -}}


{{/*
Create the name of the service account to use
*/}}
11 changes: 10 additions & 1 deletion deploy/helm/charts/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -8,6 +8,9 @@ metadata:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.localpv.replicas }}
strategy:
@@ -23,10 +26,16 @@ spec:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 8 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 8 }}
{{- end }}
{{- with .Values.localpv.podLabels }}
{{ toYaml . | nindent 8 }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.localpv.priorityClassName }}
priorityClassName: {{ . }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
3 changes: 3 additions & 0 deletions deploy/helm/charts/templates/hostpath-class.yaml
Original file line number Diff line number Diff line change
@@ -34,6 +34,9 @@ metadata:
{{- if .Values.hostpathClass.isDefaultClass }}
storageclass.kubernetes.io/is-default-class: "true"
{{- end }}
{{- if .Values.extraLabels }}
labels: {{- toYaml .Values.extraLabels | nindent 4 -}}
{{- end }}
provisioner: openebs.io/local
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: {{ .Values.hostpathClass.reclaimPolicy }}
3 changes: 3 additions & 0 deletions deploy/helm/charts/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -8,6 +8,9 @@ metadata:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
spec:
privileged: {{ .Values.localpv.privileged }}
allowPrivilegeEscalation: true
15 changes: 15 additions & 0 deletions deploy/helm/charts/templates/rbac.yaml
Original file line number Diff line number Diff line change
@@ -5,6 +5,9 @@ metadata:
name: {{ include "localpv.serviceAccountName" . }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
@@ -21,6 +24,9 @@ metadata:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
rules:
- apiGroups: ["*"]
resources: ["nodes"]
@@ -55,6 +61,9 @@ metadata:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
@@ -74,6 +83,9 @@ metadata:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
rules:
- apiGroups: ['policy']
resources: ['podsecuritypolicies']
@@ -90,6 +102,9 @@ metadata:
{{- end }}
labels:
{{- include "localpv.labels" . | nindent 4 }}
{{- if .Values.extraLabels -}}
{{- toYaml .Values.extraLabels | nindent 4 }}
{{- end }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
5 changes: 5 additions & 0 deletions deploy/helm/charts/values.yaml
Original file line number Diff line number Diff line change
@@ -48,6 +48,8 @@ localpv:
tolerations: []
affinity: {}
securityContext: {}
## Sets priorityClassName in pod
priorityClassName: ""

imagePullSecrets:
# - name: img-pull-secret
@@ -117,6 +119,9 @@ helperPod:
# Overrides the image tag whose default is the chart appVersion.
tag: 4.0.0

# Additional labels to add to all chart resources
extraLabels: {}

analytics:
enabled: true
# Specify in hours the duration after which a ping event needs to be sent.