Skip to content

Commit

Permalink
Merge pull request #353 from mauriciopoppe/chart-update
Browse files Browse the repository at this point in the history
Use latest image in daemonset, add node selector for Windows
  • Loading branch information
k8s-ci-robot authored Feb 14, 2023
2 parents 80b6d87 + 6631e94 commit ad2bfba
Show file tree
Hide file tree
Showing 24 changed files with 745 additions and 639 deletions.
13 changes: 11 additions & 2 deletions helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,21 @@ helm upgrade ./helm/provisioner -f <path-to-your-values-file> <release-name>

### helm version >= v3.0.0

Install via helm template:
Install by adding the repo as a Helm repo:

```sh
helm repo add sig-storage-local-static-provisioner https://kubernetes-sigs.github.io/sig-storage-local-static-provisioner
helm template --debug sig-storage-local-static-provisioner/local-static-provisioner --version <version> --namespace <namespace> > local-volume-provisioner.generated.yaml
# edit local-volume-provisioner.generated.yaml if necessary
kubectl create -f local-volume-provisioner.generated.yaml
```

Or install by cloning the repo locally:

```console
git clone --depth=1 https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner.git
helm template -f <path-to-your-values-file> <release-name> --namespace <namespace> ./helm/provisioner > local-volume-provisioner.generated.yaml
edit local-volume-provisioner.generated.yaml if necessary
# edit local-volume-provisioner.generated.yaml if necessary
kubectl create -f local-volume-provisioner.generated.yaml
```

Expand Down
62 changes: 31 additions & 31 deletions helm/generated_examples/baremetal-affinity.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
---
# Source: provisioner/templates/serviceaccount.yaml
# Source: local-static-provisioner/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: local-static-provisioner
namespace: default
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
---
# Source: provisioner/templates/configmap.yaml
# Source: local-static-provisioner/templates/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: local-static-provisioner-config
namespace: default
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
data:
Expand All @@ -32,28 +32,28 @@ data:
- "2"
volumeMode: Block
---
# Source: provisioner/templates/storageclass.yaml
# Source: local-static-provisioner/templates/storageclass.yaml
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-storage
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete
---
# Source: provisioner/templates/rbac.yaml
# Source: local-static-provisioner/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: local-static-provisioner-node-clusterrole
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
rules:
Expand All @@ -73,14 +73,14 @@ rules:
resources: ["nodes"]
verbs: ["get"]
---
# Source: provisioner/templates/rbac.yaml
# Source: local-static-provisioner/templates/rbac.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: local-static-provisioner-node-binding
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
subjects:
Expand All @@ -92,29 +92,29 @@ roleRef:
name: local-static-provisioner-node-clusterrole
apiGroup: rbac.authorization.k8s.io
---
# Source: provisioner/templates/daemonset_linux.yaml
# Source: local-static-provisioner/templates/daemonset_linux.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: local-static-provisioner
namespace: default
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
spec:
selector:
matchLabels:
app.kubernetes.io/name: provisioner
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/instance: local-static-provisioner
template:
metadata:
labels:
app.kubernetes.io/name: provisioner
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/instance: local-static-provisioner
annotations:
checksum/config: 49fd0db6c0e3bc6c0607d6f94132b4bd3a4b7445efd977e564038e93320045cf
checksum/config: 26ec1983f036e7702e8b97e6294f51995f9e78c8bb812e7ca5468a45a2df2a04
spec:
serviceAccountName: local-static-provisioner
nodeSelector:
Expand All @@ -131,7 +131,7 @@ spec:
- localssd
containers:
- name: provisioner
image: k8s.gcr.io/sig-storage/local-volume-provisioner:v2.4.0
image: registry.k8s.io/sig-storage/local-volume-provisioner:v2.5.0
securityContext:
privileged: true
env:
Expand All @@ -144,7 +144,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: JOB_CONTAINER_IMAGE
value: k8s.gcr.io/sig-storage/local-volume-provisioner:v2.4.0
value: registry.k8s.io/sig-storage/local-volume-provisioner:v2.5.0
ports:
- name: metrics
containerPort: 8080
Expand All @@ -168,29 +168,29 @@ spec:
hostPath:
path: /mnt/disks
---
# Source: provisioner/templates/daemonset_windows.yaml
# Source: local-static-provisioner/templates/daemonset_windows.yaml
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: local-static-provisioner-win
namespace: default
labels:
helm.sh/chart: provisioner-2.6.0-alpha.1
app.kubernetes.io/name: provisioner
helm.sh/chart: local-static-provisioner-1.0.0
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/instance: local-static-provisioner
spec:
selector:
matchLabels:
app.kubernetes.io/name: provisioner
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/instance: local-static-provisioner
template:
metadata:
labels:
app.kubernetes.io/name: provisioner
app.kubernetes.io/name: local-static-provisioner
app.kubernetes.io/instance: local-static-provisioner
annotations:
checksum/config: 49fd0db6c0e3bc6c0607d6f94132b4bd3a4b7445efd977e564038e93320045cf
checksum/config: 26ec1983f036e7702e8b97e6294f51995f9e78c8bb812e7ca5468a45a2df2a04
spec:
serviceAccountName: local-static-provisioner
nodeSelector:
Expand All @@ -211,7 +211,7 @@ spec:
- localssd
containers:
- name: provisioner
image: k8s.gcr.io/sig-storage/local-volume-provisioner:v2.4.0
image: registry.k8s.io/sig-storage/local-volume-provisioner:v2.5.0
env:
- name: MY_NODE_NAME
valueFrom:
Expand All @@ -222,7 +222,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: JOB_CONTAINER_IMAGE
value: k8s.gcr.io/sig-storage/local-volume-provisioner:v2.4.0
value: registry.k8s.io/sig-storage/local-volume-provisioner:v2.5.0
ports:
- name: metrics
containerPort: 8080
Expand Down
Loading

0 comments on commit ad2bfba

Please sign in to comment.