As its name implies, the `kubeRestartDeployment` function would only restart pods managed by a Deployment. In order to restart pods managed by other controllers, such as StatefulSets or DaemonSets, I've created a new function, `kubeRolloutRestart`. To preserve backward compatibility, the `kubeRestartDeployment` function delegates to this new function.
11 lines
190 B
Groovy
11 lines
190 B
Groovy
def call(args) {
|
|
def namespace = args?.namespace
|
|
def name = args?.name
|
|
|
|
kubeRolloutRestart(
|
|
kind: 'deployment',
|
|
namespace: namespace,
|
|
name: name,
|
|
)
|
|
}
|