Skip to content

Commit

Permalink
Renaming on ENV and secret name
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre-Emmanuel Jacquier <15922119+pierre-emmanuelJ@users.noreply.github.com>
  • Loading branch information
pierre-emmanuelJ committed Feb 1, 2024
1 parent fc86721 commit 2b33830
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion cmd/exoscale-csi-driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ func main() {

apiKey := os.Getenv("EXOSCALE_API_KEY")
apiSecret := os.Getenv("EXOSCALE_API_SECRET")
apiURL := os.Getenv("EXOSCALE_API_URL")
// Mostly for internal use.
apiURL := os.Getenv("EXOSCALE_API_ENDPOINT")

// The node mode don't need secrets and do not interact with Exoscale API.
if *mode != string(driver.NodeMode) && (apiKey == "" || apiSecret == "") {
Expand Down
2 changes: 1 addition & 1 deletion deployment/exoscale-csi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ spec:
fieldPath: metadata.name
envFrom:
- secretRef:
name: exoscale-csi-credentials
name: exoscale-credentials
volumeMounts:
- name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/
Expand Down
2 changes: 1 addition & 1 deletion deployment/exoscale-secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: exoscale-csi-credentials
name: exoscale-credentials
namespace: kube-system
type: Opaque
data:
Expand Down
2 changes: 1 addition & 1 deletion deployment/exoscale-secret.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: exoscale-csi-credentials
name: exoscale-credentials
namespace: kube-system
type: Opaque
stringData:
Expand Down
2 changes: 1 addition & 1 deletion internal/integ/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (k *K8S) applyManifest(ctx context.Context, manifest []byte) error {

// ApplySecret creates the secret needed for the CSI to work if it doesn't exist already.
func (k *K8S) ApplySecret(ctx context.Context, apiKey, apiSecret string) error {
name := "exoscale-csi-credentials"
name := "exoscale-credentials"
namespace := "kube-system"

secretData := map[string][]byte{
Expand Down

0 comments on commit 2b33830

Please # to comment.