Skip to content

Commit

Permalink
redo
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy J. Miller <[email protected]>
  • Loading branch information
jeremymv2 committed Mar 22, 2024
1 parent aeb13da commit 0223318
Show file tree
Hide file tree
Showing 14 changed files with 230 additions and 37 deletions.
4 changes: 2 additions & 2 deletions charts/csi-driver-nfs/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: v4.6.0
appVersion: v4.5.0
description: CSI NFS Driver for Kubernetes
name: csi-driver-nfs
version: v4.6.0
version: v4.5.0
3 changes: 3 additions & 0 deletions charts/csi-driver-nfs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# README

Installs chart
72 changes: 72 additions & 0 deletions charts/csi-driver-nfs/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "csi-driver-nfs.fullname" . }}
labels:
{{- include "csi-driver-nfs.labels" . | nindent 4 }}
spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
selector:
matchLabels:
{{- include "csi-driver-nfs.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "csi-driver-nfs.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "csi-driver-nfs.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
32 changes: 32 additions & 0 deletions charts/csi-driver-nfs/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{{- if .Values.autoscaling.enabled }}
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: {{ include "csi-driver-nfs.fullname" . }}
labels:
{{- include "csi-driver-nfs.labels" . | nindent 4 }}
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: {{ include "csi-driver-nfs.fullname" . }}
minReplicas: {{ .Values.autoscaling.minReplicas }}
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
metrics:
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
{{- end }}
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
{{- end }}
{{- end }}
61 changes: 61 additions & 0 deletions charts/csi-driver-nfs/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "csi-driver-nfs.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
{{- end }}
{{- end }}
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ $fullName }}
labels:
{{- include "csi-driver-nfs.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
- host: {{ .host | quote }}
http:
paths:
{{- range .paths }}
- path: {{ .path }}
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
pathType: {{ .pathType }}
{{- end }}
backend:
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
service:
name: {{ $fullName }}
port:
number: {{ $svcPort }}
{{- else }}
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
6 changes: 3 additions & 3 deletions charts/csi-driver-nfs/templates/rbac-csi-nfs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount.controller }}
name: csi-{{ .Values.rbac.name }}-controller-sa
namespace: {{ .Release.Namespace }}
{{ include "nfs.labels" . | indent 2 }}
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ .Values.serviceAccount.node }}
name: csi-{{ .Values.rbac.name }}-node-sa
namespace: {{ .Release.Namespace }}
{{ include "nfs.labels" . | indent 2 }}
---
Expand Down Expand Up @@ -64,7 +64,7 @@ metadata:
{{ include "nfs.labels" . | indent 2 }}
subjects:
- kind: ServiceAccount
name: {{ .Values.serviceAccount.controller }}
name: csi-{{ .Values.rbac.name }}-controller-sa
namespace: {{ .Release.Namespace }}
roleRef:
kind: ClusterRole
Expand Down
15 changes: 15 additions & 0 deletions charts/csi-driver-nfs/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "csi-driver-nfs.fullname" . }}
labels:
{{- include "csi-driver-nfs.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
protocol: TCP
name: http
selector:
{{- include "csi-driver-nfs.selectorLabels" . | nindent 4 }}
13 changes: 13 additions & 0 deletions charts/csi-driver-nfs/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{- if .Values.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "csi-driver-nfs.serviceAccountName" . }}
labels:
{{- include "csi-driver-nfs.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}
15 changes: 15 additions & 0 deletions charts/csi-driver-nfs/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
name: "{{ include "csi-driver-nfs.fullname" . }}-test-connection"
labels:
{{- include "csi-driver-nfs.labels" . | nindent 4 }}
annotations:
"helm.sh/hook": test
spec:
containers:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "csi-driver-nfs.fullname" . }}:{{ .Values.service.port }}']
restartPolicy: Never
12 changes: 6 additions & 6 deletions charts/csi-driver-nfs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,27 @@ customLabels: {}
image:
nfs:
repository: registry.k8s.io/sig-storage/nfsplugin
tag: v4.6.0
tag: v4.5.0
pullPolicy: IfNotPresent
csiProvisioner:
repository: registry.k8s.io/sig-storage/csi-provisioner
tag: v4.0.0
tag: v3.6.1
pullPolicy: IfNotPresent
csiSnapshotter:
repository: registry.k8s.io/sig-storage/csi-snapshotter
tag: v6.3.3
tag: v6.3.1
pullPolicy: IfNotPresent
livenessProbe:
repository: registry.k8s.io/sig-storage/livenessprobe
tag: v2.12.0
tag: v2.11.0
pullPolicy: IfNotPresent
nodeDriverRegistrar:
repository: registry.k8s.io/sig-storage/csi-node-driver-registrar
tag: v2.10.0
tag: v2.9.0
pullPolicy: IfNotPresent
externalSnapshotter:
repository: registry.k8s.io/sig-storage/snapshot-controller
tag: v6.3.3
tag: v6.3.1
pullPolicy: IfNotPresent

serviceAccount:
Expand Down
Binary file added csi-driver-nfs-v4.5.0.tgz
Binary file not shown.
Binary file removed csi-driver-nfs-v4.6.0.tgz
Binary file not shown.
32 changes: 6 additions & 26 deletions index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,12 @@ apiVersion: v1
entries:
csi-driver-nfs:
- apiVersion: v1
appVersion: 4.6.0
created: "2024-03-22T18:22:02.647414261-04:00"
appVersion: v4.5.0
created: "2024-03-22T19:20:16.344427274-04:00"
description: CSI NFS Driver for Kubernetes
digest: 37abd9c09db1281cfc4ef2adfa024350d32c59264b0f8f71e0535fed3e5e7582
digest: 135f3ea84a094971faf9d39c22ba7578c7fd63da72a2c5f17e62444c9c93a067
name: csi-driver-nfs
urls:
- https://platform9-community.github.io/csi-nfs-helm/csi-driver-nfs-v4.6.0.tgz
version: 4.6.0
- apiVersion: v1
appVersion: 1.7.8
created: "2021-06-30T18:13:33.664075+05:30"
description: A Helm chart for Fluent-Bit. A Fast and lightweight log processor
and forwarder or Linux, OSX and BSD family operating systems. It supports platform9
cluster types BareOS, AWS, Azure, EKS. To send logs to elastic cloud's Elasticsearch
do update values.yaml during deploy with cloud_id and cloud_auth of your [elastic
cloud](https://docs.fluentbit.io/manual/pipeline/outputs/elasticsearch).
digest: 853d6a47caaf1a219682b3219cadc47afe4a85bea2e2f71cd3bcb4dfc4c8b7a5
home: https://github.com/platform9/helm-charts
icon: https://fluentbit.io/assets/img/logo1-default.png
keywords:
- fluent-bit
- elasticsearch
name: fluent-bit-elasticsearch
sources:
- https://github.com/platform9/helm-charts
urls:
- https://github.com/platform9/helm-charts/releases/download/fluent-bit-elasticsearch-0.15.14/fluent-bit-elasticsearch-0.15.14.tgz
version: 0.15.14
generated: "2024-03-22T18:22:02.644594847-04:00"
- https://platform9-community.github.io/csi-nfs-helm/csi-driver-nfs-v4.5.0.tgz
version: v4.5.0
generated: "2024-03-22T19:20:16.343469855-04:00"
2 changes: 2 additions & 0 deletions robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-Agent: *
Disallow: /

0 comments on commit 0223318

Please sign in to comment.