fix: add validation to input for common trigger functions
This commit is contained in:
1 file changed
+3
-1
@@ -37,6 +37,7 @@ func TriggerCorePostDeploy(appName string) error {
|
|||||||
return common.CorePostDeploy(common.CorePostDeployInput{
|
return common.CorePostDeploy(common.CorePostDeployInput{
|
||||||
AppName: appName,
|
AppName: appName,
|
||||||
Destination: common.GetAppDataDirectory("scheduler-k3s", appName),
|
Destination: common.GetAppDataDirectory("scheduler-k3s", appName),
|
||||||
|
PluginName: "scheduler-k3s",
|
||||||
ExtractedPaths: []common.CorePostDeployPath{
|
ExtractedPaths: []common.CorePostDeployPath{
|
||||||
{Name: "kustomization", IsDirectory: true},
|
{Name: "kustomization", IsDirectory: true},
|
||||||
},
|
},
|
||||||
@@ -51,8 +52,9 @@ func TriggerCorePostExtract(appName string, sourceWorkDir string) error {
|
|||||||
kustomizeRootPath := getComputedKustomizeRootPath(appName)
|
kustomizeRootPath := getComputedKustomizeRootPath(appName)
|
||||||
return common.CorePostExtract(common.CorePostExtractInput{
|
return common.CorePostExtract(common.CorePostExtractInput{
|
||||||
AppName: appName,
|
AppName: appName,
|
||||||
SourceWorkDir: sourceWorkDir,
|
|
||||||
Destination: destination,
|
Destination: destination,
|
||||||
|
PluginName: "scheduler-k3s",
|
||||||
|
SourceWorkDir: sourceWorkDir,
|
||||||
ToExtract: []common.CorePostExtractToExtract{
|
ToExtract: []common.CorePostExtractToExtract{
|
||||||
{Path: kustomizeRootPath, IsDirectory: true, Destination: "kustomization"},
|
{Path: kustomizeRootPath, IsDirectory: true, Destination: "kustomization"},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user