forked from kyma-project/kyma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
eventing-controller helm chart (kyma-project#9750)
* initial draft * add controller chart * change controller 'name' in cluster to avoid name collision with knative-eventing resources * Reverting back the change in Dockerfile as it is done in components PR * Update Helm charts for eventing * Fixed RBAC * Fixed RBAC * Fixed CRD spec * Bump images and change imagepullpolicy * Fix as per PR review * Fix as per PR review * Clean up * Clean up * Changed based on the PR review comments * Fix governance job * Update resources/eventing/README.md Co-authored-by: Aleksandra Simeonova <[email protected]> * Update resources/eventing/README.md Co-authored-by: Aleksandra Simeonova <[email protected]> * Add eventing chart in installation CR * Fix merge conflicts * Bumped image and added fixes as per PR review Co-authored-by: Sayan Hazra <[email protected]> Co-authored-by: Sayan Hazra <[email protected]> Co-authored-by: Aleksandra Simeonova <[email protected]>
- Loading branch information
1 parent
d874a36
commit 7f0ffaf
Showing
23 changed files
with
599 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
186 changes: 186 additions & 0 deletions
186
resources/cluster-essentials/files/subscriptions.eventing.kyma-project.io.crd.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,186 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.2.5 | ||
creationTimestamp: null | ||
name: subscriptions.eventing.kyma-project.io | ||
spec: | ||
group: eventing.kyma-project.io | ||
names: | ||
kind: Subscription | ||
listKind: SubscriptionList | ||
plural: subscriptions | ||
singular: subscription | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: Subscription is the Schema for the subscriptions API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: SubscriptionSpec defines the desired state of Subscription | ||
properties: | ||
filter: | ||
description: BebFilters defines the list of BEB filters | ||
properties: | ||
dialect: | ||
type: string | ||
filters: | ||
items: | ||
description: BebFilter defines the BEB filter element as a combination | ||
of two CE filter elements | ||
properties: | ||
eventSource: | ||
description: Filter defines the CE filter element | ||
properties: | ||
property: | ||
type: string | ||
type: | ||
type: string | ||
value: | ||
type: string | ||
required: | ||
- property | ||
- value | ||
type: object | ||
eventType: | ||
description: Filter defines the CE filter element | ||
properties: | ||
property: | ||
type: string | ||
type: | ||
type: string | ||
value: | ||
type: string | ||
required: | ||
- property | ||
- value | ||
type: object | ||
required: | ||
- eventSource | ||
- eventType | ||
type: object | ||
type: array | ||
required: | ||
- filters | ||
type: object | ||
id: | ||
description: ID is the unique identifier of Subscription, read-only. | ||
type: string | ||
protocol: | ||
type: string | ||
protocolsettings: | ||
description: ProtocolSettings defines the CE protocol setting specification | ||
implementation | ||
properties: | ||
contentMode: | ||
type: string | ||
exemptHandshake: | ||
type: boolean | ||
qos: | ||
type: string | ||
webhookAuth: | ||
description: Webhook defines the Webhook called by an active subscription | ||
in BEB | ||
properties: | ||
clientId: | ||
type: string | ||
clientSecret: | ||
type: string | ||
grantType: | ||
type: string | ||
scope: | ||
items: | ||
type: string | ||
type: array | ||
tokenUrl: | ||
type: string | ||
type: | ||
type: string | ||
required: | ||
- clientId | ||
- clientSecret | ||
- grantType | ||
- tokenUrl | ||
type: object | ||
type: object | ||
sink: | ||
type: string | ||
required: | ||
- filter | ||
- protocol | ||
- protocolsettings | ||
- sink | ||
type: object | ||
status: | ||
description: SubscriptionStatus defines the observed state of Subscription | ||
properties: | ||
conditions: | ||
items: | ||
properties: | ||
lastTransitionTime: | ||
format: date-time | ||
type: string | ||
message: | ||
type: string | ||
reason: | ||
type: string | ||
status: | ||
type: string | ||
type: | ||
type: string | ||
required: | ||
- status | ||
type: object | ||
type: array | ||
emsSubscriptionStatus: | ||
properties: | ||
lastFailedDelivery: | ||
type: string | ||
lastFailedDeliveryReason: | ||
type: string | ||
lastSuccessfulDelivery: | ||
type: string | ||
subscriptionStatus: | ||
type: string | ||
subscriptionStatusReason: | ||
type: string | ||
type: object | ||
emshash: | ||
format: int64 | ||
type: integer | ||
ev2hash: | ||
format: int64 | ||
type: integer | ||
failedActivation: | ||
type: string | ||
ready: | ||
type: boolean | ||
externalSink: | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: "" | ||
plural: "" | ||
conditions: [] | ||
storedVersions: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
apiVersion: v2 | ||
name: eventing | ||
description: Kyma Component 'eventing' | ||
version: 1.0.0 | ||
version: 0.1.0 | ||
home: https://kyma-project.io | ||
icon: https://github.com/kyma-project/kyma/blob/master/logo.png?raw=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v2 | ||
name: controller | ||
description: A Helm chart for eventing-controller | ||
type: application | ||
version: 0.1.0 |
51 changes: 51 additions & 0 deletions
51
resources/eventing/charts/controller/templates/_helpers.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "controller.name" -}} | ||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create a default fully qualified app name. | ||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). | ||
If release name contains chart name it will be used as a full name. | ||
*/}} | ||
{{- define "controller.fullname" -}} | ||
{{- if .Values.fullnameOverride }} | ||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- $name := default .Chart.Name .Values.nameOverride }} | ||
{{- if contains $name .Release.Name }} | ||
{{- .Release.Name | trunc 63 | trimSuffix "-" }} | ||
{{- else }} | ||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{/* | ||
Create chart name and version as used by the chart label. | ||
*/}} | ||
{{- define "controller.chart" -}} | ||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "controller.labels" -}} | ||
helm.sh/chart: {{ include "controller.chart" . }} | ||
{{ include "controller.selectorLabels" . }} | ||
{{- if .Chart.AppVersion }} | ||
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} | ||
{{- end }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "controller.selectorLabels" -}} | ||
app.kubernetes.io/name: {{ include "controller.name" . }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
{{- end }} |
Oops, something went wrong.