From 4bbdf8280f7c4eab27044d172e004b518350bde4 Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Wed, 24 Jul 2024 10:38:37 +0200 Subject: [PATCH] api: set manifestUri as deprecated - we do not use this for devFlag in DSCI any more - it was used when we still have odh-manifests repo - if use would set devFlags, it should be done in DSC on component base - keep logic still in code but only set warning on API Signed-off-by: Wen Zhou --- apis/dscinitialization/v1/dscinitialization_types.go | 1 + .../dscinitialization.opendatahub.io_dscinitializations.yaml | 4 +++- .../dscinitialization.opendatahub.io_dscinitializations.yaml | 4 +++- docs/api-overview.md | 2 +- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/apis/dscinitialization/v1/dscinitialization_types.go b/apis/dscinitialization/v1/dscinitialization_types.go index c283286021d..7fcf7bb273d 100644 --- a/apis/dscinitialization/v1/dscinitialization_types.go +++ b/apis/dscinitialization/v1/dscinitialization_types.go @@ -66,6 +66,7 @@ type DSCInitializationSpec struct { // DevFlags defines list of fields that can be used by developers to test customizations. This is not recommended // to be used in production environment. type DevFlags struct { + // ## DEPRECATED ## : ManifestsUri set on DSCI is not maintained. // Custom manifests uri for odh-manifests // +optional ManifestsUri string `json:"manifestsUri,omitempty"` diff --git a/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml b/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml index a4138f67837..377cad15951 100644 --- a/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml +++ b/bundle/manifests/dscinitialization.opendatahub.io_dscinitializations.yaml @@ -82,7 +82,9 @@ spec: - default type: string manifestsUri: - description: Custom manifests uri for odh-manifests + description: |- + ## DEPRECATED ## : ManifestsUri set on DSCI is not maintained. + Custom manifests uri for odh-manifests type: string type: object monitoring: diff --git a/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml b/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml index d1750a44756..9bf56ff0e74 100644 --- a/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml +++ b/config/crd/bases/dscinitialization.opendatahub.io_dscinitializations.yaml @@ -82,7 +82,9 @@ spec: - default type: string manifestsUri: - description: Custom manifests uri for odh-manifests + description: |- + ## DEPRECATED ## : ManifestsUri set on DSCI is not maintained. + Custom manifests uri for odh-manifests type: string type: object monitoring: diff --git a/docs/api-overview.md b/docs/api-overview.md index 926028e7d10..6b890558b9c 100644 --- a/docs/api-overview.md +++ b/docs/api-overview.md @@ -2103,7 +2103,7 @@ _Appears in:_ | Field | Description | Default | Validation | | --- | --- | --- | --- | -| `manifestsUri` _string_ | Custom manifests uri for odh-manifests | | | +| `manifestsUri` _string_ | ## DEPRECATED ## : ManifestsUri set on DSCI is not maintained.
Custom manifests uri for odh-manifests | | | | `logmode` _string_ | ## DEPRECATED ##: Ignored, use LogLevel instead | production | Enum: [devel development prod production default]
| | `logLevel` _string_ | Override Zap log level. Can be "debug", "info", "error" or a number (more verbose). | | |