From 05709ed155eb0c10f8aea36d36cbaaea8a4fc3e8 Mon Sep 17 00:00:00 2001 From: "Maximilian Blatt (external expert on behalf of DB Netz)" Date: Wed, 31 Jan 2024 08:55:56 +0100 Subject: [PATCH] fix(iam): Add schema type to RolePolicy document Signed-off-by: Maximilian Blatt (external expert on behalf of DB Netz) --- apis/iam/v1beta1/rolepolicy_types.go | 1 + package/crds/iam.aws.crossplane.io_rolepolicies.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/apis/iam/v1beta1/rolepolicy_types.go b/apis/iam/v1beta1/rolepolicy_types.go index b76315c5a5..c8c9779673 100644 --- a/apis/iam/v1beta1/rolepolicy_types.go +++ b/apis/iam/v1beta1/rolepolicy_types.go @@ -26,6 +26,7 @@ import ( type RolePolicyParameters struct { // The JSON policy document that is the content for the policy. + // +kubebuilder:validation:Type=object Document extv1.JSON `json:"document"` // RoleName presents the name of the IAM role. diff --git a/package/crds/iam.aws.crossplane.io_rolepolicies.yaml b/package/crds/iam.aws.crossplane.io_rolepolicies.yaml index 6c62286425..523e3645fb 100644 --- a/package/crds/iam.aws.crossplane.io_rolepolicies.yaml +++ b/package/crds/iam.aws.crossplane.io_rolepolicies.yaml @@ -72,6 +72,7 @@ spec: document: description: The JSON policy document that is the content for the policy. + type: object x-kubernetes-preserve-unknown-fields: true roleName: description: RoleName presents the name of the IAM role.