Skip to content

Commit

Permalink
Update NFS client helm chart
Browse files Browse the repository at this point in the history
Add alias for the original name
Rename the chart
Fix helm url
Update info msg

Signed-off-by: Czékus Máté <[email protected]>
  • Loading branch information
Shikachuu committed Jul 8, 2022
1 parent c9f962d commit 5a82e34
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 76 deletions.
112 changes: 56 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -480,62 +480,62 @@ A CLI or "tool" is a command line tool that you run directly on your own worksta

### Catalog of Apps

| TOOL | DESCRIPTION |
|-------------------------|---------------------------------------------------------------------|
| mqtt-connector | Install mqtt-connector for OpenFaaS |
| waypoint | Install Waypoint |
| postgresql | Install postgresql |
| gitlab | Install GitLab |
| cassandra | Install cassandra |
| kuma | Install Kuma |
| nfs-provisioner | Install nfs client provisioner |
| nginx-inc | Install nginx-inc for OpenFaaS |
| nats-connector | Install OpenFaaS connector for NATS |
| docker-registry | Install a Docker registry |
| rabbitmq | Install rabbitmq |
| prometheus | Install Prometheus for monitoring |
| chart | Install the specified helm chart |
| linkerd | Install linkerd |
| cron-connector | Install cron-connector for OpenFaaS |
| OSM | Install osm |
| cert-manager | Install cert-manager |
| grafana | Install grafana |
| openfaas-ingress | Install openfaas ingress with TLS |
| metrics-server | Install metrics-server |
| kafka-connector | Install kafka-connector for OpenFaaS |
| openfaas | Install openfaas |
| portainer | Install portainer to visualise and manage containers |
| minio | Install minio |
| ingress-nginx | Install ingress-nginx |
| mongodb | Install mongodb |
| kube-state-metrics | Install kube-state-metrics |
| kafka | Install Confluent Platform Kafka |
| argocd | Install argocd |
| kube-image-prefetch | Install kube-image-prefetch |
| tekton | Install Tekton pipelines and dashboard |
| registry-creds | Install registry-creds |
| influxdb | Install influxdb |
| kyverno | Install Kyverno |
| kanister | Install kanister for application-level data management |
| openfaas-loki | Install Loki-OpenFaaS and Configure Loki logs provider for OpenFaaS |
| redis | Install redis |
| crossplane | Install Crossplane |
| traefik2 | Install traefik2 |
| kong-ingress | Install kong-ingress for OpenFaaS |
| consul-connect | Install Consul Service Mesh |
| kubernetes-dashboard | Install kubernetes-dashboard |
| istio | Install istio |
| inlets-operator | Install inlets-operator |
| metallb-arp | Install MetalLB in L2 (ARP) mode |
| cockroachdb | Install CockroachDB |
| docker-registry-ingress | Install registry ingress with TLS |
| jenkins | Install jenkins |
| gitea | Install gitea |
| loki | Install Loki for monitoring and tracing |
| sealed-secret | Install sealed-secrets |
| opa-gatekeeper | Install Open Policy Agent (OPA) Gatekeeper |
| falco | Install Falco |
| inlets-tcp-client | Install inlets PRO TCP client |
| TOOL | DESCRIPTION |
|---------------------------------|---------------------------------------------------------------------|
| mqtt-connector | Install mqtt-connector for OpenFaaS |
| waypoint | Install Waypoint |
| postgresql | Install postgresql |
| gitlab | Install GitLab |
| cassandra | Install cassandra |
| kuma | Install Kuma |
| nfs-subdir-external-provisioner | Install nfs client provisioner |
| nginx-inc | Install nginx-inc for OpenFaaS |
| nats-connector | Install OpenFaaS connector for NATS |
| docker-registry | Install a Docker registry |
| rabbitmq | Install rabbitmq |
| prometheus | Install Prometheus for monitoring |
| chart | Install the specified helm chart |
| linkerd | Install linkerd |
| cron-connector | Install cron-connector for OpenFaaS |
| OSM | Install osm |
| cert-manager | Install cert-manager |
| grafana | Install grafana |
| openfaas-ingress | Install openfaas ingress with TLS |
| metrics-server | Install metrics-server |
| kafka-connector | Install kafka-connector for OpenFaaS |
| openfaas | Install openfaas |
| portainer | Install portainer to visualise and manage containers |
| minio | Install minio |
| ingress-nginx | Install ingress-nginx |
| mongodb | Install mongodb |
| kube-state-metrics | Install kube-state-metrics |
| kafka | Install Confluent Platform Kafka |
| argocd | Install argocd |
| kube-image-prefetch | Install kube-image-prefetch |
| tekton | Install Tekton pipelines and dashboard |
| registry-creds | Install registry-creds |
| influxdb | Install influxdb |
| kyverno | Install Kyverno |
| kanister | Install kanister for application-level data management |
| openfaas-loki | Install Loki-OpenFaaS and Configure Loki logs provider for OpenFaaS |
| redis | Install redis |
| crossplane | Install Crossplane |
| traefik2 | Install traefik2 |
| kong-ingress | Install kong-ingress for OpenFaaS |
| consul-connect | Install Consul Service Mesh |
| kubernetes-dashboard | Install kubernetes-dashboard |
| istio | Install istio |
| inlets-operator | Install inlets-operator |
| metallb-arp | Install MetalLB in L2 (ARP) mode |
| cockroachdb | Install CockroachDB |
| docker-registry-ingress | Install registry ingress with TLS |
| jenkins | Install jenkins |
| gitea | Install gitea |
| loki | Install Loki for monitoring and tracing |
| sealed-secret | Install sealed-secrets |
| opa-gatekeeper | Install Open Policy Agent (OPA) Gatekeeper |
| falco | Install Falco |
| inlets-tcp-client | Install inlets PRO TCP client |

