fix podspec workload not create service anymore

This commit is contained in:
天元
2020-10-08 16:09:04 +08:00
parent c9a28309b2
commit e4570e22ae

View File

@@ -121,7 +121,7 @@ func (r *Reconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
// Determine whether it is necessary to create a service.if container.
setPorts := r.checkContainerPortsSpecified(ctx, &workload)
if !setPorts {
if setPorts {
// create a service for the workload
service, err := r.renderService(ctx, &workload)
if err != nil {