Skip to content

Commit

Permalink
Change CloudStack config filename, to match the CS k8s provider
Browse files Browse the repository at this point in the history
The CloudStack Kubernetes provider started using `cloud-config`
instead of `cloudstack.ini` in apache/cloudstack-kubernetes-provider@8a3efaf#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5.
  • Loading branch information
olivierlemasle committed Aug 13, 2021
1 parent 82435ae commit 81a9b2b
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/bin
/test/e2e/e2e.test
/test/e2e/ginkgo
/cloudstack.ini
cloud-config
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ plugin for [Apache CloudStack](https://cloudstack.apache.org/).

### Configuration

Create the CloudStack configuration file `cloudstack.ini`.
Create the CloudStack configuration file `cloud-config`.

It should have the following format, defined for the [CloudStack Kubernetes Provider](https://github.com/apache/cloudstack-kubernetes-provider):

Expand All @@ -47,7 +47,7 @@ Create a secret named `cloudstack-secret` in namespace `kube-system`:
```
kubectl create secret generic \
--namespace kube-system \
--from-file ./cloudstack.ini \
--from-file ./cloud-config \
cloudstack-secret
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/cloudstack-csi-driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

var (
endpoint = flag.String("endpoint", "unix:///tmp/csi.sock", "CSI endpoint")
cloudstackconfig = flag.String("cloudstackconfig", "./cloudstack.ini", "CloudStack configuration file")
cloudstackconfig = flag.String("cloudstackconfig", "./cloud-config", "CloudStack configuration file")
nodeName = flag.String("nodeName", "", "Node name")
debug = flag.Bool("debug", false, "Enable debug logging")
showVersion = flag.Bool("version", false, "Show version")
Expand Down
2 changes: 1 addition & 1 deletion cmd/cloudstack-csi-sc-syncer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ spec:
- name: cloudstack-csi-sc-syncer
image: quay.io/apalia/cloudstack-csi-sc-syncer:${version}
args:
- "-cloudstackconfig=/etc/cloudstack-csi-driver/cloudstack.ini"
- "-cloudstackconfig=/etc/cloudstack-csi-driver/cloud-config"
- "-kubeconfig=-"
volumeMounts:
- name: cloudstack-conf
Expand Down
2 changes: 1 addition & 1 deletion cmd/cloudstack-csi-sc-syncer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
const agent = "cloudstack-csi-sc-syncer"

var (
cloudstackconfig = flag.String("cloudstackconfig", "./cloudstack.ini", "CloudStack configuration file")
cloudstackconfig = flag.String("cloudstackconfig", "./cloud-config", "CloudStack configuration file")
kubeconfig = flag.String("kubeconfig", path.Join(os.Getenv("HOME"), ".kube/config"), "Kubernetes configuration file. Use \"-\" to use in-cluster configuration.")
label = flag.String("label", "app.kubernetes.io/managed-by="+agent, "")
namePrefix = flag.String("namePrefix", "cloudstack-", "")
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/controller-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
imagePullPolicy: Always
args:
- "-endpoint=$(CSI_ENDPOINT)"
- "-cloudstackconfig=/etc/cloudstack-csi-driver/cloudstack.ini"
- "-cloudstackconfig=/etc/cloudstack-csi-driver/cloud-config"
- "-debug"
env:
- name: CSI_ENDPOINT
Expand Down
2 changes: 1 addition & 1 deletion deploy/k8s/node-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
imagePullPolicy: Always
args:
- "-endpoint=$(CSI_ENDPOINT)"
- "-cloudstackconfig=/etc/cloudstack-csi-driver/cloudstack.ini"
- "-cloudstackconfig=/etc/cloudstack-csi-driver/cloud-config"
- "-nodeName=$(NODE_NAME)"
- "-debug"
env:
Expand Down

0 comments on commit 81a9b2b

Please sign in to comment.