|
83 | 83 |
|
84 | 84 | # Step 4: Apply Bucket Class |
85 | 85 | log_and_run echo "Applying Bucket Class..." |
86 | | -log_and_run kubectl apply -f cosi-examples/bucketclass.yaml |
| 86 | +log_and_run kubectl apply -f cosi-examples/greenfield/bucketclass.yaml |
87 | 87 |
|
88 | 88 | # Step 5: Apply Bucket Claim |
89 | 89 | log_and_run echo "Applying Bucket Claim..." |
90 | | -log_and_run kubectl apply -f cosi-examples/bucketclaim.yaml |
| 90 | +log_and_run kubectl apply -f cosi-examples/greenfield/bucketclaim.yaml |
91 | 91 |
|
92 | 92 | # Step 6: Apply Bucket Access Class |
93 | 93 | log_and_run echo "Applying Bucket Access Class..." |
94 | | -log_and_run kubectl apply -f cosi-examples/bucketaccessclass.yaml |
| 94 | +log_and_run kubectl apply -f cosi-examples/greenfield/bucketaccessclass.yaml |
95 | 95 |
|
96 | 96 | # Step 7: Apply Bucket Access |
97 | 97 | log_and_run echo "Applying Bucket Access..." |
98 | | -log_and_run kubectl apply -f cosi-examples/bucketaccess.yaml |
| 98 | +log_and_run kubectl apply -f cosi-examples/greenfield/bucketaccess.yaml |
99 | 99 |
|
100 | 100 | # Step 8: Verify Bucket Creation with Retry |
101 | 101 | log_and_run echo "Listing all S3 buckets before verification..." |
|
213 | 213 |
|
214 | 214 | # Step 11: Delete Bucket Access Resource |
215 | 215 | log_and_run echo "Deleting Bucket Access Resource..." |
216 | | -log_and_run kubectl delete -f cosi-examples/bucketaccess.yaml |
| 216 | +log_and_run kubectl delete -f cosi-examples/greenfield/bucketaccess.yaml |
217 | 217 |
|
218 | 218 | # Step 12: Verify IAM User Deletion |
219 | 219 | log_and_run echo "Verifying IAM user '$IAM_USER_NAME' deletion..." |
|
230 | 230 | # Step 13: Test deletion bucket with deletion policy set |
231 | 231 |
|
232 | 232 | log_and_run echo "Applying Bucket Class with deletion policy and respective Bucket Claim..." |
233 | | -log_and_run kubectl apply -f cosi-examples/bucketclass-deletion-policy.yaml |
234 | | -log_and_run kubectl apply -f cosi-examples/bucketclaim-deletion-policy.yaml |
| 233 | +log_and_run kubectl apply -f cosi-examples/greenfield/bucketclass-deletion-policy.yaml |
| 234 | +log_and_run kubectl apply -f cosi-examples/greenfield/bucketclaim-deletion-policy.yaml |
235 | 235 |
|
236 | 236 | log_and_run echo "Listing all S3 buckets before deletion..." |
237 | 237 | log_and_run aws s3 ls --endpoint-url "$S3_ENDPOINT" |
@@ -259,7 +259,7 @@ if [ -z "$BUCKET_TO_BE_DELETED" ]; then |
259 | 259 | fi |
260 | 260 |
|
261 | 261 | log_and_run echo "Deleting Bucket Claim..." |
262 | | -log_and_run kubectl delete -f cosi-examples/bucketclaim-deletion-policy.yaml |
| 262 | +log_and_run kubectl delete -f cosi-examples/greenfield/bucketclaim-deletion-policy.yaml |
263 | 263 |
|
264 | 264 | # Check if the bucket with name $BUCKET_TO_BE_DELETED exists by doing a head bucket. |
265 | 265 | # If bucket exists, retry with ATTEMPTS and DELAY. If bucket is not found, test success. |
|
0 commit comments