Skip to content

Commit

Permalink
request path
Browse files Browse the repository at this point in the history
  • Loading branch information
longjuan committed Apr 15, 2024
1 parent 7385ffc commit e2fd2c3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
public class PolicyConfigValidationController {
private final S3OsAttachmentHandler handler;

@PostMapping("/configmap/policy/validation")
@PostMapping("/policies/s3/validation")
public Mono<Void> validatePolicyConfig(@RequestBody S3OsProperties properties) {
var filename = "halo-s3-plugin-test-file-" + System.currentTimeMillis() + ".jpg";

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/extensions/policy-template-s3os.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
- group: default
formSchema:
- $formkit: verificationForm
action: "/apis/s3os.halo.run/v1alpha1/configmap/policy/validation"
action: "/apis/s3os.halo.run/v1alpha1/policies/s3/validation"
label: 对象存储验证
children:
- $formkit: text
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/extensions/s3os-role-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ metadata:
rbac.authorization.halo.run/aggregate-to-role-template-manage-configmaps: "true"
rules:
- apiGroups: ["s3os.halo.run"]
resources: ["configmap/validation"]
resourceNames: ["policy"]
resources: ["policies/validation"]
resourceNames: ["s3"]
verbs: [ "create" ]

0 comments on commit e2fd2c3

Please sign in to comment.