mirror of
https://github.com/krkn-chaos/krkn.git
synced 2026-04-15 06:57:28 +00:00
* changed all the references to krkn_lib_kubernetes to the new krkn_lib changed all the references * added krkn-lib pointer in documentation
30 lines
1.2 KiB
Python
30 lines
1.2 KiB
Python
import logging
|
|
from kraken.node_actions.abstract_node_scenarios import abstract_node_scenarios
|
|
from krkn_lib.k8s import KrknKubernetes
|
|
|
|
class GENERAL:
|
|
def __init__(self):
|
|
pass
|
|
|
|
# krkn_lib
|
|
class general_node_scenarios(abstract_node_scenarios):
|
|
def __init__(self, kubecli: KrknKubernetes):
|
|
super().__init__(kubecli)
|
|
self.general = GENERAL()
|
|
|
|
# Node scenario to start the node
|
|
def node_start_scenario(self, instance_kill_count, node, timeout):
|
|
logging.info("Node start is not set up yet for this cloud type, " "no action is going to be taken")
|
|
|
|
# Node scenario to stop the node
|
|
def node_stop_scenario(self, instance_kill_count, node, timeout):
|
|
logging.info("Node stop is not set up yet for this cloud type," " no action is going to be taken")
|
|
|
|
# Node scenario to terminate the node
|
|
def node_termination_scenario(self, instance_kill_count, node, timeout):
|
|
logging.info("Node termination is not set up yet for this cloud type, " "no action is going to be taken")
|
|
|
|
# Node scenario to reboot the node
|
|
def node_reboot_scenario(self, instance_kill_count, node, timeout):
|
|
logging.info("Node reboot is not set up yet for this cloud type," " no action is going to be taken")
|