Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package okteto for openSUSE:Factory checked 
in at 2022-04-28 23:08:21
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/okteto (Old)
 and      /work/SRC/openSUSE:Factory/.okteto.new.1538 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "okteto"

Thu Apr 28 23:08:21 2022 rev:14 rq:973734 version:2.2.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/okteto/okteto.changes    2022-04-27 
21:42:24.189090793 +0200
+++ /work/SRC/openSUSE:Factory/.okteto.new.1538/okteto.changes  2022-04-28 
23:08:29.000718137 +0200
@@ -1,0 +2,6 @@
+Thu Apr 28 13:44:28 UTC 2022 - ka...@b1-systems.de
+
+- Update to version 2.2.1:
+  * fix: debugger ports not creating services (#2606)
+
+-------------------------------------------------------------------

Old:
----
  okteto-2.2.0.tar.gz

New:
----
  okteto-2.2.1.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ okteto.spec ++++++
--- /var/tmp/diff_new_pack.ZvyiDF/_old  2022-04-28 23:08:29.944719017 +0200
+++ /var/tmp/diff_new_pack.ZvyiDF/_new  2022-04-28 23:08:29.952719025 +0200
@@ -19,7 +19,7 @@
 %define __arch_install_post export NO_BRP_STRIP_DEBUG=true
 
 Name:           okteto
-Version:        2.2.0
+Version:        2.2.1
 Release:        0
 Summary:        Develop your applications directly in your Kubernetes Cluster
 License:        Apache-2.0

++++++ _service ++++++
--- /var/tmp/diff_new_pack.ZvyiDF/_old  2022-04-28 23:08:29.984719055 +0200
+++ /var/tmp/diff_new_pack.ZvyiDF/_new  2022-04-28 23:08:29.988719058 +0200
@@ -3,7 +3,7 @@
     <param name="url">https://github.com/okteto/okteto</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">2.2.0</param>
+    <param name="revision">2.2.1</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="changesgenerate">enable</param>
   </service>
@@ -15,7 +15,7 @@
     <param name="compression">gz</param>
   </service>
   <service name="go_modules" mode="disabled">
-    <param name="archive">okteto-2.2.0.tar.gz</param>
+    <param name="archive">okteto-2.2.1.tar.gz</param>
   </service>
 </services>
 

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.ZvyiDF/_old  2022-04-28 23:08:30.008719077 +0200
+++ /var/tmp/diff_new_pack.ZvyiDF/_new  2022-04-28 23:08:30.008719077 +0200
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://github.com/okteto/okteto</param>
-              <param 
name="changesrevision">ead03d265c5ce6792443dc6c3b8f748d3241453b</param></service></servicedata>
+              <param 
name="changesrevision">fd9d31995272c7f710ddcad8db20fa72b5faa6f0</param></service></servicedata>
 (No newline at EOF)
 

++++++ okteto-2.2.0.tar.gz -> okteto-2.2.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/okteto-2.2.0/pkg/cmd/stack/translate.go 
new/okteto-2.2.1/pkg/cmd/stack/translate.go
--- old/okteto-2.2.0/pkg/cmd/stack/translate.go 2022-04-27 09:27:02.000000000 
+0200
+++ new/okteto-2.2.1/pkg/cmd/stack/translate.go 2022-04-28 14:08:03.000000000 
+0200
@@ -866,10 +866,8 @@
 
 func translateServicePorts(svc model.Service) []apiv1.ServicePort {
        result := []apiv1.ServicePort{}
-       for _, p := range svc.Ports {
-               if model.IsSkippablePort(p.HostPort) {
-                       continue
-               }
+       ports := getPortsToAddToSvc(svc.Ports)
+       for _, p := range ports {
                if !isServicePortAdded(p.ContainerPort, result) {
                        result = append(
                                result,
@@ -896,6 +894,22 @@
        return result
 }
 
+func getPortsToAddToSvc(ports []model.Port) []model.Port {
+       privatePorts := []model.Port{}
+       publicPorts := []model.Port{}
+       for _, p := range ports {
+               if model.IsSkippablePort(p.HostPort) {
+                       privatePorts = append(privatePorts, p)
+               } else {
+                       publicPorts = append(publicPorts, p)
+               }
+       }
+       if len(publicPorts) > 0 {
+               return publicPorts
+       }
+       return privatePorts
+}
+
 func isServicePortAdded(newPort int32, existentPorts []apiv1.ServicePort) bool 
{
        for _, p := range existentPorts {
                if p.Port == newPort {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/okteto-2.2.0/pkg/cmd/stack/translate_test.go 
new/okteto-2.2.1/pkg/cmd/stack/translate_test.go
--- old/okteto-2.2.0/pkg/cmd/stack/translate_test.go    2022-04-27 
09:27:02.000000000 +0200
+++ new/okteto-2.2.1/pkg/cmd/stack/translate_test.go    2022-04-28 
14:08:03.000000000 +0200
@@ -1066,6 +1066,61 @@
                                },
                        },
                },
+               {
+                       name: "translate svc private endpoints by private 
annotation",
+                       stack: &model.Stack{
+                               Name: "stackName",
+                               Services: map[string]*model.Service{
+                                       "svcName": {
+                                               Labels: model.Labels{
+                                                       "label1": "value1",
+                                                       "label2": "value2",
+                                               },
+                                               Annotations: model.Annotations{
+                                                       "annotation1": "value1",
+                                                       "annotation2": "value2",
+                                               },
+                                               Ports: []model.Port{
+                                                       {
+                                                               HostPort:      
6379,
+                                                               ContainerPort: 
6379,
+                                                               Protocol:      
apiv1.ProtocolTCP,
+                                                       },
+                                               },
+                                       },
+                               },
+                       },
+                       expected: &apiv1.Service{
+                               ObjectMeta: metav1.ObjectMeta{
+                                       Name: "svcName",
+                                       Labels: map[string]string{
+                                               "label1":                    
"value1",
+                                               "label2":                    
"value2",
+                                               model.StackNameLabel:        
"stackName",
+                                               model.StackServiceNameLabel: 
"svcName",
+                                       },
+                                       Annotations: map[string]string{
+                                               "annotation1": "value1",
+                                               "annotation2": "value2",
+                                       },
+                               },
+                               Spec: apiv1.ServiceSpec{
+                                       Type: apiv1.ServiceTypeClusterIP,
+                                       Selector: map[string]string{
+                                               model.StackNameLabel:        
"stackName",
+                                               model.StackServiceNameLabel: 
"svcName",
+                                       },
+                                       Ports: []apiv1.ServicePort{
+                                               {
+                                                       Name:       
"p-6379-6379-tcp",
+                                                       Port:       6379,
+                                                       TargetPort: 
intstr.IntOrString{IntVal: 6379},
+                                                       Protocol:   
apiv1.ProtocolTCP,
+                                               },
+                                       },
+                               },
+                       },
+               },
        }
 
        for _, tt := range tests {

++++++ vendor.tar.gz ++++++
/work/SRC/openSUSE:Factory/okteto/vendor.tar.gz 
/work/SRC/openSUSE:Factory/.okteto.new.1538/vendor.tar.gz differ: char 5, line 1

Reply via email to