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
refactoring --image-repository arg so it can be used across cmds (#282)
Issue #, if available:
- Fixes: aws-controllers-k8s/community#1154
- Fixes: aws-controllers-k8s/community#780
Description of changes:
- refactoring --image-repository arg so it can be used across cmds
- removing redundant steps in the olm-create-bundle script that is now handled in code/kustomize directly
- referencing new template args in CSV tpl to keep it consistent with the deployment
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Signed-off-by: Adam D. Cornett <[email protected]>
Copy file name to clipboardExpand all lines: cmd/ack-generate/command/olm.go
-3
Original file line number
Diff line number
Diff line change
@@ -58,9 +58,6 @@ func init() {
58
58
olmCmd.PersistentFlags().BoolVar(
59
59
&optDisableCommonKeywords, "no-common-keywords", false, "does not include common keywords in the rendered cluster service version",
60
60
)
61
-
olmCmd.PersistentFlags().StringVar(
62
-
&optImageRepository, "image-repository", "", "the Docker image repository that stores the ACK service controller. Default: 'public.ecr.aws/aws-controllers-k8s/$service-controller'",
@@ -38,9 +35,6 @@ var releaseCmd = &cobra.Command{
38
35
}
39
36
40
37
funcinit() {
41
-
releaseCmd.PersistentFlags().StringVar(
42
-
&optImageRepository, "image-repository", "", "the Docker image repository to use in release artifacts. Defaults to 'public.ecr.aws/aws-controllers-k8s/$service-controller'",
43
-
)
44
38
releaseCmd.PersistentFlags().StringVarP(
45
39
&optReleaseOutputPath, "output", "o", "", "path to root directory to create generated files. Defaults to "+optServicesDir+"/$service",
Copy file name to clipboardExpand all lines: cmd/ack-generate/command/root.go
+4
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,7 @@ var (
44
44
optMetadataConfigPathstring
45
45
optOutputPathstring
46
46
optServiceAccountNamestring
47
+
optImageRepositorystring
47
48
)
48
49
49
50
varrootCmd=&cobra.Command{
@@ -125,6 +126,9 @@ func init() {
125
126
rootCmd.PersistentFlags().StringVar(
126
127
&optServiceAccountName, "service-account-name", "", "The name of the ServiceAccount used for ACK service controller",
127
128
)
129
+
rootCmd.PersistentFlags().StringVar(
130
+
&optImageRepository, "image-repository", "", "the Docker image repository to use in release artifacts. Defaults to 'public.ecr.aws/aws-controllers-k8s/$service-controller'",
131
+
)
128
132
}
129
133
130
134
// Execute adds all child commands to the root command and sets flags
0 commit comments