You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2018/09/11 13:54:53 UTC
[camel-k] branch master updated (3a8be01 -> 2c0b6bf)
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git.
from 3a8be01 Changed log message in Sample.java in order to really rocks!
new 45c7e9f Add label to operator service
new 2c0b6bf Add uninstall command
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
README.md | 8 ++++++++
deploy/operator-service.yaml | 19 +++++++++++++++++++
deploy/resources.go | 24 +++++++++++++++++++++++-
pkg/install/operator.go | 1 +
4 files changed, 51 insertions(+), 1 deletion(-)
create mode 100644 deploy/operator-service.yaml
[camel-k] 01/02: Add label to operator service
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 45c7e9feba2bc1068464be43ad26ec89b49646f5
Author: Dmitry Volodin <dm...@gmail.com>
AuthorDate: Tue Sep 11 14:31:38 2018 +0300
Add label to operator service
---
deploy/operator-service.yaml | 19 +++++++++++++++++++
deploy/resources.go | 24 +++++++++++++++++++++++-
pkg/install/operator.go | 1 +
3 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/deploy/operator-service.yaml b/deploy/operator-service.yaml
new file mode 100644
index 0000000..29a623b
--- /dev/null
+++ b/deploy/operator-service.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ name: camel-k-operator
+ app: "camel-k"
+ name: camel-k-operator
+spec:
+ ports:
+ - name: metrics
+ port: 60000
+ protocol: TCP
+ targetPort: metrics
+ selector:
+ name: camel-k-operator
+ sessionAffinity: None
+ type: ClusterIP
+status:
+ loadBalancer: {}
diff --git a/deploy/resources.go b/deploy/resources.go
index 9f21fcd..e1b1bbb 100644
--- a/deploy/resources.go
+++ b/deploy/resources.go
@@ -86,7 +86,6 @@ spec:
metadata:
labels:
name: camel-k-operator
- app: "camel-k"
spec:
serviceAccountName: camel-k-operator
containers:
@@ -312,6 +311,29 @@ metadata:
app: "camel-k"
`
+ Resources["operator-service.yaml"] =
+ `
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ name: camel-k-operator
+ app: "camel-k"
+ name: camel-k-operator
+spec:
+ ports:
+ - name: metrics
+ port: 60000
+ protocol: TCP
+ targetPort: metrics
+ selector:
+ name: camel-k-operator
+ sessionAffinity: None
+ type: ClusterIP
+status:
+ loadBalancer: {}
+
+`
Resources["operator.yaml"] =
`
apiVersion: apps/v1
diff --git a/pkg/install/operator.go b/pkg/install/operator.go
index a4d98d1..cea7a24 100644
--- a/pkg/install/operator.go
+++ b/pkg/install/operator.go
@@ -31,6 +31,7 @@ func Operator(namespace string) error {
"operator-role-openshift.yaml", // TODO distinguish between Openshift and Kubernetes
"operator-role-binding.yaml",
"operator-deployment.yaml",
+ "operator-service.yaml",
)
}
[camel-k] 02/02: Add uninstall command
Posted by nf...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit 2c0b6bf362671d97f2e3ddf874e1f2a4f792f805
Author: Dmitry Volodin <dm...@gmail.com>
AuthorDate: Tue Sep 11 14:39:18 2018 +0300
Add uninstall command
---
README.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/README.md b/README.md
index d996909..43c0db8 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,14 @@ You can check the status of all integrations by executing the following command:
kamel get
```
+### Uninstalling Camel K
+
+If requires to uninstall Camel K from the OpenShift or Kubernetes, it's nessesary to run following command using "oc" or "kubectl" tool:
+
+```
+delete all,pvc,configmap,rolebindings,clusterrolebindings,secrets,sa,roles,clusterroles,crd -l 'app=camel-k'
+```
+
## Building
In order to build the project follow these steps: