You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make it possible to add annotations to the keys secret (#3484)
* Make it possible to add annotations to the keys secret
* fix inconsistent naming
* we need to quote booleans as well
* fix naming
* fix review comments
* fix condition according to comments
---------
Co-authored-by: Lilian Kasem <[email protected]>
@@ -93,6 +95,7 @@ public override ICommandLineParserResult ParseArgs(string[] args)
93
95
SetFlag<string>("config-file","if --write-configs is true, write configs to this file (default: 'functions.yaml')", f =>ConfigFile=f);
94
96
SetFlag<string>("hash-files","Files to hash to determine the image version", f =>HashFilesPattern=f);
95
97
SetFlag<bool>("image-build","If false, skip the docker build", f =>BuildImage=f);
98
+
SetFlag<string>("key-secret-annotations","The annotations to add to the keys secret e.g. key1=val1,key2=val2", a =>KeySecretAnnotations=a.Split(',').Select(s =>s.Split('=')).ToDictionary(k =>k[0], v =>v[1]));
96
99
97
100
returnbase.ParseArgs(args);
98
101
}
@@ -145,7 +148,9 @@ public override async Task RunAsync()
0 commit comments