-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support cloudevents for manifestworkreplicaset
Signed-off-by: Wei Liu <liuweixa@redhat.com>
- Loading branch information
Showing
62 changed files
with
3,864 additions
and
337 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
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
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
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
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
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,27 @@ | ||
package hub | ||
|
||
import ( | ||
"github.com/spf13/pflag" | ||
) | ||
|
||
// WorkHubManagerOptions defines the flags for work hub manager | ||
type WorkHubManagerOptions struct { | ||
WorkDriver string | ||
WorkDriverConfig string | ||
|
||
CloudEventsClientID string | ||
} | ||
|
||
func NewWorkHubManagerOptions() *WorkHubManagerOptions { | ||
return &WorkHubManagerOptions{} | ||
} | ||
|
||
// AddFlags register and binds the default flags | ||
func (o *WorkHubManagerOptions) AddFlags(fs *pflag.FlagSet) { | ||
fs.StringVar(&o.WorkDriver, "work-driver", | ||
o.WorkDriver, "The type of work driver, currently it can be kube, mqtt or grpc") | ||
fs.StringVar(&o.WorkDriverConfig, "work-driver-config", | ||
o.WorkDriverConfig, "The config file path of current work driver") | ||
fs.StringVar(&o.CloudEventsClientID, "cloudevents-client-id", | ||
o.CloudEventsClientID, "The ID of the cloudevents client when publishing works with cloudevents") | ||
} |
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
Oops, something went wrong.