🔥 Delete the recently added KMM related resources

This commit is contained in:
M. Mert Yildiran 2023-08-14 17:43:44 +03:00
parent 742a56272b
commit 78c1c02fe6
No known key found for this signature in database
GPG Key ID: DA5D6DCBB758A461
6 changed files with 0 additions and 3509 deletions

View File

@ -100,10 +100,6 @@ type ReleaseConfig struct {
Namespace string `yaml:"namespace" json:"namespace" default:"default"`
}
type KMMConfig struct {
Enabled bool `yaml:"enabled" json:"enabled" default:"true"`
}
type TapConfig struct {
Docker DockerConfig `yaml:"docker" json:"docker"`
Proxy ProxyConfig `yaml:"proxy" json:"proxy"`
@ -125,7 +121,6 @@ type TapConfig struct {
NodeSelectorTerms []v1.NodeSelectorTerm `yaml:"nodeselectorterms" json:"nodeselectorterms" default:"[]"`
Auth AuthConfig `yaml:"auth" json:"auth"`
Ingress IngressConfig `yaml:"ingress" json:"ingress"`
KMM KMMConfig `yaml:"kmm" json:"kmm"`
IPv6 bool `yaml:"ipv6" json:"ipv6" default:"true"`
Debug bool `yaml:"debug" json:"debug" default:"false"`
}

View File

@ -24,9 +24,3 @@ sources:
type: application
version: "41.7"
icon: https://raw.githubusercontent.com/kubeshark/assets/master/logo/vector/logo.svg
dependencies:
- name: cert-manager
version: v1.11.0
repository: https://charts.jetstack.io
alias: cert-manager
condition: tap.kmm.enabled

View File

@ -1,28 +0,0 @@
{{ if and .Values.tap.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
apiVersion: kmm.sigs.x-k8s.io/v1beta1
kind: Module
metadata:
name: kubeshark-module-loader
spec:
moduleLoader:
container:
modprobe:
moduleName: pf_ring
dirName: /opt
imagePullPolicy: Always
kernelMappings:
- regexp: '^.+$'
containerImage: "kubeshark/module-loader:latest"
build:
dockerfileConfigMap:
name: kubeshark-module-loader-dockerfile
sign:
certSecret:
name: cert-secret
keySecret:
name: key-secret
filesToSign:
- /opt/lib/modules/5.10.0-23-amd64/pf_ring.ko
selector:
beta.kubernetes.io/arch: amd64
{{- end }}

View File

@ -1,44 +0,0 @@
{{ if and .Values.tap.kmm.enabled (.Capabilities.APIVersions.Has "kmm.sigs.x-k8s.io/v1beta1") }}
apiVersion: v1
kind: ConfigMap
metadata:
name: kubeshark-module-loader-dockerfile
namespace: {{ .Release.Namespace }}
labels:
{{- include "kubeshark.labels" . | nindent 4 }}
data:
dockerfile: |
### Builder image
ARG TARGETARCH=amd64
FROM ${TARGETARCH}/debian:bullseye AS builder
ARG KERNEL_VERSION
RUN apt-get update
RUN apt-get install -y -q \
curl \
build-essential \
linux-headers-${KERNEL_VERSION}
WORKDIR /work
RUN curl https://github.com/ntop/PF_RING/archive/refs/tags/8.4.0.tar.gz -Lo ./pfring.tar.xz && \
tar -xf pfring.tar.xz && \
mv ./PF_RING-* ./pfring
WORKDIR /work/pfring/kernel
ENV KERNELRELEASE=${KERNEL_VERSION}
RUN make
### The shipped image
ARG TARGETARCH=amd64
FROM ${TARGETARCH}/debian:bullseye
ARG KERNEL_VERSION
RUN apt-get update && apt-get install -y kmod
COPY --from=builder /work/pfring/kernel/pf_ring.ko /opt/lib/modules/${KERNEL_VERSION}/
RUN depmod -b /opt ${KERNEL_VERSION}
{{- end }}

File diff suppressed because it is too large Load Diff

View File

@ -35,8 +35,6 @@ tap:
host: ks.svc.cluster.local
tls: null
ipv6: true
kmm:
enabled: true
labels: {}
namespaces: []
nodeselectorterms: