Skip to content

Commit

Permalink
fix: k8s static deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
josedonizetti committed Nov 1, 2023
1 parent d06a08d commit 708cf94
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 86 deletions.
4 changes: 1 addition & 3 deletions deploy/generate-k8s-static.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
# TODO: move this to k8s docker and makefile
helm template tracee ./helm/tracee/ > /tmp/tracee.yaml

cat ./helm/tracee/crds/tracee.aquasec.com_policies.yaml /tmp/tracee.yaml > kubernetes/tracee/tracee.yaml
helm template tracee ./helm/tracee/ > ./kubernetes/tracee/tracee.yaml
12 changes: 0 additions & 12 deletions deploy/helm/tracee/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,6 @@ spec:
readOnly: true
mountPath: /tracee/config.yaml
subPath: config.yaml
<<<<<<< HEAD
- name: tracee-policies
readOnly: true
mountPath: /tracee/policies
=======
{{- if .Values.signatures.config }}
- name: tracee-signatures
mountPath: /tracee/signatures/signatures.yaml
subPath: signatures.yaml
readOnly: true
{{- end }}
>>>>>>> 4432bdffb0 (feature: add CRD default policy)
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
1 change: 1 addition & 0 deletions deploy/kubernetes/tracee/tracee.aquasec.com_policies.yaml
71 changes: 0 additions & 71 deletions deploy/kubernetes/tracee/tracee.yaml
Original file line number Diff line number Diff line change
@@ -1,75 +1,4 @@
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
name: policies.tracee.aquasec.com
spec:
group: tracee.aquasec.com
names:
kind: Policy
listKind: PolicyList
plural: policies
singular: policy
scope: Cluster
versions:
- name: v1beta1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: tracee policy spec
properties:
defaultActions:
items:
type: string
type: array
rules:
items:
description: Rule is the structure of the rule in the policy file
properties:
actions:
items:
type: string
type: array
event:
type: string
filters:
items:
type: string
type: array
required:
- event
type: object
type: array
scope:
items:
type: string
type: array
required:
- rules
- scope
type: object
required:
- metadata
- spec
type: object
served: true
storage: true
---
# Source: tracee/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
Expand Down

0 comments on commit 708cf94

Please sign in to comment.