kubernetes.secret_present should allow type
parameter
#67591
Replies: 5 comments
-
looks like we are only passing data and metadata shown here: https://github.com/saltstack/salt/blob/v2017.7.3/salt/modules/kubernetes.py#L1073-L1075 seems a very reasonable thing to add. Want to give a go at a PR? |
Beta Was this translation helpful? Give feedback.
-
This has not been added / fixed in https://github.com/saltstack/salt/blob/v2018.3/salt/modules/kubernetes.py#L1089-L1091 |
Beta Was this translation helpful? Give feedback.
-
yeah anyone else is welcome to push a PR for this :) would very much welcome that |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
Beta Was this translation helpful? Give feedback.
-
Thank you for updating this issue. It is no longer marked as stale. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description of Issue/Question
unfortunately the
type
parameter for a kubernetes secret can't be specified when using thesecret_present
state. therefor the type of the secret will always beopaque
. but e.g. to specify an ImagePullSecret you need the type. dockerconfigjson
.(the python client supports it: https://github.com/kubernetes-client/python/blob/master/kubernetes/client/models/v1_secret.py#L204)
Versions Report
salt 2017.7.3
Beta Was this translation helpful? Give feedback.
All reactions