Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): IntegrationProfile deprecation #5871

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/apis/camel-k-crds.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ Refer to the Kubernetes API documentation for the fields of the `metadata` field

IntegrationProfile is the resource used to apply user defined settings to the Camel K operator behavior.
It defines the behavior of all Custom Resources (`IntegrationKit`, `Integration`, `Kamelet`) in the given namespace.
Deprecated: may be removed in future releases. Make use of IntegrationPlatform instead.

[cols="2,2a",options="header"]
|===
Expand Down
1 change: 1 addition & 0 deletions helm/camel-k/crds/camel-k-crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7524,6 +7524,7 @@ spec:
description: |-
IntegrationProfile is the resource used to apply user defined settings to the Camel K operator behavior.
It defines the behavior of all Custom Resources (`IntegrationKit`, `Integration`, `Kamelet`) in the given namespace.
Deprecated: may be removed in future releases. Make use of IntegrationPlatform instead.
properties:
apiVersion:
description: |-
Expand Down
1 change: 1 addition & 0 deletions pkg/apis/camel/v1/integrationprofile_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ type IntegrationProfileStatus struct {

// IntegrationProfile is the resource used to apply user defined settings to the Camel K operator behavior.
// It defines the behavior of all Custom Resources (`IntegrationKit`, `Integration`, `Kamelet`) in the given namespace.
// Deprecated: may be removed in future releases. Make use of IntegrationPlatform instead.
type IntegrationProfile struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
6 changes: 6 additions & 0 deletions pkg/controller/integrationprofile/initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ func (action *initializeAction) Handle(ctx context.Context, profile *v1.Integrat
v1.IntegrationProfileConditionCreatedReason,
"integration profile created")

profile.Status.SetCondition(
"DeprecationNotice",
corev1.ConditionTrue,
"DeprecationNoticeWarning",
"Usage of IntegrationProfile is deprecated. Make use of IntegrationPlatform instead.")

profile.Status.Phase = v1.IntegrationProfilePhaseReady

return profile, nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ spec:
description: |-
IntegrationProfile is the resource used to apply user defined settings to the Camel K operator behavior.
It defines the behavior of all Custom Resources (`IntegrationKit`, `Integration`, `Kamelet`) in the given namespace.
Deprecated: may be removed in future releases. Make use of IntegrationPlatform instead.
properties:
apiVersion:
description: |-
Expand Down
Loading