Skip to content

Commit

Permalink
Fix slack messages, add net-contour.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmoor committed Jan 29, 2020
1 parent afba5dc commit 24cf1ed
Show file tree
Hide file tree
Showing 8 changed files with 134 additions and 1 deletion.
23 changes: 23 additions & 0 deletions cmd/periodic/kodata/gotool-knative-net-contour.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
generateName: gotool-knative-net-contour-
namespace: default
spec:
taskRef:
name: gotool
inputs:
resources:
- name: source
resourceSpec:
type: git
params:
- name: url
value: https://github.com/knative/net-contour.git
params:
- name: ORGANIZATION
value: knative
- name: REPOSITORY
value: net-contour
- name: ASSIGNEE
value: shashwathi tanzeeb
23 changes: 23 additions & 0 deletions cmd/periodic/kodata/misspell-knative-net-contour.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
generateName: misspell-knative-net-contour-
namespace: default
spec:
taskRef:
name: misspell
inputs:
resources:
- name: source
resourceSpec:
type: git
params:
- name: url
value: https://github.com/knative/net-contour.git
params:
- name: ORGANIZATION
value: knative
- name: REPOSITORY
value: net-contour
- name: ASSIGNEE
value: shashwathi tanzeeb
23 changes: 23 additions & 0 deletions cmd/periodic/kodata/prettier-knative-net-contour.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
generateName: prettier-knative-net-contour-
namespace: default
spec:
taskRef:
name: prettier
inputs:
resources:
- name: source
resourceSpec:
type: git
params:
- name: url
value: https://github.com/knative/net-contour.git
params:
- name: ORGANIZATION
value: knative
- name: REPOSITORY
value: net-contour
- name: ASSIGNEE
value: shashwathi tanzeeb
26 changes: 26 additions & 0 deletions cmd/periodic/kodata/updatedeps-knative-net-contour.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: tekton.dev/v1alpha1
kind: TaskRun
metadata:
generateName: update-deps-knative-net-contour-
namespace: default
spec:
taskRef:
name: dep-update
inputs:
resources:
- name: source
resourceSpec:
type: git
params:
- name: url
value: https://github.com/knative/net-contour.git
params:
- name: ORGANIZATION
value: knative
- name: REPOSITORY
value: net-contour
- name: DEPENDENCIES
value: knative.dev/test-infra knative.dev/pkg knative.dev/serving knative.dev/eventing
- name: ASSIGNEE
value: shashwathi tanzeeb

32 changes: 32 additions & 0 deletions config/one-time/hooks/knative-net-contour.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: sources.eventing.knative.dev/v1alpha1
kind: GitHubSource
metadata:
name: knative-net-contour
spec:
# The types of events to which we are listening.
eventTypes:
- pull_request
- issues

# The repository to which we are listening.
# There should be a file like this for each watched repository.
ownerAndRepository: knative/net-contour

# This is the Github access token that is used to register
# the webhook.
accessToken:
secretKeyRef:
name: github-hook-secret
key: accessToken

# This is the secret that is registered alongside the webhook
# for Github to use to identify itself when calling our endpoint.
secretToken:
secretKeyRef:
name: github-hook-secret
key: secretToken

sink:
apiVersion: eventing.knative.dev/v1alpha1
kind: Broker
name: default
3 changes: 3 additions & 0 deletions config/templates/dep-update-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ spec:
then
export PARENT_DIR=${GOPATH}/src/knative.dev
elif [ "$(inputs.params.REPOSITORY)" == "sample-controller" ]
then
export PARENT_DIR=${GOPATH}/src/knative.dev
elif [ "$(inputs.params.REPOSITORY)" == "net-contour" ]
then
export PARENT_DIR=${GOPATH}/src/knative.dev
elif [ "$(inputs.params.REPOSITORY)" == "test-infra" ]
Expand Down
3 changes: 3 additions & 0 deletions config/templates/gotool-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ spec:
then
export PARENT_DIR=${GOPATH}/src/knative.dev
elif [ "$(inputs.params.REPOSITORY)" == "sample-controller" ]
then
export PARENT_DIR=${GOPATH}/src/knative.dev
elif [ "$(inputs.params.REPOSITORY)" == net-contour ]
then
export PARENT_DIR=${GOPATH}/src/knative.dev
elif [ "$(inputs.params.REPOSITORY)" == "test-infra" ]
Expand Down
2 changes: 1 addition & 1 deletion pkg/slack/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func ErrorReport(message string, attributes map[string]string) handler.Response
}

return &DirectMessage{
Emails: []string{"mattmoor@vmware.com"},
Emails: []string{"mattomata@gmail.com"},
Message: lines,
}
}

0 comments on commit 24cf1ed

Please sign in to comment.