@@ -155,20 +155,13 @@ func (c *CLIDownloadsSyncController) Sync(ctx context.Context, controllerContext
155
155
return statusHandler .FlushAndReturn (ocCLIDownloadsErr )
156
156
}
157
157
158
- _ , odoCLIDownloadsErrReason , odoCLIDownloadsErr := ApplyCLIDownloads (ctx , c .consoleCliDownloadsClient , ODOConsoleCLIDownloads ())
159
- statusHandler .AddCondition (status .HandleDegraded ("ODODownloadsSync" , odoCLIDownloadsErrReason , odoCLIDownloadsErr ))
160
- if odoCLIDownloadsErr != nil {
161
- return statusHandler .FlushAndReturn (odoCLIDownloadsErr )
162
- }
163
-
164
158
return statusHandler .FlushAndReturn (nil )
165
159
}
166
160
167
161
func (c * CLIDownloadsSyncController ) removeCLIDownloads (ctx context.Context ) error {
168
162
defer klog .V (4 ).Info ("finished deleting ConsoleCliDownloads custom resources" )
169
163
var errs []error
170
164
errs = append (errs , c .consoleCliDownloadsClient .Delete (ctx , api .OCCLIDownloadsCustomResourceName , metav1.DeleteOptions {}))
171
- errs = append (errs , c .consoleCliDownloadsClient .Delete (ctx , api .ODOCLIDownloadsCustomResourceName , metav1.DeleteOptions {}))
172
165
return utilerrors .FilterOut (utilerrors .NewAggregate (errs ), errors .IsNotFound )
173
166
}
174
167
@@ -220,27 +213,6 @@ The oc binary offers the same capabilities as the kubectl binary, but it is furt
220
213
}
221
214
}
222
215
223
- func ODOConsoleCLIDownloads () * v1.ConsoleCLIDownload {
224
- return & v1.ConsoleCLIDownload {
225
- ObjectMeta : metav1.ObjectMeta {
226
- Name : api .ODOCLIDownloadsCustomResourceName ,
227
- },
228
- Spec : v1.ConsoleCLIDownloadSpec {
229
- Description : `odo is a fast, iterative, and straightforward CLI tool for developers who write, build, and deploy applications on OpenShift.
230
-
231
- odo abstracts away complex Kubernetes and OpenShift concepts, thus allowing developers to focus on what is most important to them: code.
232
- ` ,
233
- DisplayName : "odo - Developer-focused CLI for OpenShift (Community Support)" ,
234
- Links : []v1.CLIDownloadLink {
235
- {
236
- Href : "https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/latest" ,
237
- Text : "Download odo" ,
238
- },
239
- },
240
- },
241
- }
242
- }
243
-
244
216
// TODO: All the custom `Apply*` functions should be at some point be placed into:
245
217
// openshift/library-go/pkg/console/resource/resourceapply/core.go
246
218
func ApplyCLIDownloads (ctx context.Context , consoleClient consoleclientv1.ConsoleCLIDownloadInterface , requiredCLIDownloads * v1.ConsoleCLIDownload ) (* v1.ConsoleCLIDownload , string , error ) {
0 commit comments