Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: SpiritZhou <[email protected]>
  • Loading branch information
SpiritZhou committed Mar 15, 2024
1 parent 42a1de4 commit 682eb9b
Show file tree
Hide file tree
Showing 42 changed files with 5,765 additions and 3,557 deletions.
9 changes: 9 additions & 0 deletions apis/eventing/v1alpha1/cloudeventsource_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,21 @@ type CloudEventSourceStatus struct {
type Destination struct {
// +optional
HTTP *CloudEventHTTP `json:"http"`

// +optional
AzureEventGrid *AzureEventGridSpec `json:"azureEventGrid"`
}

type CloudEventHTTP struct {
URI string `json:"uri"`
}

type AzureEventGridSpec struct {
EndPoint string `json:"endPoint"`

Key string `json:"key"`
}

func init() {
SchemeBuilder.Register(&CloudEventSource{}, &CloudEventSourceList{})
}
Expand Down
29 changes: 17 additions & 12 deletions config/crd/bases/eventing.keda.sh_cloudeventsources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.13.0
name: cloudeventsources.eventing.keda.sh
spec:
group: eventing.keda.sh
Expand All @@ -25,19 +25,14 @@ spec:
sink
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
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
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
Expand All @@ -49,6 +44,16 @@ spec:
destination:
description: Destination defines the various ways to emit events
properties:
azureEventGrid:
properties:
endPoint:
type: string
key:
type: string
required:
- endPoint
- key
type: object
http:
properties:
uri:
Expand Down
44 changes: 17 additions & 27 deletions config/crd/bases/keda.sh_clustertriggerauthentications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.14.0
controller-gen.kubebuilder.io/version: v0.13.0
name: clustertriggerauthentications.keda.sh
spec:
group: keda.sh
Expand Down Expand Up @@ -45,19 +45,14 @@ spec:
globally
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
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
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
Expand Down Expand Up @@ -134,9 +129,8 @@ spec:
- accessSecretKey
type: object
podIdentity:
description: |-
AuthPodIdentity allows users to select the platform native identity
mechanism
description: AuthPodIdentity allows users to select the platform
native identity mechanism
properties:
identityAuthorityHost:
description: Set identityAuthorityHost to override the default
Expand Down Expand Up @@ -244,9 +238,8 @@ spec:
- tenantId
type: object
podIdentity:
description: |-
AuthPodIdentity allows users to select the platform native identity
mechanism
description: AuthPodIdentity allows users to select the platform
native identity mechanism
properties:
identityAuthorityHost:
description: Set identityAuthorityHost to override the default
Expand Down Expand Up @@ -325,9 +318,8 @@ spec:
type: array
env:
items:
description: |-
AuthEnvironment is used to authenticate using environment variables
in the destination ScaleTarget spec
description: AuthEnvironment is used to authenticate using environment
variables in the destination ScaleTarget spec
properties:
containerName:
type: string
Expand Down Expand Up @@ -368,9 +360,8 @@ spec:
- clientSecret
type: object
podIdentity:
description: |-
AuthPodIdentity allows users to select the platform native identity
mechanism
description: AuthPodIdentity allows users to select the platform
native identity mechanism
properties:
identityAuthorityHost:
description: Set identityAuthorityHost to override the default
Expand Down Expand Up @@ -495,9 +486,8 @@ spec:
- secrets
type: object
podIdentity:
description: |-
AuthPodIdentity allows users to select the platform native identity
mechanism
description: AuthPodIdentity allows users to select the platform native
identity mechanism
properties:
identityAuthorityHost:
description: Set identityAuthorityHost to override the default
Expand Down
Loading

0 comments on commit 682eb9b

Please sign in to comment.