@@ -67,8 +67,8 @@ var _ = Describe("Middleware Update", func() {
6767 Expect (err ).NotTo (HaveOccurred ())
6868 DeferCleanup (cleanupNamespaces , functionNamespace )
6969
70- // Deploy function using OLD func CLI version
71- out , err := utils .RunFuncWithVersion ("v1.20.0 " , "deploy" ,
70+ // Deploy function using OLD func CLI version (v1.19.5 has no middleware-version label)
71+ out , err := utils .RunFuncWithVersion ("v1.19.5 " , "deploy" ,
7272 "--namespace" , functionNamespace ,
7373 "--path" , repoDir ,
7474 "--registry" , registry ,
@@ -119,7 +119,7 @@ var _ = Describe("Middleware Update", func() {
119119 // We use skopeo with localhost:5001 (port-forward to the registry) to
120120 // directly inspect the OCI image labels and verify the middleware was updated.
121121
122- // Get initial image digest from func describe (deployed with old v1.20.0 )
122+ // Get initial image digest from func describe (deployed with v1.19.5 )
123123 out , err := utils .RunFunc ("describe" , deployedFunctionName , "-n" , functionNamespace , "-o" , "yaml" )
124124 Expect (err ).NotTo (HaveOccurred ())
125125
@@ -129,9 +129,9 @@ var _ = Describe("Middleware Update", func() {
129129
130130 initialImage := initialInstance .Image
131131 Expect (initialImage ).NotTo (BeEmpty (), "Initial image should be available from func describe" )
132- _ , _ = fmt .Fprintf (GinkgoWriter , "Initial image (deployed with v1.20.0 ): %s\n " , initialImage )
132+ _ , _ = fmt .Fprintf (GinkgoWriter , "Initial image (deployed with v1.19.5 ): %s\n " , initialImage )
133133
134- // Verify initial image has no middleware-version label (old func CLI )
134+ // Verify initial image has no middleware-version label (v1.19.5 doesn't set it )
135135 initialImageLocal := strings .Replace (initialImage , "kind-registry:5000" , "localhost:5001" , 1 )
136136 // Remove tag if both tag and digest are present (skopeo doesn't support this format)
137137 if strings .Contains (initialImageLocal , "@" ) {
@@ -160,7 +160,7 @@ var _ = Describe("Middleware Update", func() {
160160 Expect (err ).NotTo (HaveOccurred ())
161161
162162 initialMiddlewareVersion := initialImageLabels .Labels ["middleware-version" ]
163- _ , _ = fmt .Fprintf (GinkgoWriter , "Initial middleware-version label: '%s' (expected empty for v1.20.0 )\n " ,
163+ _ , _ = fmt .Fprintf (GinkgoWriter , "Initial middleware-version label: '%s' (expected empty for v1.19.5 )\n " ,
164164 initialMiddlewareVersion )
165165
166166 // Create a Function resource
0 commit comments