mirror of
https://github.com/kubevela/kubevela.git
synced 2026-04-05 18:27:07 +00:00
fix podspec workload not create service anymore
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user