-
Notifications
You must be signed in to change notification settings - Fork 972
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change storage of ssh pem from configmap to secret for ssh plugin #603
Conversation
pkg/apis/helpers/helpers.go
Outdated
@@ -145,6 +163,16 @@ func DeleteConfigmap(job *vcbatch.Job, kubeClients kubernetes.Interface, cmName | |||
return nil | |||
} | |||
|
|||
// DeleteSecret delete secret | |||
func DeleteSecret(job *vcbatch.Job, kubeClients kubernetes.Interface, secretName string) error { | |||
err := kubeClients.CoreV1().ConfigMaps(job.Namespace).Delete(secretName, nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why configmaps?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
error coding, modified it, thanks
Hey @sivanzcw, TravisCI finished with status TravisBuddy Request Identifier: 48563c00-1d58-11ea-a2fb-51cb67500490 |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: k82cn, sivanzcw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
LGTM overall, please help to fix CI error :) |
519f2a9
to
5d517cf
Compare
Hey @sivanzcw, TravisBuddy Request Identifier: 3ae61890-1d87-11ea-a2fb-51cb67500490 |
Hey @sivanzcw, TravisBuddy Request Identifier: a7df2130-1d87-11ea-a2fb-51cb67500490 |
/lgtm |
#549
change pem backend storage from comfigmap to secret
secret name is jobname-jobid-ssh