There are 54 apps that you can install on your cluster.

Expand Down
31 changes: 11 additions & 20 deletions cmd/apps/nfs_app.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (
"github.com/alexellis/arkade/pkg"
"github.com/alexellis/arkade/pkg/apps"
"github.com/alexellis/arkade/pkg/config"
"github.com/alexellis/arkade/pkg/k8s"
"github.com/alexellis/arkade/pkg/types"
"github.com/spf13/cobra"
)

func MakeInstallNfsProvisioner() *cobra.Command {
var nfsProvisionerApp = &cobra.Command{
Use: "nfs-client-provisioner",
Short: "Install nfs client provisioner",
Long: "Install nfs client provisioner to create dynamic persistent volumes",
Use: "nfs-subdir-external-provisioner",
Aliases: []string{"nfs-client-provisioner", "nfs-provisioner"},
Short: "Install nfs subdir external provisioner",
Long: "Install nfs subdir external provisioner that uses and already configured nfs to back your PVs and PVCS.",
Example: "arkade install nfs-client-provisioner --nfs-server=x.x.x.x --nfs-path=/exported/path",
SilenceUsage: true,
}
Expand Down Expand Up @@ -50,13 +50,6 @@ func MakeInstallNfsProvisioner() *cobra.Command {
overrides["nfs.server"] = nfsServer
overrides["nfs.path"] = nfsPath

arch := k8s.GetNodeArchitecture()
fmt.Printf("Node architecture: %q\n", arch)

if suffix := getValuesSuffix(arch); suffix == "-armhf" || suffix == "-arm64" {
overrides["image.repository"] = "quay.io/external_storage/nfs-client-provisioner-arm:latest"
}

customFlags, _ := command.Flags().GetStringArray("set")

if err := config.MergeFlags(overrides, customFlags); err != nil {
Expand All @@ -65,8 +58,8 @@ func MakeInstallNfsProvisioner() *cobra.Command {

nfsProvisionerOptions := types.DefaultInstallOptions().
WithNamespace(namespace).
WithHelmRepo("stable/nfs-client-provisioner").
WithHelmURL("https://charts.helm.sh/stable").
WithHelmRepo("nfs-client-provisioner/nfs-subdir-external-provisioner").
WithHelmURL("https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/").
WithOverrides(overrides).
WithKubeconfigPath(kubeConfigPath)

Expand All @@ -89,17 +82,16 @@ kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: test-claim
annotations:
volume.beta.kubernetes.io/storage-class: "nfs-client"
spec:
storageClassName: nfs-client
accessModes:
- ReadWriteMany
resources:
requests:
storage: 1Mi
EOF
# Create pod:
# Create a test pod:
cat <<EOF | kubectl apply -f -
kind: Pod
Expand All @@ -109,7 +101,7 @@ metadata:
spec:
containers:
- name: test-pod
image: gcr.io/google_containers/busybox:1.24
image: busybox:stable
command:
- "/bin/sh"
args:
Expand All @@ -125,16 +117,15 @@ spec:
claimName: test-claim
EOF
# Now check your NFS Server for the file SUCCESS.
# Now check your NFS Server for the file SUCCESS then clean up your resources.
kubectl delete -f deploy/test-pod.yaml -f deploy/test-claim.yaml
# Now check the folder has been deleted.
`

const nfsClientInstallMsg = `=======================================================================
= nfs-client-provisioner has been installed. =
= NFS Subdir External Provisioner has been installed. =
=======================================================================` +
"\n\n" + NfsClientProvisioneriInfoMsg + "\n\n" + pkg.SupportMessageShort

0 comments on commit 5a82e34

Please sign in to comment.