Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
laszlocph committed Oct 15, 2024
1 parent 7c561ea commit f3b3b97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/controllers/bucketController.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ func BucketController(
// check if v1 is supported
_, err := dynamicClient.Resource(bucketResource).Namespace("").List(context.TODO(), metav1.ListOptions{})
if err != nil {
// try and possibly fail (bucket-controller is not mandatory) with v1beta2
bucketResource = bucketResourceV1beta2
}

Expand Down
2 changes: 0 additions & 2 deletions pkg/flux/flux.go
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ func State(c *kubernetes.Clientset, dc *dynamic.DynamicClient) (*FluxState, erro
buckets, err := dc.Resource(bucketGVR).
Namespace("").
List(context.TODO(), metav1.ListOptions{})

if err != nil {
if strings.Contains(err.Error(), "the server could not find the requested resource") {
// let's try the deprecated v1beta2
Expand All @@ -473,7 +472,6 @@ func State(c *kubernetes.Clientset, dc *dynamic.DynamicClient) (*FluxState, erro
return nil, err
}
}

for _, repo := range buckets.Items {
unstructured := repo.UnstructuredContent()
var bucket sourcev1beta2.Bucket
Expand Down

0 comments on commit f3b3b97

Please sign in to comment.