Skip to content

Commit dd6d29a

Browse files
authored
Merge pull request #5 from jacobwolfaws/main
Adding support for dynamic provisioning
2 parents d232697 + 2ca873a commit dd6d29a

File tree

952 files changed

+460476
-590
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

952 files changed

+460476
-590
lines changed

Dockerfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
#Copyright 2022 The Kubernetes Authors
2+
#
3+
#Licensed under the Apache License, Version 2.0 (the "License");
4+
#you may not use this file except in compliance with the License.
5+
#You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
#Unless required by applicable law or agreed to in writing, software
10+
#distributed under the License is distributed on an "AS IS" BASIS,
11+
#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
#See the License for the specific language governing permissions and
13+
#limitations under the License.
14+
115
FROM --platform=$BUILDPLATFORM golang:1.19.0-bullseye as builder
216
WORKDIR /go/src/github.com/kubernetes-sigs/aws-file-cache-csi-driver
317
ADD . .

Makefile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
#Copyright 2022 The Kubernetes Authors
2+
#
3+
#Licensed under the Apache License, Version 2.0 (the "License");
4+
#you may not use this file except in compliance with the License.
5+
#You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
#Unless required by applicable law or agreed to in writing, software
10+
#distributed under the License is distributed on an "AS IS" BASIS,
11+
#WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
#See the License for the specific language governing permissions and
13+
#limitations under the License.
14+
115
VERSION=0.1.0
216

317
PKG=github.com/kubernetes-sigs/aws-file-cache-csi-driver
@@ -12,7 +26,7 @@ GOPATH=$(shell go env GOPATH)
1226
GOOS=$(shell go env GOOS)
1327
GOBIN=$(shell pwd)/bin
1428

15-
IMAGE?=648284600874.dkr.ecr.us-east-1.amazonaws.com/aws-file-cache-csi-driver
29+
IMAGE?=651262257939.dkr.ecr.us-east-1.amazonaws.com/file-cache-dynamic-provisioning
1630
TAG?=$(GIT_COMMIT)
1731

1832
OUTPUT_TYPE?=docker

all-push

Whitespace-only changes.

cmd/main.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
Copyright 2022 The Kubernetes Authors
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
117
package main
218

319
import (

deploy/kubernetes/base/controller-deployment.yaml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,14 @@ spec:
3030
tolerationSeconds: 300
3131
containers:
3232
- name: file-cache-plugin
33-
image: 648284600874.dkr.ecr.us-east-1.amazonaws.com/aws-file-cache-csi-driver:v0.0.1
34-
args :
33+
image: 651262257939.dkr.ecr.us-east-1.amazonaws.com/file-cache-dynamic-provisioning:v0.0.25
34+
imagePullPolicy: IfNotPresent
35+
args:
3536
- --endpoint=$(CSI_ENDPOINT)
3637
- --v=5
3738
env:
3839
- name: CSI_ENDPOINT
3940
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
40-
- name: AWS_ACCESS_KEY_ID
41-
valueFrom:
42-
secretKeyRef:
43-
name: aws-secret
44-
key: key_id
45-
optional: true
46-
- name: AWS_SECRET_ACCESS_KEY
47-
valueFrom:
48-
secretKeyRef:
49-
name: aws-secret
50-
key: access_key
51-
optional: true
5241
volumeMounts:
5342
- name: socket-dir
5443
mountPath: /var/lib/csi/sockets/pluginproxy/
@@ -87,4 +76,4 @@ spec:
8776
mountPath: /csi
8877
volumes:
8978
- name: socket-dir
90-
emptyDir: {}
79+
emptyDir: {}

deploy/kubernetes/base/controller-serviceaccount.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
apiVersion: v1
43
kind: ServiceAccount
54
metadata:
@@ -36,7 +35,6 @@ rules:
3635
- apiGroups: ["coordination.k8s.io"]
3736
resources: ["leases"]
3837
verbs: ["get", "watch", "list", "delete", "update", "create"]
39-
4038
---
4139

4240
kind: ClusterRoleBinding
@@ -54,3 +52,4 @@ roleRef:
5452
name: file-cache-csi-external-provisioner-role
5553
apiGroup: rbac.authorization.k8s.io
5654
---
55+

deploy/kubernetes/base/node-daemonset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
kind: DaemonSet
43
apiVersion: apps/v1
54
metadata:
@@ -33,7 +32,8 @@ spec:
3332
- name: file-cache-plugin
3433
securityContext:
3534
privileged: true
36-
image: 648284600874.dkr.ecr.us-east-1.amazonaws.com/aws-file-cache-csi-driver:v0.0.1
35+
image: 651262257939.dkr.ecr.us-east-1.amazonaws.com/file-cache-dynamic-provisioning:v0.0.25
36+
imagePullPolicy: IfNotPresent
3737
args:
3838
- --endpoint=$(CSI_ENDPOINT)
3939
- --logtostderr
@@ -100,4 +100,4 @@ spec:
100100
- name: plugin-dir
101101
hostPath:
102102
path: /var/lib/kubelet/plugins/filecache.csi.aws.com/
103-
type: DirectoryOrCreate
103+
type: DirectoryOrCreate

deploy/kubernetes/overlay/dev/kustomization.yaml

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
images:
4+
- name: 651262257939.dkr.ecr.us-east-1.amazonaws.com/file-cache-dynamic-provisioning
5+
newName: 651262257939.dkr.ecr.us-east-1.amazonaws.com/file-cache-dynamic-provisioning
6+
newTag: v0.0.25

deploy/kubernetes/secret.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)