Commit fb41bd0
committed
fix: support private VPC S3 endpoints in Loki operator
Fixes #19243
The Loki operator was rejecting private VPC S3 endpoints due to overly
strict endpoint validation that only accepted the standard AWS S3 format
(https://s3.region.amazonaws.com).
This change updates the validateS3Endpoint function to also accept VPC
endpoint formats:
- https://bucket.vpce-*-region.s3.region.vpce.amazonaws.com
- https://vpce-*-region.s3.region.vpce.amazonaws.com
Changes:
- Modified validateS3Endpoint to check for VPC endpoint patterns
- Added comprehensive test cases for both VPC endpoint formats
- Maintains backward compatibility with standard AWS S3 endpoints
This allows users to configure Loki with private VPC S3 endpoints in
OpenShift environments without operator reconciliation failures.
Signed-off-by: puretension <rlrlfhtm5@gmail.com>1 parent 37eddab commit fb41bd0
File tree
2 files changed
+50
-2
lines changed- operator/internal/handlers/internal/storage
2 files changed
+50
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
| 509 | + | |
509 | 510 | | |
510 | | - | |
511 | | - | |
| 511 | + | |
| 512 | + | |
512 | 513 | | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
513 | 523 | | |
514 | 524 | | |
515 | 525 | | |
| |||
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
722 | 760 | | |
723 | 761 | | |
724 | 762 | | |
| |||
0 commit comments