Skip to content

Commit ec6e33c

Browse files
Merge branch 'develop' into cspl_2165_fix_sa_bugs
2 parents d752e10 + 5d2a9a7 commit ec6e33c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+224
-214
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ENV OPERATOR=/manager \
3030

3131
RUN yum -y install shadow-utils
3232
RUN useradd -ms /bin/bash nonroot -u 1001
33+
RUN yum update -y krb5-libs && yum clean all
3334
RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical
3435
RUN yum -y update-minimal --security --sec-severity=Moderate
3536
RUN yum -y update-minimal --security --sec-severity=Low
@@ -43,7 +44,7 @@ LABEL name="splunk" \
4344
description="The Splunk Operator for Kubernetes (SOK) makes it easy for Splunk Administrators to deploy and operate Enterprise deployments in a Kubernetes infrastructure. Packaged as a container, it uses the operator pattern to manage Splunk-specific custom resources, following best practices to manage all the underlying Kubernetes objects for you."
4445

4546
WORKDIR /
46-
RUN mkdir /licenses
47+
RUN mkdir /licenses
4748
RUN mkdir -p /tools/k8_probes
4849

4950
COPY --from=builder /workspace/manager .

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ bundle: manifests kustomize
216216
cd config/manager && $(KUSTOMIZE) edit set image controller=$(IMG)
217217
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle $(BUNDLE_GEN_FLAGS)
218218
operator-sdk bundle validate ./bundle
219+
operator-sdk bundle validate bundle --select-optional suite=operatorframework
219220
cp bundle/manifests/enterprise.splunk.com* helm-chart/splunk-operator/crds
220221

221222
.PHONY: bundle-build
@@ -319,6 +320,7 @@ run_clair_scan:
319320
generate-artifacts-namespace: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
320321
mkdir -p release-${VERSION}
321322
cp config/default/kustomization-namespace.yaml config/default/kustomization.yaml
323+
cp config/rbac/kustomization-namespace.yaml config/rbac/kustomization.yaml
322324
$(SED) "s/namespace: splunk-operator/namespace: ${NAMESPACE}/g" config/default/kustomization.yaml
323325
$(SED) "s|SPLUNK_ENTERPRISE_IMAGE|${SPLUNK_ENTERPRISE_IMAGE}|g" config/default/kustomization.yaml
324326
$(SED) "s/ClusterRole/Role/g" config/rbac/role.yaml
@@ -333,6 +335,7 @@ generate-artifacts-namespace: manifests kustomize ## Deploy controller to the K8
333335
generate-artifacts-cluster: manifests kustomize ## Deploy controller to the K8s cluster specified in ~/.kube/config.
334336
mkdir -p release-${VERSION}
335337
cp config/default/kustomization-cluster.yaml config/default/kustomization.yaml
338+
cp config/rbac/kustomization-cluster.yaml config/rbac/kustomization.yaml
336339
$(SED) "s/namespace: splunk-operator/namespace: ${NAMESPACE}/g" config/default/kustomization.yaml
337340
$(SED) "s|SPLUNK_ENTERPRISE_IMAGE|${SPLUNK_ENTERPRISE_IMAGE}|g" config/default/kustomization.yaml
338341
$(SED) "s/WATCH_NAMESPACE_VALUE/\"${WATCH_NAMESPACE}\"/g" config/default/kustomization.yaml

bundle/manifests/splunk-operator.clusterserviceversion.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,14 +800,14 @@ spec:
800800
fieldRef:
801801
fieldPath: metadata.annotations['olm.targetNamespaces']
802802
- name: RELATED_IMAGE_SPLUNK_ENTERPRISE
803-
value: splunk/splunk:9.0.2
803+
value: docker.io/splunk/splunk:9.0.2
804804
- name: OPERATOR_NAME
805805
value: splunk-operator
806806
- name: POD_NAME
807807
valueFrom:
808808
fieldRef:
809809
fieldPath: metadata.name
810-
image: splunk/splunk-operator:2.1.0
810+
image: docker.io/splunk/splunk-operator:2.1.1
811811
imagePullPolicy: Always
812812
livenessProbe:
813813
httpGet:
@@ -912,7 +912,6 @@ spec:
912912
name: Splunk Inc.
913913
url: www.splunk.com
914914
relatedImages:
915-
- image: splunk/splunk:9.0.2
915+
- image: docker.io/splunk/splunk:9.0.2
916916
name: splunk-enterprise
917-
replaces: splunk-operator.v2.0.0
918-
version: 2.1.0
917+
version: 2.1.1

