-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor webhooks controller
- Loading branch information
Showing
26 changed files
with
413 additions
and
110 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
28 changes: 28 additions & 0 deletions
28
tests/e2e/outboundwebhooks/aws-event-bridge/01-assert.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,28 @@ | ||
apiVersion: coralogix.com/v1alpha1 | ||
kind: OutboundWebhook | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: outboundwebhook | ||
app.kubernetes.io/instance: outboundwebhook-sample | ||
app.kubernetes.io/part-of: coralogix-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: coralogix-operator | ||
name: aws-event-bridge-webhook | ||
spec: | ||
name: aws-event-bridge-webhook | ||
outboundWebhookType: | ||
awsEventBridge: | ||
eventBusArn: "my-updated-event-bus" | ||
detail: "{\"updated-key1\": \"updated-value1\", \"updated-key2\": \"updated-value2\"}" | ||
detailType: "myUpdatedDetailType" | ||
source: "myUpdatedSource" | ||
roleName: "arn:aws:iam::123456789012:role/my-role" | ||
status: | ||
name: aws-event-bridge-webhook | ||
outboundWebhookType: | ||
awsEventBridge: | ||
eventBusArn: "my-updated-event-bus" | ||
detail: "{\"updated-key1\": \"updated-value1\", \"updated-key2\": \"updated-value2\"}" | ||
detailType: "myUpdatedDetailType" | ||
source: "myUpdatedSource" | ||
roleName: "arn:aws:iam::123456789012:role/my-role" |
19 changes: 19 additions & 0 deletions
19
tests/e2e/outboundwebhooks/aws-event-bridge/01-aws-event-bridge-install.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,19 @@ | ||
apiVersion: coralogix.com/v1alpha1 | ||
kind: OutboundWebhook | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: outboundwebhook | ||
app.kubernetes.io/instance: outboundwebhook-sample | ||
app.kubernetes.io/part-of: coralogix-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: coralogix-operator | ||
name: aws-event-bridge-webhook | ||
spec: | ||
name: aws-event-bridge-webhook | ||
outboundWebhookType: | ||
awsEventBridge: | ||
eventBusArn: "my-updated-event-bus" | ||
detail: "{\"updated-key1\": \"updated-value1\", \"updated-key2\": \"updated-value2\"}" | ||
detailType: "myUpdatedDetailType" | ||
source: "myUpdatedSource" | ||
roleName: "arn:aws:iam::123456789012:role/my-role" |
File renamed without changes.
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,24 @@ | ||
apiVersion: coralogix.com/v1alpha1 | ||
kind: OutboundWebhook | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: outboundwebhook | ||
app.kubernetes.io/instance: outboundwebhook-sample | ||
app.kubernetes.io/part-of: coralogix-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: coralogix-operator | ||
name: demisto-webhook | ||
spec: | ||
name: demisto-webhook | ||
outboundWebhookType: | ||
demisto: | ||
uuid: "12345678-1234-1234-1234-123456789013" | ||
payload: "{\"updated-key1\": \"updated-value1\", \"updated-key2\": \"updated-value2\"}" | ||
url: "https://updated-example.com" | ||
status: | ||
name: demisto-webhook | ||
outboundWebhookType: | ||
demisto: | ||
uuid: "12345678-1234-1234-1234-123456789013" | ||
payload: "{\"updated-key1\": \"updated-value1\", \"updated-key2\": \"updated-value2\"}" | ||
url: "https://updated-example.com" |
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
tests/e2e/outboundwebhooks/demisto/01-demisto-install.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,17 @@ | ||
apiVersion: coralogix.com/v1alpha1 | ||
kind: OutboundWebhook | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: outboundwebhook | ||
app.kubernetes.io/instance: outboundwebhook-sample | ||
app.kubernetes.io/part-of: coralogix-operator | ||
app.kubernetes.io/managed-by: kustomize | ||
app.kubernetes.io/created-by: coralogix-operator | ||
name: demisto-webhook | ||
spec: | ||
name: demisto-webhook | ||
outboundWebhookType: | ||
demisto: | ||
uuid: "12345678-1234-1234-1234-123456789013" | ||
payload: "{\"updated-key1\": \"updated-value1\", \"updated-key2\": \"updated-value2\"}" | ||
url: "https://updated-example.com" |
File renamed without changes.
Oops, something went wrong.