nicolaferraro closed pull request #304: Display relevant custom columns
URL: https://github.com/apache/camel-k/pull/304
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/deploy/crd-integration-context.yaml
b/deploy/crd-integration-context.yaml
index fbbbf49d..f33ad811 100644
--- a/deploy/crd-integration-context.yaml
+++ b/deploy/crd-integration-context.yaml
@@ -6,6 +6,8 @@ metadata:
app: "camel-k"
spec:
group: camel.apache.org
+ scope: Namespaced
+ version: v1alpha1
names:
kind: IntegrationContext
listKind: IntegrationContextList
@@ -13,5 +15,8 @@ spec:
singular: integrationcontext
shortNames:
- ictx
- scope: Namespaced
- version: v1alpha1
+ additionalPrinterColumns:
+ - name: Phase
+ type: string
+ description: The IntegrationContext phase
+ JSONPath: .status.phase
diff --git a/deploy/crd-integration-platform.yaml
b/deploy/crd-integration-platform.yaml
index ccba19c2..cb41fe48 100644
--- a/deploy/crd-integration-platform.yaml
+++ b/deploy/crd-integration-platform.yaml
@@ -6,6 +6,8 @@ metadata:
app: "camel-k"
spec:
group: camel.apache.org
+ scope: Namespaced
+ version: v1alpha1
names:
kind: IntegrationPlatform
listKind: IntegrationPlatformList
@@ -13,5 +15,8 @@ spec:
singular: integrationplatform
shortNames:
- ip
- scope: Namespaced
- version: v1alpha1
+ additionalPrinterColumns:
+ - name: Phase
+ type: string
+ description: The IntegrationPlatform phase
+ JSONPath: .status.phase
diff --git a/deploy/crd-integration.yaml b/deploy/crd-integration.yaml
index 115d9953..af20b4c5 100644
--- a/deploy/crd-integration.yaml
+++ b/deploy/crd-integration.yaml
@@ -6,6 +6,8 @@ metadata:
app: "camel-k"
spec:
group: camel.apache.org
+ scope: Namespaced
+ version: v1alpha1
names:
kind: Integration
listKind: IntegrationList
@@ -13,5 +15,8 @@ spec:
singular: integration
shortNames:
- it
- scope: Namespaced
- version: v1alpha1
+ additionalPrinterColumns:
+ - name: Phase
+ type: string
+ description: The Integration phase
+ JSONPath: .status.phase
diff --git a/deploy/resources.go b/deploy/resources.go
index f1ab3815..9f5ff45e 100644
--- a/deploy/resources.go
+++ b/deploy/resources.go
@@ -2193,6 +2193,8 @@ metadata:
app: "camel-k"
spec:
group: camel.apache.org
+ scope: Namespaced
+ version: v1alpha1
names:
kind: IntegrationContext
listKind: IntegrationContextList
@@ -2200,8 +2202,11 @@ spec:
singular: integrationcontext
shortNames:
- ictx
- scope: Namespaced
- version: v1alpha1
+ additionalPrinterColumns:
+ - name: Phase
+ type: string
+ description: The IntegrationContext phase
+ JSONPath: .status.phase
`
Resources["crd-integration-platform.yaml"] =
@@ -2214,6 +2219,8 @@ metadata:
app: "camel-k"
spec:
group: camel.apache.org
+ scope: Namespaced
+ version: v1alpha1
names:
kind: IntegrationPlatform
listKind: IntegrationPlatformList
@@ -2221,8 +2228,11 @@ spec:
singular: integrationplatform
shortNames:
- ip
- scope: Namespaced
- version: v1alpha1
+ additionalPrinterColumns:
+ - name: Phase
+ type: string
+ description: The IntegrationPlatform phase
+ JSONPath: .status.phase
`
Resources["crd-integration.yaml"] =
@@ -2235,6 +2245,8 @@ metadata:
app: "camel-k"
spec:
group: camel.apache.org
+ scope: Namespaced
+ version: v1alpha1
names:
kind: Integration
listKind: IntegrationList
@@ -2242,8 +2254,11 @@ spec:
singular: integration
shortNames:
- it
- scope: Namespaced
- version: v1alpha1
+ additionalPrinterColumns:
+ - name: Phase
+ type: string
+ description: The Integration phase
+ JSONPath: .status.phase
`
Resources["cr-example.yaml"] =
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services