mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-15 06:43:54 +00:00
Merge pull request #101780 from nak3/fix-create-cm
Fix error handling for kubectl create configmap
This commit is contained in:
commit
78df56def6
@ -215,7 +215,7 @@ func (o *ConfigMapOptions) Validate() error {
|
||||
func (o *ConfigMapOptions) Run() error {
|
||||
configMap, err := o.createConfigMap()
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
if err := util.CreateOrUpdateAnnotation(o.CreateAnnotation, configMap, scheme.DefaultJSONEncoder()); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user