Skip to content

Commit 2fa8c58

Browse files
committed
Remove unused accessFrom field from Bucket v1
Signed-off-by: Stefan Prodan <[email protected]>
1 parent 297b5f1 commit 2fa8c58

File tree

5 files changed

+20
-75
lines changed

5 files changed

+20
-75
lines changed

api/v1/bucket_types.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import (
2121

2222
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2323

24-
"github.com/fluxcd/pkg/apis/acl"
2524
"github.com/fluxcd/pkg/apis/meta"
2625
)
2726

@@ -141,12 +140,6 @@ type BucketSpec struct {
141140
// Bucket.
142141
// +optional
143142
Suspend bool `json:"suspend,omitempty"`
144-
145-
// AccessFrom specifies an Access Control List for allowing cross-namespace
146-
// references to this object.
147-
// NOTE: Not implemented, provisional as of https://github.com/fluxcd/flux2/pull/2092
148-
// +optional
149-
AccessFrom *acl.AccessFrom `json:"accessFrom,omitempty"`
150143
}
151144

152145
// BucketSTSSpec specifies the required configuration to use a Security Token

api/v1/zz_generated.deepcopy.go

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/v1beta2/bucket_types.go

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,38 @@ const (
3333
)
3434

3535
const (
36+
// BucketProviderGeneric for any S3 API compatible storage Bucket.
37+
BucketProviderGeneric string = "generic"
38+
// BucketProviderAmazon for an AWS S3 object storage Bucket.
39+
// Provides support for retrieving credentials from the AWS EC2 service.
40+
BucketProviderAmazon string = "aws"
41+
// BucketProviderGoogle for a Google Cloud Storage Bucket.
42+
// Provides support for authentication using a workload identity.
43+
BucketProviderGoogle string = "gcp"
44+
// BucketProviderAzure for an Azure Blob Storage Bucket.
45+
// Provides support for authentication using a Service Principal,
46+
// Managed Identity or Shared Key.
47+
BucketProviderAzure string = "azure"
48+
3649
// GenericBucketProvider for any S3 API compatible storage Bucket.
37-
// Deprecated: use v1.BucketProviderGeneric.
50+
//
51+
// Deprecated: use BucketProviderGeneric.
3852
GenericBucketProvider string = apiv1.BucketProviderGeneric
3953
// AmazonBucketProvider for an AWS S3 object storage Bucket.
4054
// Provides support for retrieving credentials from the AWS EC2 service.
55+
//
4156
// Deprecated: use v1.BucketProviderAmazon.
4257
AmazonBucketProvider string = apiv1.BucketProviderAmazon
4358
// GoogleBucketProvider for a Google Cloud Storage Bucket.
4459
// Provides support for authentication using a workload identity.
45-
// Deprecated: use v1.BucketProviderGoogle.
60+
//
61+
// Deprecated: use BucketProviderGoogle.
4662
GoogleBucketProvider string = apiv1.BucketProviderGoogle
4763
// AzureBucketProvider for an Azure Blob Storage Bucket.
4864
// Provides support for authentication using a Service Principal,
4965
// Managed Identity or Shared Key.
50-
// Deprecated: use v1.BucketProviderAzure.
66+
//
67+
// Deprecated: use BucketProviderAzure.
5168
AzureBucketProvider string = apiv1.BucketProviderAzure
5269
)
5370

config/crd/bases/source.toolkit.fluxcd.io_buckets.yaml

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -54,34 +54,6 @@ spec:
5454
BucketSpec specifies the required configuration to produce an Artifact for
5555
an object storage bucket.
5656
properties:
57-
accessFrom:
58-
description: |-
59-
AccessFrom specifies an Access Control List for allowing cross-namespace
60-
references to this object.
61-
NOTE: Not implemented, provisional as of https://github.com/fluxcd/flux2/pull/2092
62-
properties:
63-
namespaceSelectors:
64-
description: |-
65-
NamespaceSelectors is the list of namespace selectors to which this ACL applies.
66-
Items in this list are evaluated using a logical OR operation.
67-
items:
68-
description: |-
69-
NamespaceSelector selects the namespaces to which this ACL applies.
70-
An empty map of MatchLabels matches all namespaces in a cluster.
71-
properties:
72-
matchLabels:
73-
additionalProperties:
74-
type: string
75-
description: |-
76-
MatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels
77-
map is equivalent to an element of matchExpressions, whose key field is "key", the
78-
operator is "In", and the values array contains only "value". The requirements are ANDed.
79-
type: object
80-
type: object
81-
type: array
82-
required:
83-
- namespaceSelectors
84-
type: object
8557
bucketName:
8658
description: BucketName is the name of the object storage bucket.
8759
type: string

docs/api/v1/source.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -275,22 +275,6 @@ bool
275275
Bucket.</p>
276276
</td>
277277
</tr>
278-
<tr>
279-
<td>
280-
<code>accessFrom</code><br>
281-
<em>
282-
<a href="https://pkg.go.dev/github.com/fluxcd/pkg/apis/acl#AccessFrom">
283-
github.com/fluxcd/pkg/apis/acl.AccessFrom
284-
</a>
285-
</em>
286-
</td>
287-
<td>
288-
<em>(Optional)</em>
289-
<p>AccessFrom specifies an Access Control List for allowing cross-namespace
290-
references to this object.
291-
NOTE: Not implemented, provisional as of <a href="https://github.com/fluxcd/flux2/pull/2092">https://github.com/fluxcd/flux2/pull/2092</a></p>
292-
</td>
293-
</tr>
294278
</table>
295279
</td>
296280
</tr>
@@ -1421,22 +1405,6 @@ bool
14211405
Bucket.</p>
14221406
</td>
14231407
</tr>
1424-
<tr>
1425-
<td>
1426-
<code>accessFrom</code><br>
1427-
<em>
1428-
<a href="https://pkg.go.dev/github.com/fluxcd/pkg/apis/acl#AccessFrom">
1429-
github.com/fluxcd/pkg/apis/acl.AccessFrom
1430-
</a>
1431-
</em>
1432-
</td>
1433-
<td>
1434-
<em>(Optional)</em>
1435-
<p>AccessFrom specifies an Access Control List for allowing cross-namespace
1436-
references to this object.
1437-
NOTE: Not implemented, provisional as of <a href="https://github.com/fluxcd/flux2/pull/2092">https://github.com/fluxcd/flux2/pull/2092</a></p>
1438-
</td>
1439-
</tr>
14401408
</tbody>
14411409
</table>
14421410
</div>

0 commit comments

Comments
 (0)