From 3d0fbff7a7dcb531ac49ff576cfd4bec5100c575 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 15 Apr 2021 20:41:18 +0200 Subject: [PATCH] remove botkube --- _apps/botkube.yaml | 23 ----- botkube/README.md | 26 ----- botkube/configmap.yaml | 223 ---------------------------------------- botkube/deployment.yaml | 49 --------- botkube/rbac.yaml | 33 ------ botkube/secret.yaml | 18 ---- 6 files changed, 372 deletions(-) delete mode 100644 _apps/botkube.yaml delete mode 100644 botkube/README.md delete mode 100644 botkube/configmap.yaml delete mode 100644 botkube/deployment.yaml delete mode 100644 botkube/rbac.yaml delete mode 100644 botkube/secret.yaml diff --git a/_apps/botkube.yaml b/_apps/botkube.yaml deleted file mode 100644 index fc1d99f..0000000 --- a/_apps/botkube.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: botkube - namespace: argocd - finalizers: - - resources-finalizer.argocd.argoproj.io -spec: - destination: - namespace: botkube - server: https://kubernetes.default.svc - project: apps - source: - path: botkube - repoURL: https://git.tbrnt.ch/tobru/gitops-tbrnt.git - targetRevision: HEAD - directory: - recurse: true ---- -apiVersion: v1 -kind: Namespace -metadata: - name: botkube diff --git a/botkube/README.md b/botkube/README.md deleted file mode 100644 index dad59fb..0000000 --- a/botkube/README.md +++ /dev/null @@ -1,26 +0,0 @@ -# BotKube - -## Rocket.Chat Script - -``` -class Script { - process_incoming_request({ - request - }) { - console.log(request.content); - - return { - content: { - username: "BotKube", - text: request.content.summary - } - }; - - return { - error: { - success: false - } - }; - } -} -``` diff --git a/botkube/configmap.yaml b/botkube/configmap.yaml deleted file mode 100644 index 8cb1aec..0000000 --- a/botkube/configmap.yaml +++ /dev/null @@ -1,223 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: botkube-configmap - namespace: botkube - labels: - app: botkube -data: - resource_config.yaml: | - ## Resources you want to watch - resources: - - name: v1/pods # Name of the resource. Resource name must be in group/version/resource (G/V/R) format - # resource name should be plural (e.g apps/v1/deployments, v1/pods) - namespaces: # List of namespaces, "all" will watch all the namespaces - include: - - all - ignore: # List of namespaces to be ignored (omitempty), used only with include: all - - monitoring # example : include [all], ignore [x,y,z] - events: # List of lifecycle events you want to receive, e.g create, update, delete, error OR all - - create - - delete - - error - - name: v1/services - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: apps/v1/deployments - namespaces: - include: - - all - ignore: - - - events: - - create - - update - - delete - - error - updateSetting: - includeDiff: true - fields: - - spec.template.spec.containers[*].image - - status.availableReplicas - - name: apps/v1/statefulsets - namespaces: - include: - - all - ignore: - - - events: - - create - - update - - delete - - error - updateSetting: - includeDiff: true - fields: - - spec.template.spec.containers[*].image - - status.readyReplicas - - name: networking.k8s.io/v1beta1/ingresses - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: v1/nodes - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: v1/namespaces - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: v1/persistentvolumes - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: v1/persistentvolumeclaims - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: v1/configmaps - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: apps/v1/daemonsets - namespaces: - include: - - all - ignore: - - - events: - - create - - update - - delete - - error - updateSetting: - includeDiff: true - fields: - - spec.template.spec.containers[*].image - - status.numberReady - - name: batch/v1/jobs - namespaces: - include: - - all - ignore: - - monitoring - events: - - create - - update - - delete - - error - updateSetting: - includeDiff: true - fields: - - spec.template.spec.containers[*].image - - status.conditions[*].type - - name: rbac.authorization.k8s.io/v1/roles - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: rbac.authorization.k8s.io/v1/rolebindings - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: rbac.authorization.k8s.io/v1/clusterrolebindings - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - name: rbac.authorization.k8s.io/v1/clusterroles - namespaces: - include: - - all - ignore: - - - events: - - create - - delete - - error - - # Check true if you want to receive recommendations - # about the best practices for the created resource - recommendations: true - - # Setting to support multiple clusters - settings: - # Cluster name to differentiate incoming messages - clustername: knurrli - # Kubectl executor configs - kubectl: - # Set true to enable kubectl commands execution - enabled: false - commands: - # method which are allowed - verbs: ["api-resources", "api-versions", "cluster-info", "describe", "diff", "explain", "get", "logs", "top", "auth"] - # resource configuration which is allowed - resources: ["deployments", "pods" , "namespaces", "daemonsets", "statefulsets", "storageclasses", "nodes"] - # set Namespace to execute botkube kubectl commands by default - defaultNamespace: default - # Set true to enable commands execution from configured channel only - restrictAccess: false - # Set true to enable config watcher - configwatcher: true - # Set false to disable upgrade notification - upgradeNotifier: true - diff --git a/botkube/deployment.yaml b/botkube/deployment.yaml deleted file mode 100644 index 630c183..0000000 --- a/botkube/deployment.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: botkube - namespace: botkube - labels: - component: controller - app: botkube -spec: - replicas: 1 - selector: - matchLabels: - component: controller - app: botkube - template: - metadata: - labels: - component: controller - app: botkube - spec: - serviceAccountName: botkube-sa - containers: - - name: botkube - image: "infracloudio/botkube:v0.12.0" - imagePullPolicy: Always - volumeMounts: - - name: config-volume - mountPath: "/config" - env: - - name: CONFIG_PATH - value: "/config/" - # set one of the log levels- info, warn, debug, error, fatal, panic - - name: LOG_LEVEL - value: "info" - # set BotKube release version - - name: BOTKUBE_VERSION - value: v0.11.0 - volumes: - - name: config-volume - projected: - sources: - - configMap: - name: botkube-configmap - - secret: - name: botkube-communication-secret - # run as non privilaged user - securityContext: - runAsUser: 101 - runAsGroup: 101 diff --git a/botkube/rbac.yaml b/botkube/rbac.yaml deleted file mode 100644 index 34a7a57..0000000 --- a/botkube/rbac.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: botkube-sa - namespace: botkube - labels: - app: botkube ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: botkube-clusterrole - labels: - app: botkube -rules: - - apiGroups: ["*"] - resources: ["*"] - verbs: ["get", "watch", "list"] ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: botkube-clusterrolebinding - labels: - app: botkube -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: botkube-clusterrole -subjects: -- kind: ServiceAccount - name: botkube-sa - namespace: botkube \ No newline at end of file diff --git a/botkube/secret.yaml b/botkube/secret.yaml deleted file mode 100644 index 4c49d99..0000000 --- a/botkube/secret.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: bitnami.com/v1alpha1 -kind: SealedSecret -metadata: - creationTimestamp: null - name: botkube-communication-secret - namespace: botkube -spec: - encryptedData: - comm_config.yaml: AgCgptVQydxln9bq8iGGiaeKBjGf4xjtdeUE26K8ADti3KIcYxY4pyFvSfKWV58QCpCA8TSbfTWgi5GOeNiPoqVzWvQHppEVzKOaMMGS5vtj8wnhVdfSkyAhOak4l8BssvhQUaLjcSOcmoC/WO83+po9lKUdLIeX3VXh8R9CNWvgbxHVgNVvp3VMCeGwCGiMM57Db7byiNhQBAKA5QrbRRytfXqxQ5aT6aVYVZXbVWn2LgeF9YnJypF9sMwwzPqBz4wnEmbkq5t+Zx1Gsjg6vPuIMoZ0p+vwcHDZ80QF8rYPXL+Xm/JceJpM7sgaq1nTeNNxBYiu5iJ21HBAIFQL5mYEKc2KhpYofDIL6Rrb2Zzd6uvtEdtBY4vbORbLJj52/5mC6uEH6dWs/sa+IQs8MHuaF4XlVtc2hwzt+Wph3PTOy/aCN3UDplxEahem72eFCq1rG2Q9qLLPe7L54uEjiBPn1Synf9JBWCcYbfLSTvRFLsrWl6Ic+/uc9jzAwT4eZgV7n31/Cp9DfzHdBTtArR49sP9/l039U7WR4eYRnlh/njAkINM2+DkEw7xUzJDv4/lN7lxY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xvsrszuZ2CBwd4EMkrPB0e1B1agTkjIDeo9+ryC+EIa73tyUIuKJUbkKSmQsovN44xOM9Ah/Jjr0dnYoJxBNQFQhDiOWT+2LIlYQQIcL9SOoGRR6TFifNtaT8K069ys5+OfdhaTVXivBOn+K8TLB+8AICLJM7tZIiDFPkRUU2ka5q8s17eCB+F/25Ahc90rScRM4mGE050HljkSdCSkOteH8OzfKxW2r1JwRk/1qLMirnZ7j6yV3x6eicQkEFGyezPEVagcge8iytCsZ76QP++M+Odnw1WIyVLLYcH3y/D7I/ssoDKZGAtmWRZGHQHEq2Ha5Ms9+CM0m6QO+piaMSkQiGJnqgYHcoaXTuTAyea8ZReLqIu/3GBJgsKYsWulW/zFd9MWQEIR52tDyqn5pChRmf49Ht04TyFyKXRUmfncaYiCAqa4WMbud7E+rb9V6poe//xDgMJHoVdeZnbhontM3OuqF/fp3GlgzPIOtBxbxZcBAfMIhlHyf3GFjJvwDrcOCHZbNDGgZXDFCgcVMTsBb6/4HSIiigdp4zLF6pOyzHpAxOpYg48UszUhyeH///99VnGVNExNY57ggdeQbFmZay2lH/xGEmUe94MjAAMWofhAs9X+O0NpoZd7+LX03vx9bYXZ5encXRkl9VbUP8oX9Wz2zb3aHsubXjRR+BGvDgnFKfv0SHwhBvIAWU3kbtec7jxqAVCzm4wFUsWaytrmtd6MLCafLws0idG8KV4Oy4z6Qr9AlHUZr9KQV7a1GjyYoA6imDLNDBmwTknyV5U2Rtgs65tpRTOaaz1lMHav1GVdAGT0b/NyT/4RoBB0tSPEely7mZVQpPpk+QUU7ENiop4JHRn/U027EXnFsRw7UQjBecGLBYtgPuuYPzBPS9E+nd+bToIB3Ax3Gfo4T2cfM4h6oo1CJ65+a2ic4OqaMHyR5u8KE1k9atxs584KlO7FhYrNqgtEQI4zPGUk7LsBaTw== - template: - metadata: - creationTimestamp: null - labels: - app: botkube - name: botkube-communication-secret - namespace: botkube - type: Opaque -