-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
blockedkind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Description
Bug
When I create a Component's custom resource, the component is well created and the MetaData well defined (Kind, ApiVersion)
oc get cp/fruit-client -o yaml
apiVersion: component.k8s.io/v1alpha1
kind: Component
metadata:
name: fruit-client
namespace: my-spring-app
spec:
deployment: innerloop
exposeService: true
runtime: springboot
version: 1.5.16
but when the reconcile's function of the controller fetch the Component, then the Kind, ApiVersion fields are empty
What is the root cause of this issue ?
Environment
okd : 3.11
operator-sdk : v0.1.1+git
Project
Code of the API : https://github.com/snowdrop/component-operator/tree/operator-0.1.1/pkg/apis
Code of the controller : https://github.com/snowdrop/component-operator/blob/operator-0.1.1/pkg/controller/component/handler.go#L94
Metadata
Metadata
Assignees
Labels
blockedkind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.Denotes an issue or PR that has aged beyond stale and will be auto-closed.
