1
1
diff --git a/vendor/knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go b/vendor/knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go
2
- index 4b8eca0b0..0398dfbf9 100644
2
+ index 4b8eca0b0..ccf9f2f67 100644
3
3
--- a/vendor/knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go
4
4
+++ b/vendor/knative.dev/operator/pkg/reconciler/knativeserving/knativeserving.go
5
5
@@ -19,14 +19,15 @@ package knativeserving
@@ -20,21 +20,20 @@ index 4b8eca0b0..0398dfbf9 100644
20
20
"knative.dev/operator/pkg/apis/operator/base"
21
21
"knative.dev/operator/pkg/apis/operator/v1beta1"
22
22
clientset "knative.dev/operator/pkg/client/clientset/versioned"
23
- @@ -86,7 +87 ,12 @@ func (r *Reconciler) FinalizeKind(ctx context.Context, original *v1beta1.Knative
24
- logger.Error("Unable to fetch installed manifest; no cluster-scoped resources will be finalized", err)
23
+ @@ -90,6 +91 ,12 @@ func (r *Reconciler) FinalizeKind(ctx context.Context, original *v1beta1.Knative
24
+ if manifest == nil {
25
25
return nil
26
26
}
27
- -
28
27
+ // we need this to apply the correct namespace to the resources otherwise it defaults to knative-serving
29
28
+ *manifest, err = manifest.Transform(overrideKourierNamespace(original))
30
29
+ if err != nil {
31
30
+ logger.Error("Unable to apply kourier namespace transform", err)
32
31
+ return nil
33
32
+ }
34
- if manifest == nil {
35
- return nil
36
- }
37
- @@ -97,6 +103 ,20 @@ func (r *Reconciler) FinalizeKind(ctx context.Context, original *v1beta1.Knative
33
+
34
+ if err := common.Uninstall(manifest); err != nil {
35
+ logger.Error("Failed to finalize platform resources", err)
36
+ @@ -97,6 +104 ,20 @@ func (r *Reconciler) FinalizeKind(ctx context.Context, original *v1beta1.Knative
38
37
return nil
39
38
}
40
39
@@ -55,7 +54,7 @@ index 4b8eca0b0..0398dfbf9 100644
55
54
// ReconcileKind compares the actual state with the desired, and attempts to
56
55
// converge the two.
57
56
func (r *Reconciler) ReconcileKind(ctx context.Context, ks *v1beta1.KnativeServing) pkgreconciler.Event {
58
- @@ -117,6 +137 ,10 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, ks *v1beta1.KnativeServi
57
+ @@ -117,6 +138 ,10 @@ func (r *Reconciler) ReconcileKind(ctx context.Context, ks *v1beta1.KnativeServi
59
58
security.AppendTargetSecurity,
60
59
common.AppendAdditionalManifests,
61
60
r.appendExtensionManifests,
0 commit comments