#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright (C) 2019 tribe29 GmbH - License: GNU General Public License v2
# This file is part of Checkmk (https://checkmk.com). It is subject to the terms and
# conditions defined in the file COPYING, which is part of this source code package.

# NOTE: The plugins in this file were deprecated in version 2.0.0p5

###########################################################################
# NOTE: This check (and associated special agent) is deprecated and will be
#       removed in Checkmk version 2.2.
###########################################################################


def check_deprecated(_no_item, _no_params, _no_info):
    return 1, "This check is deprecated. Please rediscover the services of this host."


check_info["k8s_pods_memory"] = {
    "inventory_function": lambda i: None,
    "check_function": check_deprecated,
    "service_description": "Memory usage for Pods in %s namespace",
    "group": "k8s_pods_memory",
}

check_info["k8s_pods_cpu"] = {
    "inventory_function": lambda i: None,
    "check_function": check_deprecated,
    "service_description": "CPU usage for Pods in %s namespace",
    "group": "k8s_pods_cpu",
}

check_info["k8s_pods_fs"] = {
    "inventory_function": lambda i: None,
    "check_function": check_deprecated,
    "service_description": "FS usage for Pods in %s namespace",
    "group": "k8s_pods_fs",
}
