feat(cli): provide imagepullsecret option for container as function (#2680)

Signed-off-by: Shubham Nazare <shubham4443@gmail.com>
This commit is contained in:
Shubham Nazare
2023-01-09 16:18:56 +05:30
committed by GitHub
parent 6667d7e383
commit 496e4e3162
4 changed files with 11 additions and 5 deletions
+1
View File
@@ -96,6 +96,7 @@ var (
RunTimeTargetCPU = Flag{Type: Int, Name: flagkey.RuntimeTargetcpu, Usage: "Target average CPU usage percentage across pods for scaling", DefaultValue: 80}
RunTimeMinMemory = Flag{Type: Int, Name: flagkey.RuntimeMinmemory, Usage: "Minimum memory to be assigned to pod (In megabyte)"}
RunTimeMaxMemory = Flag{Type: Int, Name: flagkey.RuntimeMaxmemory, Usage: "Maximum memory to be assigned to pod (In megabyte)"}
RunImagePullSecret = Flag{Type: String, Name: flagkey.RunImagePullSecret, Usage: "Secret for Kubernetes to pull an image from a private registry"}
ReplicasMin = Flag{Type: Int, Name: flagkey.ReplicasMinscale, Usage: "Minimum number of pods (Uses resource inputs to configure HPA)", DefaultValue: 1}
ReplicasMax = Flag{Type: Int, Name: flagkey.ReplicasMaxscale, Usage: "Maximum number of pods (Uses resource inputs to configure HPA)", DefaultValue: 1}
+6 -5
View File
@@ -44,11 +44,12 @@ const (
NamespacePod = "pod-namespace"
ForceDelete = "force"
RuntimeMincpu = "mincpu"
RuntimeMaxcpu = "maxcpu"
RuntimeMinmemory = "minmemory"
RuntimeMaxmemory = "maxmemory"
RuntimeTargetcpu = "targetcpu"
RuntimeMincpu = "mincpu"
RuntimeMaxcpu = "maxcpu"
RuntimeMinmemory = "minmemory"
RuntimeMaxmemory = "maxmemory"
RuntimeTargetcpu = "targetcpu"
RunImagePullSecret = "imagepullsecret"
ReplicasMinscale = "minscale"
ReplicasMaxscale = "maxscale"