@@ -21,6 +21,9 @@ type ListOptions struct {
2121 ClusterStatus string
2222 OperationStatus string
2323
24+ ComponentGitRepository string
25+ ComponentGitBranch string
26+
2427 Search string
2528
2629 Labels map [string ]string
@@ -38,6 +41,8 @@ func (lo *ListOptions) UpdateFlagSet(flags *pflag.FlagSet) {
3841 flags .StringVar (& lo .OperationStatus , "operationStatus" , lo .OperationStatus , "Filter by Operation Status" )
3942 flags .StringVar (& lo .KubernetesIntegration , "k8sCluster" , lo .KubernetesIntegration , "Filter by K8SIntegrationID" )
4043 flags .StringVar (& lo .Search , "search" , lo .Search , "Search by name" )
44+ flags .StringVar (& lo .ComponentGitRepository , "componentGitRepo" , lo .ComponentGitRepository , "Filter by Component Git Repository" )
45+ flags .StringVar (& lo .ComponentGitBranch , "componentGitBranch" , lo .ComponentGitBranch , "Filter by Component Git Branch" )
4146
4247 flags .StringToStringVar (& lo .Labels , "label" , lo .Labels , "Filter by label (key=value)" )
4348
@@ -101,6 +106,14 @@ func applyOptions(request sdk.ApiEnvironmentListRequest, options *ListOptions) s
101106 request = request .Type_ (options .Type )
102107 }
103108
109+ if options .ComponentGitRepository != "" {
110+ request = request .ComponentGitRepository (options .ComponentGitRepository )
111+ }
112+
113+ if options .ComponentGitBranch != "" {
114+ request = request .ComponentGitBranch (options .ComponentGitBranch )
115+ }
116+
104117 if len (options .Labels ) > 0 {
105118 request = request .Labels (options .Labels )
106119 }
0 commit comments