Setting package buildStatus to pending when functions source is updated. (#637)

This commit is contained in:
smruthi2187
2018-04-24 15:24:46 +08:00
committed by Ta-Ching Chen
parent 7198b24028
commit 772fdfa15c
2 changed files with 10 additions and 3 deletions
+4
View File
@@ -393,6 +393,10 @@ func fnUpdate(c *cli.Context) error {
fatal("Need --env or --deploy or --src or --pkg or --entrypoint or --buildcmd or --secret or --secretNamespace or --configmap or --configmapNamespace argument.")
}
if len(srcArchiveName) > 0 && len(deployArchiveName) > 0 {
fatal("Need either of --src or --deploy and not both arguments.")
}
if len(secretName) > 0 {
if len(function.Spec.Secrets) > 1 {
fatal("Please use 'fission spec apply' to update list of secrets")