-
Notifications
You must be signed in to change notification settings - Fork 16
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
Allow empty backend #274
Allow empty backend #274
Conversation
ab6908e
to
443bf68
Compare
docs/user/02-configuration.md
Outdated
| **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. | | ||
| **backend.​config.​eventMeshSecret** | string | EventMeshSecret defines the namespaced name of K8s Secret containing EventMesh credentials. The format of name is "namespace/name". | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand this sentence. What is a "namespaced name"?
docs/user/02-configuration.md
Outdated
| **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". | | ||
| **backend.​config.​eventTypePrefix** | string | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no description for this one?
docs/user/02-configuration.md
Outdated
| **publisher.​replicas.​max** | integer | Max defines maximum number of replicas. | | ||
| **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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't rendered correctly when the sentences are in different lines:
The table is auto-generated, so you might have to adjust the formatting somewhere else instead of here. But here's how it should look like eventually:
| **publisher.​resources.​claims** | \[\]object | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. | |
| **publisher.​resources.​claims** | \[\]object | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. | |
docs/user/02-configuration.md
Outdated
| Parameter | Type | Description | | ||
| ---- | ----------- | ---- | | ||
| **activeBackend** (required) | string | | | ||
| **conditions** | \[\]object | Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs/user/02-configuration.md
Outdated
| **conditions** | \[\]object | Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, | ||
type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: "Available", "Progressing", and "Degraded" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` | ||
// other fields } | | ||
| **conditions.​lastTransitionTime** (required) | string | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"This should be when"
Maybe a word is missing here? Not sure what this means.
docs/user/02-configuration.md
Outdated
// other fields } | | ||
| **conditions.​lastTransitionTime** (required) | string | lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. | | ||
| **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 with respect to the current state of the instance. | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| **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 with respect to the current state of the instance. | | |
| **conditions.​observedGeneration** | integer | observedGeneration represents the .metadata.generation that the condition was set based upon. For example, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance. | |
Fix it in the source file, not here :)
0faf097
to
8417d28
Compare
Make state warning and BackendAvailable condition false for empty backend config
8417d28
to
fb10b89
Compare
* Set Warning state if EventMes secret missing * Fix failing tests
fb10b89
to
32cce57
Compare
It is not allowed to delete existing backend config, but evneting CR can be created with empty backend config.
Create integration tests for backend config deletion validation
Auto generation of doc is breaking the documentation
52caff4
to
3f26c86
Compare
@NHingerl I've applied my only change to the |
Description
Allow empty backend and set warning state without doing anything
Changes proposed in this pull request:
Related issue(s)
#266