Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
5a80c0c
CSPL-444-Added util to get rf sf status from cm
pdhanoyasplunk Oct 7, 2020
3338a01
CSPL-521: Added more delay and checks for MC pod to be ready
pdhanoyasplunk Oct 19, 2020
39e8302
CSPL-529: Fixing a bug where if we delete CM, it also deletes PVCs fo…
gaurav-splunk Oct 22, 2020
fb617ad
bugfix/CSPL-466: If in IndexerCluster spec, replicas < RF(which is co…
gaurav-splunk Oct 26, 2020
5e4fd3f
Removed a commented line
gaurav-splunk Oct 26, 2020
f819c51
Addressed minor review comment
gaurav-splunk Oct 26, 2020
7e3cf91
Addressed review comments
gaurav-splunk Oct 27, 2020
bc4a722
Merge pull request #164 from splunk/bugfix/CSPL-529
gaurav-splunk Oct 27, 2020
20ec0cf
Merge branch 'develop' into mctestdelay
pdhanoya-splunk Oct 27, 2020
0d1eab5
Merge pull request #159 from splunk/mctestdelay
pdhanoya-splunk Oct 27, 2020
251d01f
Added Unit test and removed check for speck.Mock in code
gaurav-splunk Oct 29, 2020
0cd2de3
Merge branch 'develop' into bugfix/CSPL-466
gaurav-splunk Oct 29, 2020
c6bf628
Update readme.md for platforms tested by operator
akondur Oct 30, 2020
e250579
Merge pull request #172 from splunk/update_platforms_readme
smohan-splunk Oct 30, 2020
f43189b
minor typo correction
gaurav-splunk Oct 30, 2020
925b904
Merge branch 'develop' into bugfix/CSPL-466
gaurav-splunk Oct 30, 2020
4a14f06
CSPL-441 Create utilities to run search on a pod deployed using splun…
jryb Oct 1, 2020
3212be6
Merge pull request #136 from splunk/ingest_search_test_utils
smohan-splunk Nov 4, 2020
5fdb933
Only create idxc statefulset and secrets if CM is ready
gaurav-splunk Nov 6, 2020
2a2ddab
Merge branch 'develop' into bugfix/CSPL-466
gaurav-splunk Nov 6, 2020
dc8b909
Merge branch 'bugfix/CSPL-466' of github.com:splunk/splunk-operator i…
gaurav-splunk Nov 6, 2020
2575105
Set idxc.secret on the secrets mounted on the indexer pods when idxc.…
akondur Nov 7, 2020
b324ae6
Merge pull request #166 from splunk/bugfix/CSPL-466
smohan-splunk Nov 11, 2020
d8e99fe
Merge branch 'develop' into cspl_532_idxc_secret_change
akondur Nov 11, 2020
0e258d6
CSPL-556(Part-1): This change is first part of increasing the code co…
gaurav-splunk Nov 12, 2020
0d3a2bd
Correct typo
gliptak Nov 13, 2020
180d2bc
Code coverage for password management
akondur Nov 13, 2020
22c0705
Merge branch 'develop' into CSPL-444-CM-rf-sf-util
pdhanoya-splunk Nov 13, 2020
f151f1e
Merge pull request #173 from splunk/cspl_532_idxc_secret_change
smohan-splunk Nov 16, 2020
e9f2ee1
Merge branch 'develop' into CSPL-444-CM-rf-sf-util
pdhanoya-splunk Nov 16, 2020
9b55414
Merge pull request #142 from splunk/CSPL-444-CM-rf-sf-util
smohan-splunk Nov 17, 2020
4efcf23
cspl-558: Improve code coverage for Index management
sgontla Nov 12, 2020
e64506a
Merge pull request #175 from splunk/smartstore_test_coverage
smohan-splunk Nov 18, 2020
e0c2530
Addressed review comments
gaurav-splunk Nov 18, 2020
88d980f
Merge branch 'develop' of github.com:splunk/splunk-operator into bugf…
gaurav-splunk Nov 18, 2020
67ad9e9
Merge pull request #176 from splunk/bugfix/CSPL-556
smohan-splunk Nov 18, 2020
f8b1329
Merge branch 'develop' into code_coverage_password_management
akondur Nov 18, 2020
3171f19
Fixing merge conflicts
akondur Nov 18, 2020
a7d8745
CSPL-588: This PR improves code coverage for clustermaster specific code
gaurav-splunk Nov 24, 2020
c68dc94
Fixing review comments
akondur Nov 24, 2020
8fa95ec
Merge pull request #179 from splunk/code_coverage_password_management
smohan-splunk Nov 25, 2020
132de7a
Merge branch 'develop' into bugfix/CSPL-588
smohan-splunk Nov 25, 2020
39d1825
Merge branch 'develop' into patch-2
smohan-splunk Nov 30, 2020
ac33229
fix IndexerCluster clusterMasterRef yaml in doc
Dec 1, 2020
1cb5f32
Updated create eks cluster to use existing VPC
pdhanoyasplunk Dec 1, 2020
3c1f39f
Fix read global object link
akondur Dec 1, 2020
d5050b6
address review comment
gaurav-splunk Dec 1, 2020
7a55f4b
Merge branch 'bugfix/CSPL-588' of github.com:splunk/splunk-operator i…
gaurav-splunk Dec 1, 2020
bfe8d45
Merge pull request #180 from splunk/bugfix/CSPL-588
smohan-splunk Dec 1, 2020
665d2b5
CSPL-534: Fix unnecessary pod recycle during scale up/down
gaurav-splunk Dec 1, 2020
5fa9b76
Merge branch 'develop' into bugfix/CSPL-534
gaurav-splunk Dec 3, 2020
5222840
fix a UT failure due to merge
gaurav-splunk Dec 3, 2020
c4022d4
Bring orbs current in CircleCI
gliptak Dec 5, 2020
15b96dd
Set pkg.go.dev badge in README
gliptak Dec 5, 2020
275fafc
Correct typo
gliptak Dec 5, 2020
e9ea2de
Merge pull request #192 from splunk/fix_pwd_docs
smohan-splunk Dec 6, 2020
ebd1941
Merge branch 'develop' into patch-4
smohan-splunk Dec 7, 2020
80e6d42
Merge branch 'develop' into bugfix/CSPL-534
smohan-splunk Dec 7, 2020
78d935e
Merge pull request #198 from gliptak/patch-4
smohan-splunk Dec 7, 2020
da933ac
Merge branch 'develop' into patch-3
smohan-splunk Dec 7, 2020
8cfacae
Merge pull request #197 from gliptak/patch-3
smohan-splunk Dec 7, 2020
d85a60f
Merge branch 'develop' into patch-1
pdhanoya-splunk Dec 7, 2020
025e9fb
Merge pull request #177 from gliptak/patch-1
smohan-splunk Dec 7, 2020
e0276a1
Merge branch 'develop' into patch-2
smohan-splunk Dec 7, 2020
e9af422
Merge pull request #178 from gliptak/patch-2
smohan-splunk Dec 7, 2020
04f6f9b
Merge branch 'develop' into eks_use_existing_vpc
smohan-splunk Dec 7, 2020
0c3595f
Merge branch 'develop' into bugfix/CSPL-534
gaurav-splunk Dec 7, 2020
96a94c7
addressed review comments
gaurav-splunk Dec 7, 2020
0668f1a
Merge pull request #190 from splunk/eks_use_existing_vpc
smohan-splunk Dec 7, 2020
3aed2d9
Merge branch 'develop' into master
smohan-splunk Dec 7, 2020
908607b
Addressed review comments-2
gaurav-splunk Dec 8, 2020
be70733
removed redundant boolean return
gaurav-splunk Dec 8, 2020
b002d7e
Merge branch 'develop' into bugfix/CSPL-534
gaurav-splunk Dec 8, 2020
b7a0afe
Merge pull request #188 from billcchung/master
smohan-splunk Dec 9, 2020
9e2f174
Merge branch 'develop' into bugfix/CSPL-534
gaurav-splunk Dec 9, 2020
4a8379f
Docs fix for pass4Symmkey
akondur Dec 10, 2020
9d3db80
Merge pull request #203 from splunk/docs_fix_pass4Symmkey
smohan-splunk Dec 10, 2020
cfaaf88
Docs fix for using defaults
akondur Dec 10, 2020
6f2d476
Merge branch 'develop' into bugfix/CSPL-534
gaurav-splunk Dec 11, 2020
2449e39
Merge pull request #193 from splunk/bugfix/CSPL-534
smohan-splunk Dec 11, 2020
7642f9f
CSPL-592 Trigger app install on defaultsURL change
jryb Dec 8, 2020
e428a21
Merge pull request #199 from splunk/bugfix/CSPL-592
smohan-splunk Dec 14, 2020
03b79a6
Merge branch 'develop' into defaults_docs_fix
smohan-splunk Dec 14, 2020
a49a9a2
Merge pull request #205 from splunk/defaults_docs_fix
smohan-splunk Dec 15, 2020
269a715
Helper commit for 0.2.1Beta release
akondur Dec 15, 2020
6fa43d9
Addressing review comments, changed github link to point to 0.2.1
akondur Dec 16, 2020
c735388
Merge pull request #207 from splunk/helper_for_0.2.1_release
smohan-splunk Dec 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
version: 2.1

orbs:
kubernetes: circleci/kubernetes@0.4.0
aws-cli: circleci/aws-cli@0.1.22
aws-eks: sandbox/aws-eks@0.1.2
kubernetes: circleci/kubernetes@0.11.2
aws-cli: circleci/aws-cli@1.3.0
aws-eks: circleci/aws-eks@1.0.3

workflows:
version: 2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Splunk Operator for Kubernetes

[![License](https://img.shields.io/:license-apache-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)
[![GoDoc](https://godoc.org/github.com/splunk/splunk-operator?status.svg)](https://godoc.org/github.com/splunk/splunk-operator)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/splunk/splunk-operator)](https://pkg.go.dev/github.com/splunk/splunk-operator)
[![Go Report Card](https://goreportcard.com/badge/github.com/splunk/splunk-operator)](https://goreportcard.com/report/github.com/splunk/splunk-operator)
[![CircleCI](https://circleci.com/gh/splunk/splunk-operator/tree/master.svg?style=shield)](https://circleci.com/gh/splunk/splunk-operator/tree/master)
[![Coverage Status](https://coveralls.io/repos/github/splunk/splunk-operator/badge.svg?branch=master)](https://coveralls.io/github/splunk/splunk-operator?branch=master)
Expand Down
9 changes: 9 additions & 0 deletions deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,11 @@ spec:
description: IndexerClusterStatus defines the observed state of a Splunk
Enterprise indexer cluster
properties:
IdxcPasswordChangedSecrets:
additionalProperties:
type: boolean
description: Holds secrets whose IDXC password has changed
type: object
clusterMasterPhase:
description: current phase of the cluster master
enum:
Expand Down Expand Up @@ -2320,6 +2325,10 @@ spec:
description: Indicates whether the master is ready to begin servicing,
based on whether it is initialized.
type: boolean
skip_recheck_update:
description: Indicates if we need to recheck the revision update on
pods
type: boolean
type: object
type: object
version: v1beta1
Expand Down
4 changes: 4 additions & 0 deletions deploy/crds/enterprise.splunk.com_searchheadclusters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2375,6 +2375,10 @@ spec:
items:
type: boolean
type: array
skip_recheck_update:
description: Indicates if we need to recheck the revision update on
pods
type: boolean
type: object
type: object
version: v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2236,6 +2236,11 @@ spec:
description: IndexerClusterStatus defines the observed state of a Splunk
Enterprise indexer cluster
properties:
IdxcPasswordChangedSecrets:
additionalProperties:
type: boolean
description: Holds secrets whose IDXC password has changed
type: object
clusterMasterPhase:
description: current phase of the cluster master
enum:
Expand Down
2,463 changes: 2,463 additions & 0 deletions deploy/olm-catalog/splunk/0.2.1/enterprise.splunk.com_clustermasters_crd.yaml

Large diffs are not rendered by default.

2,344 changes: 2,344 additions & 0 deletions deploy/olm-catalog/splunk/0.2.1/enterprise.splunk.com_indexerclusters_crd.yaml

Large diffs are not rendered by default.

2,240 changes: 2,240 additions & 0 deletions deploy/olm-catalog/splunk/0.2.1/enterprise.splunk.com_licensemasters_crd.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

996 changes: 996 additions & 0 deletions deploy/olm-catalog/splunk/0.2.1/enterprise.splunk.com_sparks_crd.yaml

Large diffs are not rendered by default.

2,518 changes: 2,518 additions & 0 deletions deploy/olm-catalog/splunk/0.2.1/enterprise.splunk.com_standalones_crd.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
apiVersion: operators.coreos.com/v1alpha1
kind: ClusterServiceVersion
metadata:
annotations:
alm-examples: |-
[{
"apiVersion": "enterprise.splunk.com/v1beta1",
"kind": "IndexerCluster",
"metadata": {
"name": "example",
"finalizers": [ "enterprise.splunk.com/delete-pvc" ]
},
"spec": {
"replicas": 1
}
},
{
"apiVersion": "enterprise.splunk.com/v1beta1",
"kind": "LicenseMaster",
"metadata": {
"name": "example",
"finalizers": [ "enterprise.splunk.com/delete-pvc" ]
},
"spec": {}
},
{
"apiVersion": "enterprise.splunk.com/v1beta1",
"kind": "SearchHeadCluster",
"metadata": {
"name": "example",
"finalizers": [ "enterprise.splunk.com/delete-pvc" ]
},
"spec": {
"replicas": 1
}
},
{
"apiVersion": "enterprise.splunk.com/v1beta1",
"kind": "Spark",
"metadata": {
"name": "example"
},
"spec": {
"replicas": 1
}
},
{
"apiVersion": "enterprise.splunk.com/v1beta1",
"kind": "Standalone",
"metadata": {
"name": "example",
"finalizers": [ "enterprise.splunk.com/delete-pvc" ]
},
"spec": {}
}]
capabilities: Basic Install
name: splunk.v0.2.1
namespace: placeholder
spec:
apiservicedefinitions: {}
customresourcedefinitions:
owned:
- description: ClusterMaster is the Schema for the clustermasters API
kind: ClusterMaster
name: clustermasters.enterprise.splunk.com
version: v1beta1
resources:
- kind: StatefulSets
version: apps/v1
- kind: Deployments
version: apps/v1
- kind: Pods
version: v1
- kind: Services
version: v1
- kind: ConfigMaps
version: v1
- kind: Secrets
version: v1
displayName: IndexerCluster
- description: IndexerCluster is the Schema for a Splunk Enterprise indexer cluster
kind: IndexerCluster
name: indexerclusters.enterprise.splunk.com
version: v1beta1
resources:
- kind: StatefulSets
version: apps/v1
- kind: Deployments
version: apps/v1
- kind: Pods
version: v1
- kind: Services
version: v1
- kind: ConfigMaps
version: v1
- kind: Secrets
version: v1
displayName: LicenseMaster
- description: LicenseMaster is the Schema for a Splunk Enterprise license master.
kind: LicenseMaster
name: licensemasters.enterprise.splunk.com
version: v1beta1
resources:
- kind: StatefulSets
version: apps/v1
- kind: Deployments
version: apps/v1
- kind: Pods
version: v1
- kind: Services
version: v1
- kind: ConfigMaps
version: v1
- kind: Secrets
version: v1
displayName: SearchHeadCluster
- description: SearchHeadCluster is the Schema for a Splunk Enterprise search
head cluster
kind: SearchHeadCluster
name: searchheadclusters.enterprise.splunk.com
version: v1beta1
resources:
- kind: StatefulSets
version: apps/v1
- kind: Deployments
version: apps/v1
- kind: Pods
version: v1
- kind: Services
version: v1
- kind: ConfigMaps
version: v1
- kind: Secrets
version: v1
displayName: Spark
- description: Spark is the Schema for a Spark cluster
kind: Spark
name: sparks.enterprise.splunk.com
version: v1beta1
resources:
- kind: StatefulSets
version: apps/v1
- kind: Deployments
version: apps/v1
- kind: Pods
version: v1
- kind: Services
version: v1
- kind: ConfigMaps
version: v1
- kind: Secrets
version: v1
displayName: Standalone
- description: Standalone is the Schema for a Splunk Enterprise standalone instances.
kind: Standalone
name: standalones.enterprise.splunk.com
version: v1beta1
description: Placeholder description
displayName: Splunk
install:
spec:
deployments:
- name: splunk-operator
spec:
replicas: 1
selector:
matchLabels:
name: splunk-operator
strategy: {}
template:
metadata:
labels:
name: splunk-operator
spec:
containers:
- env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: splunk-operator
- name: RELATED_IMAGE_SPLUNK_ENTERPRISE
value: docker.io/splunk/splunk:8.1.1
- name: RELATED_IMAGE_SPLUNK_SPARK
value: docker.io/splunk/spark:0.0.2
image: docker.io/splunk/splunk-operator:0.2.1
imagePullPolicy: IfNotPresent
name: splunk-operator
resources: {}
serviceAccountName: splunk-operator
permissions:
- rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- persistentvolumeclaims
- configmaps
- secrets
- pods
- pods/exec
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- events
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:
- deployments
- daemonsets
- replicasets
- statefulsets
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- enterprise.splunk.com
resources:
- '*'
verbs:
- '*'
serviceAccountName: splunk-operator
strategy: deployment
installModes:
- supported: true
type: OwnNamespace
- supported: true
type: SingleNamespace
- supported: false
type: MultiNamespace
- supported: true
type: AllNamespaces
maturity: alpha
provider: {}
replaces: splunk.v0.0.0
version: 0.2.1
2 changes: 1 addition & 1 deletion deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ spec:
- name: OPERATOR_NAME
value: "splunk-operator"
- name: RELATED_IMAGE_SPLUNK_ENTERPRISE
value: "docker.io/splunk/splunk:8.1.0"
value: "docker.io/splunk/splunk:8.1.1"
- name: RELATED_IMAGE_SPLUNK_SPARK
value: "docker.io/splunk/spark:0.0.2"
17 changes: 17 additions & 0 deletions docs/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Splunk Operator for Kubernetes Change Log

## 0.2.1 Beta()
* This release depends upon changes made concurrently in the Splunk Enterprise container images. You must use the latest splunk/splunk:edge nightly image with it, or alternatively any release version 8.1.0 or later

* CSPL-529 - Fixed incorrect deletion of Indexer PVCs upon deletion of ClusterMaster

* CSPL 466 - Fixed infinite reconcile loop of the Operator when an Indexer Cluster is created with peers < SF, RF

* CSPL-532 - Fixed a race condition where changing the idxc.secret on the global secret object could result in an infinite loop of container restarts

* Increased code coverage

* CSPL-534 - Fixed unnecessary pod recycles on scale up/down

* CSPL-592 - Initiate a pod recycle on change of environment variables of containers

* CSPL-658 - Fixed incorrect change of Indexer state from Configured to New in the Monitoring Console

## 0.2.0 Beta (2020-10-15)
* This release depends upon changes made concurrently in the Splunk Enterprise container images. You must use the latest splunk/splunk:edge nightly image with it, or alternatively any release version 8.1.0 or later.

Expand Down
3 changes: 2 additions & 1 deletion docs/CustomResources.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ metadata:
name: example
spec:
replicas: 3
clusterMasterRef: example-cm
clusterMasterRef:
name: example-cm
```
Note: `clusterMasterRef` is required field in case of IndexerCluster resource since it will be used to connect the IndexerCluster to ClusterMaster resource.

Expand Down
Loading