Skip to content

Commit

Permalink
added raw-container to registered task types (flyteorg#305)
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Ruess <[email protected]>

Signed-off-by: Felix Ruess <[email protected]>
  • Loading branch information
flixr authored Jan 10, 2023
1 parent fe4efa0 commit 6297c94
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions flyteplugins/go/tasks/plugins/k8s/pod/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ import (
)

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

type containerPodBuilder struct {
Expand Down
4 changes: 2 additions & 2 deletions flyteplugins/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, PythonTaskType},
RegisteredTaskTypes: []pluginsCore.TaskType{ContainerTaskType, PythonTaskType, RawContainerTaskType},
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, PythonTaskType, SidecarTaskType},
RegisteredTaskTypes: []pluginsCore.TaskType{ContainerTaskType, PythonTaskType, RawContainerTaskType, SidecarTaskType},
ResourceToWatch: &v1.Pod{},
Plugin: DefaultPodPlugin,
IsDefault: true,
Expand Down

0 comments on commit 6297c94

Please sign in to comment.