Skip to content

Commit dae4219

Browse files
committed
... added dummy config to make the plugin get called.
1 parent 84f5a09 commit dae4219

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

csctldocker/csctldocker_main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ func main() {
6464
}
6565
fmt.Printf("clusterStackPath: %s\n", clusterStackPath)
6666
fmt.Printf("releaseDir: %s\n", releaseDir)
67-
fmt.Println(".... pretending to do heavy work (creating node images) ...")
67+
fmt.Printf("..... pretending to read config: %s\n", config.Config.Provider.Config["dummyKey"])
68+
fmt.Printf("..... pretending to do heavy work (creating node images) ...\n")
6869
}

pkg/providerplugin/providerplugin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
)
2828

2929
// GetProviderExecutable returns the path to the provider plugin (like "csctl-docker").
30-
// If there is not "config" for the provider in csctl.yaml, then needed is false and path is the empty string.
30+
// If there is not "config" for the provider in csctl.yaml, then "needed" is false and "path" is the empty string.
3131
func GetProviderExecutable(config *clusterstack.CsctlConfig) (needed bool, path string, err error) {
3232
if len(config.Config.Provider.Config) == 0 {
3333
return false, "", nil

tests/cluster-stacks/docker/ferrol/csctl.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ config:
55
provider:
66
type: docker
77
apiVersion: docker.csctl.clusterstack.x-k8s.io/v1alpha1
8+
config:
9+
dummyKey: dummyValue

0 commit comments

Comments
 (0)