Skip to content
This repository was archived by the owner on Oct 12, 2021. It is now read-only.

Commit ed7e339

Browse files
committed
Hint about using "kubectl explain" inside samples
1 parent 4ad90a2 commit ed7e339

File tree

4 files changed

+47
-65
lines changed

4 files changed

+47
-65
lines changed

config/samples/httppollersource.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,26 @@
1313
# limitations under the License.
1414

1515
# Sample HTTPPollerSource object.
16+
#
17+
# For a list and description of all available attributes, execute the following command against a cluster where this
18+
# Custom Resource Definition has been registered:
19+
#
20+
# kubectl explain httppollersources.sources.triggermesh.io
1621

1722
apiVersion: sources.triggermesh.io/v1alpha1
1823
kind: HTTPPollerSource
1924
metadata:
20-
name: httppoller-test
25+
name: sample
2126
spec:
2227
eventType: weather.alerts/kansas
2328
eventSource: gov.weather
29+
2430
endpoint: https://api.weather.gov/alerts/active?area=KS
2531
method: GET
2632
interval: 20s
33+
2734
sink:
2835
ref:
29-
apiVersion: serving.knative.dev/v1
30-
kind: Service
31-
name: event-display
32-
33-
---
34-
35-
apiVersion: serving.knative.dev/v1
36-
kind: Service
37-
metadata:
38-
name: event-display
39-
spec:
40-
template:
41-
spec:
42-
containers:
43-
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
36+
apiVersion: eventing.knative.dev/v1
37+
kind: Broker
38+
name: default

config/samples/slacksource.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,26 @@
1313
# limitations under the License.
1414

1515
# Sample SlackSource object.
16+
#
17+
# For a list and description of all available attributes, execute the following command against a cluster where this
18+
# Custom Resource Definition has been registered:
19+
#
20+
# kubectl explain slacksources.sources.triggermesh.io
1621

1722
apiVersion: sources.triggermesh.io/v1alpha1
1823
kind: SlackSource
1924
metadata:
20-
name: triggermesh-knbot
25+
name: sample
2126
spec:
2227
# optional, making sure we are receiving events on behalf of Slack
2328
signingSecret:
2429
value: XXXXXXXXXXXXXXXXXX
30+
2531
# optional, making sure the events are being sent for this integration
2632
appID: AXXXXXXXXX
33+
2734
sink:
2835
ref:
29-
apiVersion: serving.knative.dev/v1
30-
kind: Service
31-
name: event-display
32-
33-
---
34-
35-
apiVersion: serving.knative.dev/v1
36-
kind: Service
37-
metadata:
38-
name: event-display
39-
spec:
40-
template:
41-
spec:
42-
containers:
43-
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
36+
apiVersion: eventing.knative.dev/v1
37+
kind: Broker
38+
name: default

config/samples/webhooksource.yaml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,31 +13,26 @@
1313
# limitations under the License.
1414

1515
# Sample WebhookSource object.
16+
#
17+
# For a list and description of all available attributes, execute the following command against a cluster where this
18+
# Custom Resource Definition has been registered:
19+
#
20+
# kubectl explain webhooksources.sources.triggermesh.io
1621

1722
apiVersion: sources.triggermesh.io/v1alpha1
1823
kind: WebhookSource
1924
metadata:
20-
name: webhooksource-test
25+
name: sample
2126
spec:
2227
eventType: com.example.mysample.event
2328
eventSource: instance-abc123
29+
2430
basicAuthUsername: customuser
2531
basicAuthPassword:
2632
value: abc123secret
33+
2734
sink:
2835
ref:
29-
apiVersion: serving.knative.dev/v1
30-
kind: Service
31-
name: event-display
32-
33-
---
34-
35-
apiVersion: serving.knative.dev/v1
36-
kind: Service
37-
metadata:
38-
name: event-display
39-
spec:
40-
template:
41-
spec:
42-
containers:
43-
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
36+
apiVersion: eventing.knative.dev/v1
37+
kind: Broker
38+
name: default

config/samples/zendesksource.yaml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,33 +13,30 @@
1313
# limitations under the License.
1414

1515
# Sample ZendeskSource object.
16+
#
17+
# For a list and description of all available attributes, execute the following command against a cluster where this
18+
# Custom Resource Definition has been registered:
19+
#
20+
# kubectl explain zendesksources.sources.triggermesh.io
1621

1722
apiVersion: sources.triggermesh.io/v1alpha1
1823
kind: ZendeskSource
1924
metadata:
20-
name: zendesksource
25+
name: sample
2126
spec:
22-
email: johndoe@example.com
27+
2328
subdomain: example-corp
29+
30+
email: johndoe@example.com
2431
token:
2532
value: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
33+
2634
webhookUsername: foo
2735
webhookPassword:
2836
value: secret1234
37+
2938
sink:
3039
ref:
31-
apiVersion: serving.knative.dev/v1
32-
kind: Service
33-
name: event-display
34-
35-
---
36-
37-
apiVersion: serving.knative.dev/v1
38-
kind: Service
39-
metadata:
40-
name: event-display
41-
spec:
42-
template:
43-
spec:
44-
containers:
45-
- image: gcr.io/knative-releases/knative.dev/eventing-contrib/cmd/event_display
40+
apiVersion: eventing.knative.dev/v1
41+
kind: Broker
42+
name: default

0 commit comments

Comments
 (0)