The deploy stage is a good start but there are some improvements needed to be useful for real deployments.
Perhaps it is easier to use kubectl directly for the stage instead of the API
A few of these ideas are coming from the GCE CD Jenkins example (https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/blob/master/sample-app/Jenkinsfile#L39-L48)
The deploy stage is a good start but there are some improvements needed to be useful for real deployments.
<basenamespace>-stagingor<basenamespace>-<commitid>). Regex/Variable support useful here too?kubectl applysupport - updating existing resources in placePerhaps it is easier to use
kubectldirectly for the stage instead of the APIA few of these ideas are coming from the GCE CD Jenkins example (https://github.com/GoogleCloudPlatform/continuous-deployment-on-kubernetes/blob/master/sample-app/Jenkinsfile#L39-L48)