bundle/metadata/annotations.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ annotations:
44
operators.operatorframework.io.bundle.manifests.v1: manifests/
55
operators.operatorframework.io.bundle.metadata.v1: metadata/
66
operators.operatorframework.io.bundle.package.v1: splunk-operator
7-
operators.operatorframework.io.bundle.channels.default.v1: stable
7+
operators.operatorframework.io.bundle.channels.v1: candidate,stable
8+
operators.operatorframework.io.bundle.channel.default.v1: stable
89
operators.operatorframework.io.metrics.builder: operator-sdk-v1.25.0
910
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
1011
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3
1112

1213
# Annotations for testing.
1314
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
1415
operators.operatorframework.io.test.config.v1: tests/scorecard/
16+
com.redhat.openshift.versions: v4.9-v4.11

config/manager/kustomization.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
1616
kind: Kustomization
1717
images:
1818
- name: controller
19-
newName: splunk/splunk-operator
20-
newTag: 2.1.0
19+
newName: docker.io/splunk/splunk-operator
20+
newTag: 2.1.1
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
resources:
2+
# All RBAC will be applied under this service account in
3+
# the deployment namespace. You may comment out this resource
4+
# if your manager will use a service account that exists at
5+
# runtime. Be sure to update RoleBinding and ClusterRoleBinding
6+
# subjects if changing service account names.
7+
- service_account.yaml
8+
- role.yaml
9+
- role_binding.yaml
10+
- leader_election_role.yaml
11+
- leader_election_role_binding.yaml
12+
# Comment the following 4 lines if you want to disable
13+
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
14+
# which protects your /metrics endpoint.
15+
- auth_proxy_service.yaml
16+
- auth_proxy_role.yaml
17+
- auth_proxy_role_binding.yaml
18+
- auth_proxy_client_clusterrole.yaml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
resources:
2+
# All RBAC will be applied under this service account in
3+
# the deployment namespace. You may comment out this resource
4+
# if your manager will use a service account that exists at
5+
# runtime. Be sure to update RoleBinding and ClusterRoleBinding
6+
# subjects if changing service account names.
7+
- service_account.yaml
8+
- role.yaml
9+
- role_binding.yaml
10+
- leader_election_role.yaml
11+
- leader_election_role_binding.yaml
12+
# Comment the following 4 lines if you want to disable
13+
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
14+
# which protects your /metrics endpoint.
15+
#- auth_proxy_service.yaml
16+
#- auth_proxy_role.yaml
17+
#- auth_proxy_role_binding.yaml
18+
#- auth_proxy_client_clusterrole.yaml

docs/AppFramework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ spec:
541541
serviceAccountName: splunk-operator
542542
containers:
543543
- name: splunk-operator
544-
image: "docker.io/splunk/splunk-operator:2.1.0"
544+
image: "docker.io/splunk/splunk-operator:2.1.1"
545545
volumeMounts:
546546
- mountPath: /opt/splunk/appframework/
547547
name: app-staging

docs/ChangeLog.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Splunk Operator for Kubernetes Change Log
22

3+
## 2.1.1 (2022-12-06)
4+
5+
* CSPL-2177: Fixed CVE-2022-42898 vulnerability
6+
7+
* CSPL-2171: Fixed namespace specific installation issue in Helm chart and in manifest files
8+
9+
* Fixed Operator Bundle issues
10+
11+
* Fixed some of the documentation issues
12+
313
## 2.1.0 (2022-11-22)
414

515
* This is the 2.1.0 release. The Splunk Operator for Kubernetes is a supported platform for deploying Splunk Enterprise with the prerequisites and constraints laid out [here](https://github.com/splunk/splunk-operator/blob/master/docs/README.md#prerequisites-for-the-splunk-operator)

0 commit comments

Comments
 (0)