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: remove v1alpha1 subscription #517

Merged

Conversation

marcobebway
Copy link
Contributor

@marcobebway marcobebway commented Mar 5, 2024

Description

Remove v1alpha1 subscription.

Related issue(s)

@marcobebway marcobebway requested review from a team as code owners March 5, 2024 16:13
@kyma-bot kyma-bot added area/documentation Issues or PRs related to documentation cla: yes Indicates the PR's author has signed the CLA. labels Mar 5, 2024
@marcobebway
Copy link
Contributor Author

/hold

@kyma-bot kyma-bot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Mar 5, 2024
@marcobebway marcobebway linked an issue Mar 5, 2024 that may be closed by this pull request
8 tasks
@marcobebway marcobebway self-assigned this Mar 5, 2024
@marcobebway marcobebway force-pushed the 442-remove-v1alpha1-subscription branch from a705919 to 355c390 Compare March 7, 2024 13:30
NHingerl
NHingerl previously approved these changes Mar 7, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 7, 2024
@@ -284,14 +283,3 @@ func (em *EventingManager) SubscriptionExists(ctx context.Context) (bool, error)
}
return false, nil
}

func convertECBackendType(backendType v1alpha1.BackendType) (eventingv1alpha1.BackendType, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed because it is not used.

@marcobebway marcobebway force-pushed the 442-remove-v1alpha1-subscription branch from ce9c8f7 to 39c98d3 Compare March 12, 2024 17:20
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Mar 12, 2024
@marcobebway
Copy link
Contributor Author

/test pull-eventing-manager-build

@marcobebway
Copy link
Contributor Author

/retest

NHingerl
NHingerl previously approved these changes Mar 13, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 13, 2024
@marcobebway marcobebway force-pushed the 442-remove-v1alpha1-subscription branch from 39c98d3 to 1268213 Compare March 13, 2024 11:38
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Mar 13, 2024
Copy link
Contributor

@NHingerl NHingerl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that the table is automatically generated and the suggestions should be applied to the source documents.

| **backend** | object | Backend defines the active backend used by Eventing. |
| **backend.​config** | object | Config defines configuration for eventing backend. |
| **backend.​config.​domain** | string | Domain defines the cluster public domain used to configure the EventMesh Subscriptions
and their corresponding ApiRules. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird line break

| ---- | ----------- | ---- |
| **annotations** | map\[string\]string | Annotations allows to add annotations to resources. |
| **backend** | object | Backend defines the active backend used by Eventing. |
| **backend.​config** | object | Config defines configuration for eventing backend. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| **backend.​config** | object | Config defines configuration for eventing backend. |
| **backend.​config** | object | Config defines configuration for the Eventing backend. |

| **backend.​config** | object | Config defines configuration for eventing backend. |
| **backend.​config.​domain** | string | Domain defines the cluster public domain used to configure the EventMesh Subscriptions
and their corresponding ApiRules. |
| **backend.​config.​eventMeshSecret** | string | EventMeshSecret defines the namespaced name of K8s Secret containing EventMesh credentials. The format of name is "namespace/name". |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| **backend.​config.​eventMeshSecret** | string | EventMeshSecret defines the namespaced name of K8s Secret containing EventMesh credentials. The format of name is "namespace/name". |
| **backend.​config.​eventMeshSecret** | string | EventMeshSecret defines the namespaced name of the Kubernetes Secret containing EventMesh credentials. The format of name is "namespace/name". |

| **backend.​config.​eventTypePrefix** | string | |
| **backend.​config.​natsMaxMsgsPerTopic** | integer | NATSMaxMsgsPerTopic limits how many messages in the NATS stream to retain per subject. |
| **backend.​config.​natsStreamMaxSize** | \{integer or string\} | NATSStreamMaxSize defines the maximum storage size for stream data. |
| **backend.​config.​natsStreamReplicas** | integer | NATSStreamReplicas defines the number of replicas for stream. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| **backend.​config.​natsStreamReplicas** | integer | NATSStreamReplicas defines the number of replicas for stream. |
| **backend.​config.​natsStreamReplicas** | integer | NATSStreamReplicas defines the number of replicas for each stream. |

just guessing

| **publisher.​replicas.​min** | integer | Min defines minimum number of replicas. |
| **publisher.​resources** | object | Resources defines resources for eventing-publisher-proxy. |
| **publisher.​resources.​claims** | \[\]object | Claims lists the names of resources, defined in spec.resourceClaims,
that are used by this container.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird line break

| **conditions.​message** (required) | string | message is a human readable message indicating details about the transition.
This may be an empty string. |
| **conditions.​observedGeneration** | integer | observedGeneration represents the .metadata.generation that the condition was set based upon.
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
For example, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date

and whether the values are considered a guaranteed API.
The value should be a CamelCase string.
This field may not be empty. |
| **conditions.​status** (required) | string | status of the condition, one of True, False, Unknown. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| **conditions.​status** (required) | string | status of the condition, one of True, False, Unknown. |
| **conditions.​status** (required) | string | status of the condition, value must be either True, False, or Unknown. |

| **conditions.​status** (required) | string | status of the condition, one of True, False, Unknown. |
| **conditions.​type** (required) | string | type of condition in CamelCase or in foo.example.com/CamelCase.
---
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
Many .condition.type values, like Available, are consistent across resources, but because arbitrary conditions can be

I think this is what you mean?

| **specHash** (required) | integer | |
| **state** (required) | string | Can have one of the following values: Ready, Error, Processing, Warning. Ready state is set
when all the resources are deployed successfully and backend is connected.
It gets Warning state in case backend is not specified, NATS module is not installed, or EventMesh secret is missing in the cluster.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It gets Warning state in case backend is not specified, NATS module is not installed, or EventMesh secret is missing in the cluster.
It gets Warning state if no backend is specified, NATS module is not installed, or EventMesh secret is missing in the cluster.

| **state** (required) | string | Can have one of the following values: Ready, Error, Processing, Warning. Ready state is set
when all the resources are deployed successfully and backend is connected.
It gets Warning state in case backend is not specified, NATS module is not installed, or EventMesh secret is missing in the cluster.
Error state is set when there is an error. Processing state is set if recources are being created or changed. |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this mean "backend not specified, NATs module not installed, Secret missing" are not errors?
The explanation for "Warning" is very specific, and the explanation for "Error" is extremely vague. Can we improve that?

mfaizanse
mfaizanse previously approved these changes Mar 13, 2024
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Mar 13, 2024
mfaizanse
mfaizanse previously approved these changes Mar 13, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 13, 2024
@marcobebway
Copy link
Contributor Author

marcobebway commented Mar 13, 2024

@NHingerl the doc changes are auto generated. I will revert those changes for now, and will do it in a separate PR.

@marcobebway marcobebway removed the request for review from NHingerl March 13, 2024 13:17
NHingerl
NHingerl previously approved these changes Mar 13, 2024
@marcobebway marcobebway dismissed stale reviews from NHingerl and mfaizanse via 73040a7 March 14, 2024 09:22
@marcobebway marcobebway force-pushed the 442-remove-v1alpha1-subscription branch from 2882210 to 73040a7 Compare March 14, 2024 09:22
@kyma-bot kyma-bot removed the lgtm Looks good to me! label Mar 14, 2024
@marcobebway marcobebway requested review from mfaizanse and NHingerl and removed request for NHingerl March 14, 2024 09:32
@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 14, 2024
@marcobebway
Copy link
Contributor Author

/hold cancel

@kyma-bot kyma-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 14, 2024
@kyma-bot kyma-bot merged commit 0347ee0 into kyma-project:main Mar 14, 2024
15 checks passed
@marcobebway marcobebway deleted the 442-remove-v1alpha1-subscription branch March 14, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Issues or PRs related to documentation cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Subscription v1alpha1 version
4 participants