Skip to content

maximilien/kn-source-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

github

Knative Client plugin github

Usage

github

Knative eventing GitHub source plugin

Synopsis

Manage your Knative GitHub eventing sources

Options

  -h, --help   help for github

SEE ALSO

github create

create NAME

Synopsis

create a GitHub source

github create NAME [flags]

Examples

# Creates a new GitHub source with NAME using credentials
kn source github create NAME  --access-token $MY_ACCESS_TOKEN --secret-token $MY_SECRET_TOKEN

# Creates a new GitHub source with NAME with specified organization and repository using credentials
kn source github create NAME --org knative --repo client-contrib --access-token $MY_ACCESS_TOKEN --secret-token $MY_SECRET_TOKEN

Options

      --access-token string   The GitHub access-token to use
  -A, --all-namespaces        If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
      --api-url string        The GitHub API URL to use (default "https://api.github.com")
  -h, --help                  help for create
  -n, --namespace string      Specify the namespace to operate in.
      --org string            The GitHub organization or username
      --repo string           Repository name to consume messages from
      --secret-token string   The GitHub secret-token to use
  -s, --sink string           Addressable sink for events. You can specify a broker, Knative service or URI. Examples: '--sink broker:nest' for a broker 'nest', '--sink https://event.receiver.uri' for an URI with an 'http://' or 'https://' schema, '--sink 'ksvc:receiver' or simply '--sink receiver' for a Knative service 'receiver'. If prefix is not provided, it is considered as a Knative service.

SEE ALSO

  • github - Knative eventing GitHub source plugin

github delete

delete NAME

Synopsis

delete a GitHub source

github delete NAME [flags]

Examples

# Deletes a GitHub source with NAME
kn source github delete NAME

Options

  -A, --all-namespaces     If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
  -h, --help               help for delete
  -n, --namespace string   Specify the namespace to operate in.

SEE ALSO

  • github - Knative eventing GitHub source plugin

github describe

describe NAME

Synopsis

update a GitHub source

github describe NAME [flags]

Examples

# Describes a GitHub source with NAME
kn source github describe NAME

Options

  -A, --all-namespaces     If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
  -h, --help               help for describe
  -n, --namespace string   Specify the namespace to operate in.

SEE ALSO

  • github - Knative eventing GitHub source plugin

github update

update NAME

Synopsis

update a GitHub source

github update NAME [flags]

Examples

# Updates a GitHub source with NAME
kn source github update NAME

Options

      --access-token string   The GitHub access-token to use
  -A, --all-namespaces        If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.
      --api-url string        The GitHub API URL to use (default "https://api.github.com")
  -h, --help                  help for update
  -n, --namespace string      Specify the namespace to operate in.
      --org string            The GitHub organization or username
      --repo string           Repository name to consume messages from
      --secret-token string   The GitHub secret-token to use
  -s, --sink string           Addressable sink for events. You can specify a broker, Knative service or URI. Examples: '--sink broker:nest' for a broker 'nest', '--sink https://event.receiver.uri' for an URI with an 'http://' or 'https://' schema, '--sink 'ksvc:receiver' or simply '--sink receiver' for a Knative service 'receiver'. If prefix is not provided, it is considered as a Knative service.

SEE ALSO

  • github - Knative eventing GitHub source plugin

More information

About

Kn plugin for GitHub event source

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published