Skip to content

Commit

Permalink
Merge pull request kata-containers#5742 from fidencio/topic/merge-fro…
Browse files Browse the repository at this point in the history
…m-main-Aug-7th

CC | Merge from main to CCv0 -- Aug 7th, 2023
  • Loading branch information
fidencio authored Aug 7, 2023
2 parents 4fec2b5 + 72b42d4 commit 6ab2a91
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .ci/lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
# SPDX-License-Identifier: Apache-2.0
#

# Ensure GOPATH set
if command -v go > /dev/null; then
export GOPATH=${GOPATH:-$(go env GOPATH)}
else
# if go isn't installed, set default location for GOPATH
export GOPATH="${GOPATH:-$HOME/go}"
fi

export KATA_KSM_THROTTLER=${KATA_KSM_THROTTLER:-no}
export KATA_QEMU_DESTDIR=${KATA_QEMU_DESTDIR:-"/usr"}
export KATA_ETC_CONFIG_PATH="/etc/kata-containers/configuration.toml"
Expand Down Expand Up @@ -36,14 +44,6 @@ export KATA_NET_TIMEOUT=30

source /etc/os-release || source /usr/lib/os-release

# Ensure GOPATH set
if command -v go > /dev/null; then
export GOPATH=${GOPATH:-$(go env GOPATH)}
else
# if go isn't installed, set default location for GOPATH
export GOPATH="${GOPATH:-$HOME/go}"
fi

# Support Golang 1.16.x.
# By default in Golang >= 1.16 GO111MODULE is set to "on",
# some subprojects in this repo may not support "go modules",
Expand Down
9 changes: 9 additions & 0 deletions .ci/openshift-ci/smoke/http-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,13 @@ spec:
- containerPort: 8080
command: ["python3"]
args: [ "-m", "http.server", "8080"]
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
runtimeClassName: kata-qemu
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0-alpha3
3.2.0-rc0
9 changes: 9 additions & 0 deletions kata-webhook/deploy/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ spec:
requests:
cpu: "100m"
memory: "250Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
volumes:
- name: webhook-certs
secret:
Expand Down
9 changes: 9 additions & 0 deletions kata-webhook/webhook-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ check_working() {
image: quay.io/prometheus/busybox:latest
command: ["echo", "Hello Webhook"]
imagePullPolicy: IfNotPresent
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 1000
seccompProfile:
type: RuntimeDefault
EOF
local class_name=$(kubectl get -n ${WEBHOOK_NS} \
-o jsonpath='{.spec.runtimeClassName}' pod/${hello_pod})
Expand Down

0 comments on commit 6ab2a91

Please sign in to comment.