From 5f0659344c9b2a4b4f74301f1e8897cec771ed73 Mon Sep 17 00:00:00 2001 From: Leonardo Luz Almeida Date: Tue, 6 Aug 2024 15:22:07 -0400 Subject: [PATCH] fix CRD Signed-off-by: Leonardo Luz Almeida --- api/v1alpha1/accessrequest_types.go | 2 +- .../ephemeral-access.argoproj-labs.io_accessrequests.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1alpha1/accessrequest_types.go b/api/v1alpha1/accessrequest_types.go index 001c0e6..8e2ba74 100644 --- a/api/v1alpha1/accessrequest_types.go +++ b/api/v1alpha1/accessrequest_types.go @@ -52,7 +52,7 @@ type AccessRequestSpec struct { TargetRoleName string `json:"targetRoleName"` // Application defines the Argo CD Application to assign the elevated // permission - Application TargetApplication `json:"appProject"` + Application TargetApplication `json:"application"` // Subjects defines the list of subjects for this access request Subjects []Subject `json:"subjects"` } diff --git a/config/crd/bases/ephemeral-access.argoproj-labs.io_accessrequests.yaml b/config/crd/bases/ephemeral-access.argoproj-labs.io_accessrequests.yaml index 0525837..f6f46d2 100644 --- a/config/crd/bases/ephemeral-access.argoproj-labs.io_accessrequests.yaml +++ b/config/crd/bases/ephemeral-access.argoproj-labs.io_accessrequests.yaml @@ -42,7 +42,7 @@ spec: spec: description: AccessRequestSpec defines the desired state of AccessRequest properties: - appProject: + application: description: |- Application defines the Argo CD Application to assign the elevated permission @@ -84,7 +84,7 @@ spec: to once the access is approved type: string required: - - appProject + - application - duration - subjects - targetRoleName