Skip to content

Commit ed30280

Browse files
committed
temp
Signed-off-by: Todd Short <[email protected]>
1 parent a334059 commit ed30280

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ build-push-e2e-catalog: ## Build the testdata catalog used for e2e tests and pus
150150
test-e2e: KIND_CLUSTER_NAME := operator-controller-e2e
151151
test-e2e: KUSTOMIZE_BUILD_DIR := config/e2e
152152
test-e2e: GO_BUILD_FLAGS := -cover
153-
test-e2e: run image-registry build-push-e2e-catalog kind-load-test-artifacts e2e e2e-coverage kind-clean #HELP Run e2e test suite on local kind cluster
153+
test-e2e: run image-registry build-push-e2e-catalog kind-load-test-artifacts e2e e2e-coverage #HELP Run e2e test suite on local kind cluster
154154

155155
.PHONY: extension-developer-e2e
156156
extension-developer-e2e: KIND_CLUSTER_NAME := operator-controller-ext-dev-e2e #EXHELP Run extension-developer e2e on local kind cluster

cmd/manager/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ func main() {
8989
flag.StringVar(&cachePath, "cache-path", "/var/cache", "The local directory path used for filesystem based caching")
9090
flag.BoolVar(&operatorControllerVersion, "version", false, "Prints operator-controller version information")
9191
flag.StringVar(&systemNamespace, "system-namespace", "", "Configures the namespace that gets used to deploy system resources.")
92-
flag.StringVar(&unpackImage, "unpack-image", defaultUnpackImage, "Configures the container image that gets used to unpack Bundle contents.")
92+
flag.StringVar(&unpackImage, "unpack-image", defaultUnpackImage, "Configures the container image that gets used to unpack Bundle contents (deprecated).")
9393
flag.StringVar(&provisionerStorageDirectory, "provisioner-storage-dir", storage.DefaultBundleCacheDir, "The directory that is used to store bundle contents.")
9494
opts := zap.Options{
9595
Development: true,
@@ -169,7 +169,8 @@ func main() {
169169
os.Exit(1)
170170
}
171171

172-
unpacker, err := source.NewDefaultUnpacker(mgr, systemNamespace, unpackImage, (*x509.CertPool)(nil))
172+
setupLog.Info("NewDefaultUnpacker", "namespace", systemNamespace, "cacheDir", cachePath)
173+
unpacker, err := source.NewDefaultUnpacker(mgr, systemNamespace, cachePath, (*x509.CertPool)(nil))
173174
if err != nil {
174175
setupLog.Error(err, "unable to create unpacker")
175176
os.Exit(1)

internal/controllers/clusterextension_controller.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ func (r *ClusterExtensionReconciler) handleResolutionErrors(ext *ocv1alpha1.Clus
229229
*/
230230
//nolint:unparam
231231
func (r *ClusterExtensionReconciler) reconcile(ctx context.Context, ext *ocv1alpha1.ClusterExtension) (ctrl.Result, error) {
232+
l := log.FromContext(ctx).WithName("reconcile")
232233
// run resolution
233234
bundle, err := r.resolve(ctx, *ext)
234235
if err != nil {
@@ -261,6 +262,9 @@ func (r *ClusterExtensionReconciler) reconcile(ctx context.Context, ext *ocv1alp
261262
bd := r.generateBundleDeploymentForUnpack(bundle.Image, ext)
262263
unpackResult, err := r.Unpacker.Unpack(ctx, bd)
263264
if err != nil {
265+
l.Info(fmt.Sprintf("bundle %+v", bundle))
266+
l.Info(fmt.Sprintf("bd: %+v", bd))
267+
l.Info(fmt.Sprintf("Unpack error: %v", err))
264268
return ctrl.Result{}, updateStatusUnpackFailing(&ext.Status, err)
265269
}
266270

@@ -580,7 +584,8 @@ func (r *ClusterExtensionReconciler) generateBundleDeploymentForUnpack(bundlePat
580584
Source: rukpakv1alpha2.BundleSource{
581585
Type: rukpakv1alpha2.SourceTypeImage,
582586
Image: &rukpakv1alpha2.ImageSource{
583-
Ref: bundlePath,
587+
Ref: bundlePath,
588+
InsecureSkipTLSVerify: true,
584589
},
585590
},
586591
},

testdata/catalogs/test-catalog/catalog.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ entries:
2424
schema: olm.bundle
2525
name: prometheus-operator.1.0.0
2626
package: prometheus
27-
image: localhost/testdata/bundles/registry-v1/prometheus-operator:v1.0.0
27+
image: docker-registry.operator-controller-e2e.svc.cluster.local:5000/bundles/prometheus-operator:v1.0.0
2828
properties:
2929
- type: olm.package
3030
value:
@@ -34,7 +34,7 @@ properties:
3434
schema: olm.bundle
3535
name: prometheus-operator.1.0.1
3636
package: prometheus
37-
image: localhost/testdata/bundles/registry-v1/prometheus-operator:v1.0.1
37+
image: docker-registry.operator-controller-e2e.svc.cluster.local:5000/bundles/prometheus-operator:v1.0.1
3838
properties:
3939
- type: olm.package
4040
value:
@@ -44,7 +44,7 @@ properties:
4444
schema: olm.bundle
4545
name: prometheus-operator.1.2.0
4646
package: prometheus
47-
image: localhost/testdata/bundles/registry-v1/prometheus-operator:v1.2.0
47+
image: docker-registry.operator-controller-e2e.svc.cluster.local:5000/bundles/prometheus-operator:v1.2.0
4848
properties:
4949
- type: olm.package
5050
value:
@@ -54,7 +54,7 @@ properties:
5454
schema: olm.bundle
5555
name: prometheus-operator.2.0.0
5656
package: prometheus
57-
image: localhost/testdata/bundles/registry-v1/prometheus-operator:v2.0.0
57+
image: docker-registry.operator-controller-e2e.svc.cluster.local:5000/bundles/prometheus-operator:v2.0.0
5858
properties:
5959
- type: olm.package
6060
value:
@@ -74,7 +74,7 @@ entries:
7474
schema: olm.bundle
7575
name: package-with-webhooks.1.0.0
7676
package: package-with-webhooks
77-
image: localhost/testdata/bundles/registry-v1/package-with-webhooks:v1.0.0
77+
image: docker-registry.operator-controller-e2e.svc.cluster.local:5000/bundles/package-with-webhooks:v1.0.0
7878
properties:
7979
- type: olm.package
8080
value:

0 commit comments

Comments
 (0)