Currently the withKubeConfig function only accepts Jenkins credentialsId, but our company requires actual user's token when deploying to production (as a mean to restrict the users that can deploy to production).
So out pipeline would prompt the user to enter his token before deploying to production.
Is it possible to add an extra parameter in the plugin to allow passing in the token directly?
Currently the
withKubeConfigfunction only accepts JenkinscredentialsId, but our company requires actual user's token when deploying to production (as a mean to restrict the users that can deploy to production).So out pipeline would prompt the user to enter his token before deploying to production.
Is it possible to add an extra parameter in the plugin to allow passing in the token directly?