Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package kor for openSUSE:Factory checked in 
at 2025-02-07 23:08:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kor (Old)
 and      /work/SRC/openSUSE:Factory/.kor.new.2316 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kor"

Fri Feb  7 23:08:37 2025 rev:27 rq:1244206 version:0.5.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/kor/kor.changes  2025-01-13 17:51:04.216960069 
+0100
+++ /work/SRC/openSUSE:Factory/.kor.new.2316/kor.changes        2025-02-07 
23:12:37.628364411 +0100
@@ -1,0 +2,9 @@
+Fri Feb 07 17:02:33 UTC 2025 - [email protected]
+
+- Update to version 0.5.9:
+  * chore: chart bump pre 0.5.9 release (#405)
+  * Fix: ephemeral pvcs (#403)
+  * chore(deps): bump k8s.io/apiextensions-apiserver from 0.32.0 to
+    0.32.1 (#398)
+
+-------------------------------------------------------------------

Old:
----
  kor-0.5.8.obscpio

New:
----
  kor-0.5.9.obscpio

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

Other differences:
------------------
++++++ kor.spec ++++++
--- /var/tmp/diff_new_pack.c8dg49/_old  2025-02-07 23:12:38.416397036 +0100
+++ /var/tmp/diff_new_pack.c8dg49/_new  2025-02-07 23:12:38.432397698 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           kor
-Version:        0.5.8
+Version:        0.5.9
 Release:        0
 Summary:        Tool to discover unused Kubernetes Resources
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.c8dg49/_old  2025-02-07 23:12:38.832414259 +0100
+++ /var/tmp/diff_new_pack.c8dg49/_new  2025-02-07 23:12:38.896416909 +0100
@@ -3,9 +3,9 @@
     <param name="url">https://github.com/yonahd/kor</param>
     <param name="scm">git</param>
     <param name="exclude">.git</param>
-    <param name="revision">v0.5.8</param>
+    <param name="revision">v0.5.9</param>
     <!-- the helm-related tag kor-0.1.xx is sitting on the same commit... -->
-    <param name="match-tag">v0.5.8</param>
+    <param name="match-tag">v0.5.9</param>
     <param name="versionformat">@PARENT_TAG@</param>
     <param name="versionrewrite-pattern">v(.*)</param>
     <param name="changesgenerate">enable</param>

++++++ _servicedata ++++++
--- /var/tmp/diff_new_pack.c8dg49/_old  2025-02-07 23:12:39.108425686 +0100
+++ /var/tmp/diff_new_pack.c8dg49/_new  2025-02-07 23:12:39.144427177 +0100
@@ -1,6 +1,6 @@
 <servicedata>
 <service name="tar_scm">
                 <param name="url">https://github.com/yonahd/kor</param>
-              <param 
name="changesrevision">ad2c00b050ad8bf81fa894d45f66192f49f34f23</param></service></servicedata>
+              <param 
name="changesrevision">b5ea3cdaf54eaec14f3ee822b301f1ff640fc921</param></service></servicedata>
 (No newline at EOF)
 

++++++ kor-0.5.8.obscpio -> kor-0.5.9.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/charts/kor/Chart.yaml 
new/kor-0.5.9/charts/kor/Chart.yaml
--- old/kor-0.5.8/charts/kor/Chart.yaml 2025-01-12 19:46:42.000000000 +0100
+++ new/kor-0.5.9/charts/kor/Chart.yaml 2025-02-02 19:24:52.000000000 +0100
@@ -2,8 +2,8 @@
 name: kor
 description: A Kubernetes Helm Chart to discover orphaned resources using kor
 type: application
-version: 0.1.17
-appVersion: "0.5.8"
+version: 0.1.18
+appVersion: "0.5.9"
 maintainers:
   - name: "yonahd"
     url: "https://github.com/yonahd/kor";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/charts/kor/README.md 
new/kor-0.5.9/charts/kor/README.md
--- old/kor-0.5.8/charts/kor/README.md  2025-01-12 19:46:42.000000000 +0100
+++ new/kor-0.5.9/charts/kor/README.md  2025-02-02 19:24:52.000000000 +0100
@@ -1,6 +1,6 @@
 # kor
 
-![Version: 
0.1.17](https://img.shields.io/badge/Version-0.1.17-informational?style=flat-square)
 ![Type: 
application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
 ![AppVersion: 
0.5.8](https://img.shields.io/badge/AppVersion-0.5.8-informational?style=flat-square)
+![Version: 
0.1.18](https://img.shields.io/badge/Version-0.1.18-informational?style=flat-square)
 ![Type: 
application](https://img.shields.io/badge/Type-application-informational?style=flat-square)
 ![AppVersion: 
0.5.9](https://img.shields.io/badge/AppVersion-0.5.9-informational?style=flat-square)
 
 A Kubernetes Helm Chart to discover orphaned resources using kor
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/go.mod new/kor-0.5.9/go.mod
--- old/kor-0.5.8/go.mod        2025-01-12 19:46:42.000000000 +0100
+++ new/kor-0.5.9/go.mod        2025-02-02 19:24:52.000000000 +0100
@@ -7,10 +7,10 @@
        github.com/olekukonko/tablewriter v0.0.5
        github.com/prometheus/client_golang v1.20.5
        github.com/spf13/cobra v1.8.1
-       k8s.io/api v0.32.0
-       k8s.io/apiextensions-apiserver v0.32.0
-       k8s.io/apimachinery v0.32.0
-       k8s.io/client-go v0.32.0
+       k8s.io/api v0.32.1
+       k8s.io/apiextensions-apiserver v0.32.1
+       k8s.io/apimachinery v0.32.1
+       k8s.io/client-go v0.32.1
        k8s.io/utils v0.0.0-20241210054802-24370beab758
        sigs.k8s.io/yaml v1.4.0
 )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/go.sum new/kor-0.5.9/go.sum
--- old/kor-0.5.8/go.sum        2025-01-12 19:46:42.000000000 +0100
+++ new/kor-0.5.9/go.sum        2025-02-02 19:24:52.000000000 +0100
@@ -173,14 +173,14 @@
 gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod 
h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
 gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
 gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
-k8s.io/api v0.32.0 h1:OL9JpbvAU5ny9ga2fb24X8H6xQlVp+aJMFlgtQjR9CE=
-k8s.io/api v0.32.0/go.mod h1:4LEwHZEf6Q/cG96F3dqR965sYOfmPM7rq81BLgsE0p0=
-k8s.io/apiextensions-apiserver v0.32.0 
h1:S0Xlqt51qzzqjKPxfgX1xh4HBZE+p8KKBq+k2SWNOE0=
-k8s.io/apiextensions-apiserver v0.32.0/go.mod 
h1:86hblMvN5yxMvZrZFX2OhIHAuFIMJIZ19bTvzkP+Fmw=
-k8s.io/apimachinery v0.32.0 h1:cFSE7N3rmEEtv4ei5X6DaJPHHX0C+upp+v5lVPiEwpg=
-k8s.io/apimachinery v0.32.0/go.mod 
h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
-k8s.io/client-go v0.32.0 h1:DimtMcnN/JIKZcrSrstiwvvZvLjG0aSxy8PxN8IChp8=
-k8s.io/client-go v0.32.0/go.mod h1:boDWvdM1Drk4NJj/VddSLnx59X3OPgwrOo0vGbtq9+8=
+k8s.io/api v0.32.1 h1:f562zw9cy+GvXzXf0CKlVQ7yHJVYzLfL6JAS4kOAaOc=
+k8s.io/api v0.32.1/go.mod h1:/Yi/BqkuueW1BgpoePYBRdDYfjPF5sgTr5+YqDZra5k=
+k8s.io/apiextensions-apiserver v0.32.1 
h1:hjkALhRUeCariC8DiVmb5jj0VjIc1N0DREP32+6UXZw=
+k8s.io/apiextensions-apiserver v0.32.1/go.mod 
h1:sxWIGuGiYov7Io1fAS2X06NjMIk5CbRHc2StSmbaQto=
+k8s.io/apimachinery v0.32.1 h1:683ENpaCBjma4CYqsmZyhEzrGz6cjn1MY/X2jB2hkZs=
+k8s.io/apimachinery v0.32.1/go.mod 
h1:GpHVgxoKlTxClKcteaeuF1Ul/lDVb74KpZcxcmLDElE=
+k8s.io/client-go v0.32.1 h1:otM0AxdhdBIaQh7l1Q0jQpmo7WOFIk5FFa4bg6YMdUU=
+k8s.io/client-go v0.32.1/go.mod h1:aTTKZY7MdxUaJ/KiUs8D+GssR9zJZi77ZqtzcGXIiDg=
 k8s.io/klog/v2 v2.130.1 h1:n9Xl7H1Xvksem4KFG4PYbdQCQxqc/tTUyrgXaOhHSzk=
 k8s.io/klog/v2 v2.130.1/go.mod h1:3Jpz1GvMt720eyJH1ckRHK1EDfpxISzJ7I9OYgaDtPE=
 k8s.io/kube-openapi v0.0.0-20241105132330-32ad38e42d3f 
h1:GA7//TjRY9yWGy1poLzYYJJ4JRdzg3+O6e8I+e+8T5Y=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/pkg/kor/create_test_resources.go 
new/kor-0.5.9/pkg/kor/create_test_resources.go
--- old/kor-0.5.8/pkg/kor/create_test_resources.go      2025-01-12 
19:46:42.000000000 +0100
+++ new/kor-0.5.9/pkg/kor/create_test_resources.go      2025-02-02 
19:24:52.000000000 +0100
@@ -9,6 +9,7 @@
        policyv1 "k8s.io/api/policy/v1"
        rbacv1 "k8s.io/api/rbac/v1"
        storagev1 "k8s.io/api/storage/v1"
+       "k8s.io/apimachinery/pkg/api/resource"
        v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
        "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
 )
@@ -96,6 +97,25 @@
 
 }
 
+func CreateEphemeralVolumeDefinition(name, size string) *corev1.Volume {
+       return &corev1.Volume{
+               Name: name,
+               VolumeSource: corev1.VolumeSource{
+                       Ephemeral: &corev1.EphemeralVolumeSource{
+                               VolumeClaimTemplate: 
&corev1.PersistentVolumeClaimTemplate{
+                                       Spec: corev1.PersistentVolumeClaimSpec{
+                                               Resources: 
corev1.VolumeResourceRequirements{
+                                                       Requests: 
corev1.ResourceList{
+                                                               
corev1.ResourceStorage: resource.MustParse(size),
+                                                       },
+                                               },
+                                       },
+                               },
+                       },
+               },
+       }
+}
+
 func CreateTestServiceAccount(namespace, name string, labels 
map[string]string) *corev1.ServiceAccount {
        return &corev1.ServiceAccount{
                ObjectMeta: v1.ObjectMeta{
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/pkg/kor/pvc.go new/kor-0.5.9/pkg/kor/pvc.go
--- old/kor-0.5.8/pkg/kor/pvc.go        2025-01-12 19:46:42.000000000 +0100
+++ new/kor-0.5.9/pkg/kor/pvc.go        2025-02-02 19:24:52.000000000 +0100
@@ -28,6 +28,11 @@
                        if volume.PersistentVolumeClaim != nil {
                                usedPvcs = append(usedPvcs, 
volume.PersistentVolumeClaim.ClaimName)
                        }
+                       // Include ephemeral PVC
+                       if volume.Ephemeral != nil && 
volume.Ephemeral.VolumeClaimTemplate != nil {
+                               // 
https://kubernetes.io/docs/concepts/storage/ephemeral-volumes/#persistentvolumeclaim-naming
+                               usedPvcs = append(usedPvcs, 
pod.GetObjectMeta().GetName()+"-"+volume.Name)
+                       }
                }
        }
        return usedPvcs, err
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kor-0.5.8/pkg/kor/pvc_test.go 
new/kor-0.5.9/pkg/kor/pvc_test.go
--- old/kor-0.5.8/pkg/kor/pvc_test.go   2025-01-12 19:46:42.000000000 +0100
+++ new/kor-0.5.9/pkg/kor/pvc_test.go   2025-02-02 19:24:52.000000000 +0100
@@ -57,10 +57,17 @@
        volumeList = append(volumeList, *testVolume)
        testPod := CreateTestPod(testNamespace, "test-pod", "test-sa", 
volumeList, AppLabels)
 
+       ephVolume := CreateEphemeralVolumeDefinition("test-ephemeral-volume", 
"1Gi")
+       testPodWEphemeralStorage := CreateTestPod(testNamespace, 
"test-pod-ephemeral-storage", "test-sa", []corev1.Volume{*ephVolume}, AppLabels)
+
        _, err = clientset.CoreV1().Pods(testNamespace).Create(context.TODO(), 
testPod, v1.CreateOptions{})
        if err != nil {
                t.Fatalf("Error creating fake %s: %v", "Pvc", err)
        }
+       _, err = clientset.CoreV1().Pods(testNamespace).Create(context.TODO(), 
testPodWEphemeralStorage, v1.CreateOptions{})
+       if err != nil {
+               t.Fatalf("Error creating fake %s: %v", "Pvc", err)
+       }
 
        return clientset
 }
@@ -72,13 +79,17 @@
                t.Errorf("Expected no error, got %v", err)
        }
 
-       if len(usedPvcs) != 1 {
-               t.Errorf("Expected 1 used pvc, got %d", len(usedPvcs))
+       if len(usedPvcs) != 2 {
+               t.Errorf("Expected 2 used pvc, got %d", len(usedPvcs))
        }
 
        if usedPvcs[0] != "test-pvc1" {
                t.Errorf("Expected 'test-pvc1', got %s", usedPvcs[0])
        }
+
+       if usedPvcs[1] != "test-pod-ephemeral-storage-test-ephemeral-volume" {
+               t.Errorf("Expected 
'test-pod-ephemeral-storage-test-ephemeral-volume', got %s", usedPvcs[1])
+       }
 }
 
 func TestProcessNamespacePvcs(t *testing.T) {

++++++ kor.obsinfo ++++++
--- /var/tmp/diff_new_pack.c8dg49/_old  2025-02-07 23:12:40.072465597 +0100
+++ /var/tmp/diff_new_pack.c8dg49/_new  2025-02-07 23:12:40.104466923 +0100
@@ -1,5 +1,5 @@
 name: kor
-version: 0.5.8
-mtime: 1736707602
-commit: ad2c00b050ad8bf81fa894d45f66192f49f34f23
+version: 0.5.9
+mtime: 1738520692
+commit: b5ea3cdaf54eaec14f3ee822b301f1ff640fc921
 

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

Reply via email to