Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
added 'python-task' to registered task types (#290)
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rammer <[email protected]>

Signed-off-by: Daniel Rammer <[email protected]>
  • Loading branch information
hamersaw authored Oct 21, 2022
1 parent eed7326 commit 932e97b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions go/tasks/plugins/k8s/pod/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (

const (
ContainerTaskType = "container"
PythonTaskType = "python-task"
)

type containerPodBuilder struct {
Expand Down
4 changes: 2 additions & 2 deletions go/tasks/plugins/k8s/pod/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func init() {
pluginmachinery.PluginRegistry().RegisterK8sPlugin(
k8s.PluginEntry{
ID: ContainerTaskType,
RegisteredTaskTypes: []pluginsCore.TaskType{ContainerTaskType},
RegisteredTaskTypes: []pluginsCore.TaskType{ContainerTaskType, PythonTaskType},
ResourceToWatch: &v1.Pod{},
Plugin: DefaultPodPlugin,
IsDefault: true,
Expand All @@ -176,7 +176,7 @@ func init() {
pluginmachinery.PluginRegistry().RegisterK8sPlugin(
k8s.PluginEntry{
ID: podTaskType,
RegisteredTaskTypes: []pluginsCore.TaskType{ContainerTaskType, SidecarTaskType},
RegisteredTaskTypes: []pluginsCore.TaskType{ContainerTaskType, PythonTaskType, SidecarTaskType},
ResourceToWatch: &v1.Pod{},
Plugin: DefaultPodPlugin,
IsDefault: true,
Expand Down

0 comments on commit 932e97b

Please sign in to comment.