Skip to content

Commit

Permalink
bugfix: generate podlevel cgroup path with pod prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
WangZzzhe committed Dec 14, 2023
1 parent f1c0c61 commit e79e43a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion cmd/katalyst-agent/app/agent/orm.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"fmt"

"k8s.io/klog/v2"

plugincache "k8s.io/kubernetes/pkg/kubelet/pluginmanager/cache"

"github.com/kubewharf/katalyst-core/pkg/agent/resourcemanager/outofband"
Expand Down
2 changes: 1 addition & 1 deletion cmd/katalyst-agent/app/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ limitations under the License.
package options

import (
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/orm"
"k8s.io/apimachinery/pkg/util/errors"
cliflag "k8s.io/component-base/cli/flag"

"github.com/kubewharf/katalyst-core/cmd/base/options"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/dynamic"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/eviction"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/global"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/orm"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/qrm"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/reporter"
"github.com/kubewharf/katalyst-core/cmd/katalyst-agent/app/options/sysadvisor"
Expand Down
4 changes: 2 additions & 2 deletions cmd/katalyst-agent/app/options/orm/orm_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ package orm
import (
"time"

ormconfig "github.com/kubewharf/katalyst-core/pkg/config/agent/orm"

cliflag "k8s.io/component-base/cli/flag"

ormconfig "github.com/kubewharf/katalyst-core/pkg/config/agent/orm"
)

type GenericORMPluginOptions struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/cgroup/common/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func GetKubernetesAnyExistRelativeCgroupPath(suffix string) (string, error) {

// GetPodAbsCgroupPath returns absolute cgroup path for pod level
func GetPodAbsCgroupPath(subsys, podUID string) (string, error) {
return GetKubernetesAnyExistAbsCgroupPath(subsys, podUID)
return GetKubernetesAnyExistAbsCgroupPath(subsys, fmt.Sprintf("%s%s", PodCgroupPathPrefix, podUID))
}

// GetContainerAbsCgroupPath returns absolute cgroup path for container level
Expand Down

0 comments on commit e79e43a

Please sign in to comment.