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

Commit

Permalink
added raw-container to registered task types (#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 36c0b41 commit 109224c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions 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 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 109224c

Please sign in to comment.