Files
jenkins-libs/vars/kubeRestartDeployment.groovy
Dustin C. Hatch 4217811e35 kubeRolloutRestart: Add generic restart function
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.
2025-10-11 12:38:12 -05:00

11 lines
190 B
Groovy

def call(args) {
def namespace = args?.namespace
def name = args?.name
kubeRolloutRestart(
kind: 'deployment',
namespace: namespace,
name: name,
)
}