Skip to content

Commit 2291981

Browse files
Merge pull request #887 from banzaicloud/openshift_support
Openshift support 4.11+ [release-1.16]
2 parents 99e2adc + 1f02ad7 commit 2291981

File tree

6 files changed

+27
-10
lines changed

6 files changed

+27
-10
lines changed

Dockerfile

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
ARG GID=1000
2+
ARG UID=1000
3+
14
# Build the manager binary
25
FROM golang:1.18 as builder
6+
ARG GID
7+
ARG UID
8+
9+
# Create user and group
10+
RUN groupadd -g ${GID} appgroup && \
11+
useradd -u ${UID} --gid appgroup appuser
312

413
WORKDIR /workspace
514
# Copy the Go Modules manifests
@@ -29,8 +38,14 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 make build
2938
# Use distroless as minimal base image to package the manager binary
3039
# Refer to https://github.com/GoogleContainerTools/distroless for more details
3140
FROM gcr.io/distroless/static:nonroot
41+
ARG GID
42+
ARG UID
43+
3244
WORKDIR /
3345
COPY --from=builder /workspace/bin/manager /manager
34-
USER nonroot:nonroot
46+
47+
COPY --from=builder /etc/passwd /etc/passwd
48+
COPY --from=builder /etc/group /etc/group
49+
USER ${UID}:${GID}
3550

3651
ENTRYPOINT ["/manager"]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ EMBEDDED_CHART_REL_TAG ?= deploy/charts/v${CHART_VERSION}
1717
HELM_CHART_REL_TAG ?= chart/istio-operator/${CHART_VERSION}
1818

1919
GOLANGCI_VERSION = 1.45.2
20-
LICENSEI_VERSION = 0.4.0
20+
LICENSEI_VERSION = 0.7.0
2121
ENVTEST_K8S_VERSION = 1.24.2
2222
KUSTOMIZE_VERSION = 4.1.2
2323
ISTIO_VERSION = 1.16.1

deploy/charts/istio-operator/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ icon: https://istio.io/latest/img/istio-whitelogo-bluebackground-framed.svg
1111
# Based on support status of Istio releases: https://istio.io/latest/docs/releases/supported-releases/#support-status-of-istio-releases
1212
kubeVersion: ">= 1.22.0-0 < 1.26.0-0"
1313

14-
version: 2.1.0
15-
appVersion: "v2.16.0"
14+
version: 2.1.1
15+
appVersion: "v2.16.1"

deploy/charts/istio-operator/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The following table lists the configurable parameters of the Banzaicloud Istio O
3333
| Parameter | Description | Default |
3434
|------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|
3535
| `image.repository` | Operator container image repository | `ghcr.io/banzaicloud/istio-operator` |
36-
| `image.tag` | Operator container image tag | `v2.16.0` |
36+
| `image.tag` | Operator container image tag | `v2.16.1` |
3737
| `image.pullPolicy` | Operator container image pull policy | `IfNotPresent` |
3838
| `replicaCount` | Operator deployment replica count | `1` |
3939
| `extraArgs` | Operator deployment arguments | `[]` |

deploy/charts/istio-operator/templates/operator-deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ spec:
4343
ports:
4444
- containerPort: 8443
4545
name: https
46+
securityContext:
47+
{{- toYaml .Values.securityContext | nindent 10 }}
4648
{{- end }}
4749
- command:
4850
- /manager

deploy/charts/istio-operator/values.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
image:
22
repository: ghcr.io/banzaicloud/istio-operator
3-
tag: "v2.16.0"
3+
tag: "v2.16.1"
44
pullPolicy: IfNotPresent
55
replicaCount: 1
66
extraArgs: []
@@ -11,11 +11,11 @@ resources:
1111
podAnnotations:
1212
sidecar.istio.io/inject: "false"
1313
podSecurityContext:
14-
fsGroup: 1337
15-
securityContext:
16-
runAsUser: 1337
17-
runAsGroup: 1337
1814
runAsNonRoot: true
15+
seccompProfile:
16+
type: RuntimeDefault
17+
securityContext:
18+
allowPrivilegeEscalation: false
1919
capabilities:
2020
drop:
2121
- ALL

0 commit comments

Comments
 (0)