Merge pull request #19 from ctrox/cleanup
Clean up old references to encryptionKey and fix up deployment
This commit is contained in:
commit
29c10b9418
7 changed files with 8 additions and 60 deletions
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: csi-attacher-sa
|
||||
namespace: kube-system
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
|
@ -43,6 +43,7 @@ kind: Service
|
|||
apiVersion: v1
|
||||
metadata:
|
||||
name: csi-attacher-s3
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: csi-attacher-s3
|
||||
spec:
|
||||
|
@ -56,6 +57,7 @@ kind: StatefulSet
|
|||
apiVersion: apps/v1beta1
|
||||
metadata:
|
||||
name: csi-attacher-s3
|
||||
namespace: kube-system
|
||||
spec:
|
||||
serviceName: "csi-attacher-s3"
|
||||
replicas: 1
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: csi-s3
|
||||
namespace: kube-system
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
|
@ -42,6 +42,7 @@ kind: DaemonSet
|
|||
apiVersion: apps/v1beta2
|
||||
metadata:
|
||||
name: csi-s3
|
||||
namespace: kube-system
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
|
@ -92,31 +93,6 @@ spec:
|
|||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: accessKeyID
|
||||
- name: SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: secretAccessKey
|
||||
- name: S3_ENDPOINT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: endpoint
|
||||
- name: REGION
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: region
|
||||
- name: ENCRYPTION_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: encryptionKey
|
||||
imagePullPolicy: "Always"
|
||||
volumeMounts:
|
||||
- name: plugin-dir
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: csi-provisioner-sa
|
||||
namespace: kube-system
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
|
@ -42,6 +42,7 @@ kind: Service
|
|||
apiVersion: v1
|
||||
metadata:
|
||||
name: csi-provisioner-s3
|
||||
namespace: kube-system
|
||||
labels:
|
||||
app: csi-provisioner-s3
|
||||
spec:
|
||||
|
@ -55,6 +56,7 @@ kind: StatefulSet
|
|||
apiVersion: apps/v1beta1
|
||||
metadata:
|
||||
name: csi-provisioner-s3
|
||||
namespace: kube-system
|
||||
spec:
|
||||
serviceName: "csi-provisioner-s3"
|
||||
replicas: 1
|
||||
|
@ -91,31 +93,6 @@ spec:
|
|||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: spec.nodeName
|
||||
- name: ACCESS_KEY_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: accessKeyID
|
||||
- name: SECRET_ACCESS_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: secretAccessKey
|
||||
- name: S3_ENDPOINT
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: endpoint
|
||||
- name: REGION
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: region
|
||||
- name: ENCRYPTION_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: csi-s3-secret
|
||||
key: encryptionKey
|
||||
imagePullPolicy: "Always"
|
||||
volumeMounts:
|
||||
- name: socket-dir
|
||||
|
|
|
@ -7,5 +7,4 @@ type Config struct {
|
|||
Region string
|
||||
Endpoint string
|
||||
Mounter string
|
||||
EncryptionKey string
|
||||
}
|
||||
|
|
|
@ -55,7 +55,6 @@ func newS3ClientFromSecrets(secrets map[string]string) (*s3Client, error) {
|
|||
SecretAccessKey: secrets["secretAccessKey"],
|
||||
Region: secrets["region"],
|
||||
Endpoint: secrets["endpoint"],
|
||||
EncryptionKey: secrets["encryptionKey"],
|
||||
// Mounter is set in the volume preferences, not secrets
|
||||
Mounter: "",
|
||||
})
|
||||
|
|
|
@ -3,28 +3,23 @@ CreateVolumeSecret:
|
|||
secretAccessKey: DSG643HGDS
|
||||
endpoint: http://127.0.0.1:9000
|
||||
region: ""
|
||||
encryptionKey: ""
|
||||
DeleteVolumeSecret:
|
||||
accessKeyID: FJDSJ
|
||||
secretAccessKey: DSG643HGDS
|
||||
endpoint: http://127.0.0.1:9000
|
||||
region: ""
|
||||
encryptionKey: ""
|
||||
NodeStageVolumeSecret:
|
||||
accessKeyID: FJDSJ
|
||||
secretAccessKey: DSG643HGDS
|
||||
endpoint: http://127.0.0.1:9000
|
||||
region: ""
|
||||
encryptionKey: ""
|
||||
NodePublishVolumeSecret:
|
||||
accessKeyID: FJDSJ
|
||||
secretAccessKey: DSG643HGDS
|
||||
endpoint: http://127.0.0.1:9000
|
||||
region: ""
|
||||
encryptionKey: ""
|
||||
ControllerValidateVolumeCapabilitiesSecret:
|
||||
accessKeyID: FJDSJ
|
||||
secretAccessKey: DSG643HGDS
|
||||
endpoint: http://127.0.0.1:9000
|
||||
region: ""
|
||||
encryptionKey: ""
|
Loading…
Reference in a new issue