code: func ServiceWithSecret(secretRef *swarmtypes.SecretReference) ServiceSpecOpt {
  	return func(spec *swarmtypes.ServiceSpec) {
  		ensureContainerSpec(spec)
  		spec.TaskTemplate.ContainerSpec.Secrets = append(spec.TaskTemplate.ContainerSpec.Secrets, secretRef)
  	}
  }
docs: // ServiceWithSecret adds the secret reference to the service