From 543fe104dcf4719d396a43f3903746e416e8c2ae Mon Sep 17 00:00:00 2001 From: Ludovic Cleroux Date: Mon, 14 Oct 2024 11:58:45 +0200 Subject: [PATCH] ROX-26038: add per-tenant argoCd flag (#2008) --- .../dinosaur/pkg/api/private/api/openapi.yaml | 6 ++++++ .../private/model_managed_central_all_of_spec.go | 1 + .../model_managed_central_all_of_spec_argo_cd.go | 16 ++++++++++++++++ openapi/fleet-manager-private.yaml | 5 +++++ 4 files changed, 28 insertions(+) create mode 100644 internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec_argo_cd.go diff --git a/internal/dinosaur/pkg/api/private/api/openapi.yaml b/internal/dinosaur/pkg/api/private/api/openapi.yaml index ba85ccc411..f677979ff3 100644 --- a/internal/dinosaur/pkg/api/private/api/openapi.yaml +++ b/internal/dinosaur/pkg/api/private/api/openapi.yaml @@ -713,6 +713,10 @@ components: properties: host: type: string + ManagedCentral_allOf_spec_argoCd: + properties: + enabled: + type: boolean ManagedCentral_allOf_spec: properties: instanceType: @@ -736,6 +740,8 @@ components: $ref: '#/components/schemas/ManagedCentral_allOf_spec_uiEndpoint' dataEndpoint: $ref: '#/components/schemas/ManagedCentral_allOf_spec_dataEndpoint' + argoCd: + $ref: '#/components/schemas/ManagedCentral_allOf_spec_argoCd' ManagedCentral_allOf: properties: metadata: diff --git a/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec.go b/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec.go index 16e3357f6f..134f099f20 100644 --- a/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec.go +++ b/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec.go @@ -20,4 +20,5 @@ type ManagedCentralAllOfSpec struct { AdditionalAuthProvider ManagedCentralAllOfSpecAdditionalAuthProvider `json:"additionalAuthProvider,omitempty"` UiEndpoint ManagedCentralAllOfSpecUiEndpoint `json:"uiEndpoint,omitempty"` DataEndpoint ManagedCentralAllOfSpecDataEndpoint `json:"dataEndpoint,omitempty"` + ArgoCd ManagedCentralAllOfSpecArgoCd `json:"argoCd,omitempty"` } diff --git a/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec_argo_cd.go b/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec_argo_cd.go new file mode 100644 index 0000000000..1e8783becc --- /dev/null +++ b/internal/dinosaur/pkg/api/private/model_managed_central_all_of_spec_argo_cd.go @@ -0,0 +1,16 @@ +/* + * Red Hat Advanced Cluster Security Service Fleet Manager + * + * Red Hat Advanced Cluster Security (RHACS) Service Fleet Manager APIs that are used by internal services e.g fleetshard operators. + * + * API version: 1.4.0 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT. +package private + +// ManagedCentralAllOfSpecArgoCd struct for ManagedCentralAllOfSpecArgoCd +type ManagedCentralAllOfSpecArgoCd struct { + Enabled bool `json:"enabled,omitempty"` +} diff --git a/openapi/fleet-manager-private.yaml b/openapi/fleet-manager-private.yaml index 2663ea3440..cf702f4218 100644 --- a/openapi/fleet-manager-private.yaml +++ b/openapi/fleet-manager-private.yaml @@ -376,6 +376,11 @@ components: properties: host: type: string + argoCd: + type: object + properties: + enabled: + type: boolean requestStatus: type: string