-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: construct and include bucket ARN in status (#132)
Fixes aws-controllers-k8s/community#2124 This patch adds the bucket's ARN to its status, as the S3 API doesn't provide it directly: - Add helper function to construct bucket ARNs - Set constructed ARN in resource status after creation/retrieval - Update e2e tests to verify ARN presence A minor addition to improve resource information completeness... By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
- Loading branch information
Showing
5 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
if err := rm.addPutFieldsToSpec(ctx, r, ko); err != nil { | ||
return nil, err | ||
} | ||
} | ||
|
||
// Set bucket ARN in the output | ||
bucketARN := ackv1alpha1.AWSResourceName(bucketARN(*ko.Spec.Name)) | ||
ko.Status.ACKResourceMetadata.ARN = &bucketARN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters