-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: generate seccomp profile within pipeline #1325
base: main
Are you sure you want to change the base?
Changes from 1 commit
62f2e5f
d4faf39
89e01ab
7ba3453
c4adc10
a362cf7
fb9be0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# replacing capsule with harpoon Docker image, | ||
# (importing only the capsule binary), | ||
# so we can trace syscalls. | ||
FROM alegrey91/harpoon:v0.9.4 | ||
WORKDIR / | ||
COPY --from=localhost/capsule:latest /manager . | ||
|
||
ENTRYPOINT ["/harpoon", \ | ||
"capture", \ | ||
"-f", "main.main", \ | ||
"-E", "NAMESPACE=capsule-system", \ | ||
"-i", "2", \ | ||
"-c", "-e", \ | ||
"-S", "-D", "/tmp/results/", \ | ||
"--", "/manager"] |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,15 @@ spec: | |
hostNetwork: true | ||
dnsPolicy: ClusterFirstWithHostNet | ||
{{- end }} | ||
{{- if .Values.manager.hostPID }} | ||
hostPID: {{ .Values.manager.hostPID }} | ||
{{- else }} | ||
hostPID: false | ||
{{- end }} | ||
{{- if eq .Values.priorityClassName "" }} | ||
{{- else }} | ||
alegrey91 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
priorityClassName: {{ .Values.priorityClassName }} | ||
{{- end }} | ||
{{- with .Values.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml . | nindent 8 }} | ||
|
@@ -59,13 +67,16 @@ spec: | |
secret: | ||
defaultMode: 420 | ||
secretName: {{ include "capsule.secretTlsName" . }} | ||
{{- if .Values.manager.volumes }} | ||
{{- toYaml .Values.manager.volumes | nindent 8 }} | ||
{{- end }} | ||
containers: | ||
- name: manager | ||
args: | ||
- --webhook-port={{ .Values.manager.webhookPort }} | ||
- --enable-leader-election | ||
- --zap-log-level={{ default 4 .Values.manager.options.logLevel }} | ||
- --configuration-name={{ .Values.manager.options.capsuleConfiguration }} | ||
- --webhook-port={{ .Values.manager.webhookPort }} | ||
- --enable-leader-election | ||
- --zap-log-level={{ default 4 .Values.manager.options.logLevel }} | ||
- --configuration-name={{ .Values.manager.options.capsuleConfiguration }} | ||
image: {{ include "capsule.managerFullyQualifiedDockerImage" . }} | ||
imagePullPolicy: {{ .Values.manager.image.pullPolicy }} | ||
env: | ||
|
@@ -85,12 +96,19 @@ spec: | |
readinessProbe: | ||
{{- toYaml .Values.manager.readinessProbe | nindent 12}} | ||
volumeMounts: | ||
- mountPath: /tmp/k8s-webhook-server/serving-certs | ||
name: cert | ||
readOnly: true | ||
- mountPath: /tmp/k8s-webhook-server/serving-certs | ||
name: cert | ||
readOnly: true | ||
{{- if .Values.manager.volumeMounts }} | ||
{{- toYaml .Values.manager.volumeMounts | nindent 12 }} | ||
{{- end }} | ||
resources: | ||
{{- toYaml .Values.manager.resources | nindent 12 }} | ||
securityContext: | ||
{{- if .Values.manager.securityContext }} | ||
{{- toYaml .Values.manager.securityContext | nindent 12 }} | ||
{{- else }} | ||
{{- toYaml .Values.securityContext | nindent 12 }} | ||
{{- end }} | ||
Comment on lines
+105
to
+109
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which ARe you talking about this here:
This specifcally There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, I meant the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Jobs take sec from There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, actually the reason why I created
This is a combination of both ( |
||
{{- end }} | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big fan of this, we should try to install binaries into the project's bin/ folder, i am assuming this is going to install harpoon at system level. Since it,s go, can't we make a target like the other binary dependencies:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @oliverbaehler, unfortunately I don't think we can currently use
go install
withharpoon
.The project has a complex toolchain that requires a separated compilation of the ebpf object.
About the installation directory, I think this is fine, I can set the location through the
install
script.