deploy tekton-operator failed
bjwswang opened this issue · 3 comments
bjwswang commented
failed to to deploy tekton
with ComponentPlan
apiVersion: core.kubebb.k8s.com.cn/v1alpha1
kind: ComponentPlan
metadata:
name: fabric-tekton
namespace: default
spec:
approved: true
name: fabric-tekton # similar to helm release name
version: 0.64.0
component:
name: kubebb.tekton-operator
namespace: kubebb-system
Error logs in kubebb/core
1.6883792816831622e+09 INFO Generate a new template Configmap {"controller": "componentplan", "controllerGroup": "core.kubebb.k8s.com.cn", "controllerKind": "ComponentPlan", "componentPlan": {"name":"fabric-tekton","namespace":"default"}, "namespace": "default", "name": "fabric-tekton", "reconcileID": "478d3820-f178-4a0a-9183-3ebffaab7222", "ConfigMap.Namespace": "default", "ConfigMap.Name": "manifest.fabric-tekton"}
1.6883792816832924e+09 ERROR Failed to get resources {"controller": "componentplan", "controllerGroup": "core.kubebb.k8s.com.cn", "controllerKind": "ComponentPlan", "componentPlan": {"name":"fabric-tekton","namespace":"default"}, "namespace": "default", "name": "fabric-tekton", "reconcileID": "478d3820-f178-4a0a-9183-3ebffaab7222", "error": "an empty namespace may not be set when a resource name is provided"}
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:121
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:320
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:273
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.12.2/pkg/internal/controller/controller.go:234
0xff-dev commented
Is it possible to fix the following error? MutateFn cannot mutate object name and/or object namespace
kind: ComponentPlan
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"core.kubebb.k8s.com.cn/v1alpha1","kind":"ComponentPlan","metadata":{"annotations":{},"name":"fabric-operator","namespace":"kubebb-system"},"spec":{"approved":true,"component":{"name":"fabric.fabric-operator","namespace":"kubebb-system"},"name":"fabric-operator","override":{"set":["namespace=kubebb-system"]},"version":"0.1.0"}}
creationTimestamp: "2023-07-04T15:30:09Z"
finalizers:
- core.kubebb.k8s.com.cn/finalizer
generation: 2
name: fabric-operator
namespace: kubebb-system
resourceVersion: "115351"
uid: 292881fe-eff9-4c9a-b863-6c65932c12ee
spec:
approved: true
component:
name: fabric.fabric-operator
namespace: kubebb-system
name: fabric-operator
override:
set:
- namespace=kubebb-system
repository:
name: fabric
namespace: kubebb-system
version: 0.1.0
status:
conditions:
- lastTransitionTime: "2023-07-04T15:30:09Z"
reason: ""
status: "True"
type: Approved
- lastTransitionTime: "2023-07-04T15:30:10Z"
message: MutateFn cannot mutate object name and/or object namespace
reason: InstallFailed
status: "False"
type: Installed
- lastTransitionTime: "2023-07-04T15:30:42Z"
reason: ""
status: "False"
type: Succeeded
0xff-dev commented
apiVersion: core.kubebb.k8s.com.cn/v1alpha1
kind: ComponentPlan
metadata:
name: fabric-operator
namespace: kubebb-system
spec:
approved: true
name: fabric-operator # similar to helm release name
version: 0.1.0
override:
set:
- namespace=kubebb-system
component:
name: fabric.fabric-operator
namespace: kubebb-system
bjwswang commented