Skip to content

Commit

Permalink
operator [CI] splunk (2.7.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
rlieberman-splunk authored Dec 20, 2024
1 parent 6c981d4 commit 0f990bb
Show file tree
Hide file tree
Showing 58 changed files with 52,231 additions and 1 deletion.
20 changes: 20 additions & 0 deletions operators/splunk/2.7.0/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=splunk
LABEL operators.operatorframework.io.bundle.channels.v1=stable
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.31.1
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Copy files to locations specified by labels.
COPY manifests /manifests/
COPY metadata /metadata/
COPY tests/scorecard /tests/scorecard/
4,450 changes: 4,450 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_clustermanagers.yaml

Large diffs are not rendered by default.

4,463 changes: 4,463 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_clustermasters.yaml

Large diffs are not rendered by default.

7,718 changes: 7,718 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_indexerclusters.yaml

Large diffs are not rendered by default.

4,188 changes: 4,188 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_licensemanagers.yaml

Large diffs are not rendered by default.

4,200 changes: 4,200 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_licensemasters.yaml

Large diffs are not rendered by default.

8,385 changes: 8,385 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_monitoringconsoles.yaml

Large diffs are not rendered by default.

8,579 changes: 8,579 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_searchheadclusters.yaml

Large diffs are not rendered by default.

8,893 changes: 8,893 additions & 0 deletions operators/splunk/2.7.0/manifests/enterprise.splunk.com_standalones.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
data:
OPERATOR_NAME: '"splunk-operator"'
RELATED_IMAGE_SPLUNK_ENTERPRISE: ""
WATCH_NAMESPACE: ""
kind: ConfigMap
metadata:
labels:
name: splunk-operator
name: splunk-operator-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: controller-manager
name: splunk-operator
name: splunk-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
name: splunk-operator
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
control-plane: controller-manager
name: splunk-operator
name: splunk-operator-controller-manager-service
spec:
ports:
- name: metric
port: 8080
protocol: TCP
targetPort: 8080
- name: health
port: 8081
protocol: TCP
targetPort: 8081
selector:
control-plane: controller-manager
name: splunk-operator
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 270bec8c.splunk.com
kind: ConfigMap
metadata:
labels:
name: splunk-operator
name: splunk-operator-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
name: splunk-operator
name: splunk-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions operators/splunk/2.7.0/metadata/annotations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
annotations:
# Core bundle annotations.
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
operators.operatorframework.io.bundle.manifests.v1: manifests/
operators.operatorframework.io.bundle.metadata.v1: metadata/
operators.operatorframework.io.bundle.package.v1: splunk
operators.operatorframework.io.bundle.channels.v1: stable
operators.operatorframework.io.bundle.channel.default.v1: stable
operators.operatorframework.io.metrics.builder: operator-sdk-v1.31.1
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1
operators.operatorframework.io.metrics.project_layout: go.kubebuilder.io/v3

# Annotations for testing.
operators.operatorframework.io.test.mediatype.v1: scorecard+v1
operators.operatorframework.io.test.config.v1: tests/scorecard/
com.redhat.openshift.versions: v4.11-v4.16
77 changes: 77 additions & 0 deletions operators/splunk/2.7.0/tests/scorecard/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
apiVersion: scorecard.operatorframework.io/v1alpha3
kind: Configuration
metadata:
name: config
stages:
- parallel: true
tests:
- entrypoint:
- scorecard-test
- basic-check-spec
image: quay.io/operator-framework/scorecard-test:v1.18.1
labels:
suite: basic
test: basic-check-spec-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-bundle-validation
image: quay.io/operator-framework/scorecard-test:v1.18.1
labels:
suite: olm
test: olm-bundle-validation-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-crds-have-validation
image: quay.io/operator-framework/scorecard-test:v1.18.1
labels:
suite: olm
test: olm-crds-have-validation-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-crds-have-resources
image: quay.io/operator-framework/scorecard-test:v1.18.1
labels:
suite: olm
test: olm-crds-have-resources-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-spec-descriptors
image: quay.io/operator-framework/scorecard-test:v1.18.1
labels:
suite: olm
test: olm-spec-descriptors-test
storage:
spec:
mountPath: {}
- entrypoint:
- scorecard-test
- olm-status-descriptors
image: quay.io/operator-framework/scorecard-test:v1.18.1
labels:
suite: olm
test: olm-status-descriptors-test
storage:
spec:
mountPath: {}
- image: quay.io/operator-framework/scorecard-test-kuttl:v2.0.0
labels:
suite: kuttlsuite
test: kuttltest1
storage:
spec:
mountPath: {}
storage:
spec:
mountPath: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: ClusterManager
metadata:
name: test
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: enterprise.splunk.com/v3
kind: ClusterManager
metadata:
name: test
finalizers:
- "enterprise.splunk.com/delete-pvc"
spec:
volumes: []
spec:
imagePullPolicy: "IfNotPresent"
defaults: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: IndexerCluster
metadata:
name: test-idxc
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: enterprise.splunk.com/v3
kind: IndexerCluster
metadata:
name: test-idxc
finalizers:
- "enterprise.splunk.com/delete-pvc"
spec:
volumes: []
spec:
imagePullPolicy: IfNotPresent
clusterManagerRef:
name: test
defaults: ""
replicas: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: SearchHeadCluster
metadata:
name: test-shc
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: enterprise.splunk.com/v3
kind: SearchHeadCluster
metadata:
name: test-shc
finalizers:
- "enterprise.splunk.com/delete-pvc"
spec:
volumes: []
spec:
imagePullPolicy: "IfNotPresent"
clusterManagerRef:
name: test
licenseManagerRef:
name: ""
defaults: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: ClusterManager
metadata:
name: test
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: enterprise.splunk.com/v3
kind: ClusterManager
metadata:
name: test
finalizers: []
spec:
volumes: []
spec:
imagePullPolicy: "IfNotPresent"
defaults: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: IndexerCluster
metadata:
name: test-idxc
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: enterprise.splunk.com/v3
kind: IndexerCluster
metadata:
name: test-idxc
finalizers: []
spec:
volumes: []
spec:
imagePullPolicy: IfNotPresent
clusterManagerRef:
name: test
defaults: ""
replicas: 3
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: SearchHeadCluster
metadata:
name: test-shc
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: enterprise.splunk.com/v3
kind: SearchHeadCluster
metadata:
name: test-shc
finalizers: []
spec:
volumes: []
spec:
imagePullPolicy: "IfNotPresent"
clusterManagerRef:
name: test
licenseManagerRef:
name: ""
defaults: ""
5 changes: 5 additions & 0 deletions operators/splunk/2.7.0/tests/scorecard/kuttl/kuttl-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kudo.dev/v1beta1
kind: TestSuite
parallel: 1
timeout: 750
startControlPlane: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: ClusterManager
metadata:
name: test
status:
phase: Ready
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: enterprise.splunk.com/v3
kind: ClusterManager
metadata:
name: test
finalizers:
- "enterprise.splunk.com/delete-pvc"
spec:
volumes: []
spec:
imagePullPolicy: "IfNotPresent"
defaults: "splunk:
multisite_master: localhost
all_sites: site1,site2,site3
site: site1
multisite_replication_factor_origin: 1
multisite_replication_factor_total: 2
multisite_search_factor_origin: 1
multisite_search_factor_total: 2
idxc:
search_factor: 2
replication_factor: 2"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: enterprise.splunk.com/v3
kind: IndexerCluster
metadata:
name: test-idxc
status:
phase: Ready
Loading

0 comments on commit 0f990bb

Please sign in to comment.