apiVersion: apiextensions.k8s.io/v1beta1kind: CustomResourceDefinitionmetadata:spec: group: component.k8s.io version: v1alpha1 names: kind: Component listKind: ComponentList plural: components singular: component shortNames: - cp # categories is a list of grouped resources the custom resource belongs to. categories: - all scope: Namespaced additionalPrinterColumns: - name: Runtime type: string description: "The runtime's technology/framework such as : Spring Boot, Eclipse Vert.x, ...." JSONPath: .spec.runtime - name: Version type: string description: "The version of the runtime" JSONPath: .spec.version - name: Service type: string description: "The service created from the catalog" JSONPath: .spec.services[0].name - name: Link Type type: string description: "The relation which exists between a component and a service, ..." JSONPath: .spec.link.kindkubectl apply -f component-link.yml && kubectl get cpNAME RUNTIME VERSION SERVICE LINK TYPE AGEmy-spring-boot-link Secret 0s
- name: Link To type: string JSONPath: "{.spec.link.kind}{.spec.link.targetcomponentname}"
The CustomResourceDefinition "components.component.k8s.io" is invalid: spec.columns[4].path: Invalid value: "'{.spec.link.kind}{.spec.link.targetcomponentname}'": must be a simple json path starting with .--
You received this message because you are subscribed to the Google Groups "Kubernetes developer/contributor discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kubernetes-de...@googlegroups.com.
To post to this group, send email to kuberne...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kubernetes-dev/bdb07d3d-5dcc-4572-93ba-61fd026a012a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
type Link struct {
Name string
TargetComponentName string
Kind string
Ref string
}
targetcomponentname: runtime-a
kind: Secret
ref: my-postgresql-dbNAME RUNTIME VERSION SERVICE PLAN LINK TO
runtime-a spring-boot 1.5.16
service-a dh-postgresql-apb/dev
link-a 'secret/my-postgresql-db' usedBy 'runtime-a'