Skip to content

Commit

Permalink
Merge pull request #208 from splunk/release/0.2.1beta
Browse files Browse the repository at this point in the history
Release/0.2.1beta
  • Loading branch information
smohan-splunk authored Dec 16, 2020
2 parents ad1edb6 + c735388 commit 57ac7a1
Show file tree
Hide file tree
Showing 61 changed files with 15,928 additions and 271 deletions.
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

0 comments on commit 57ac7a1

Please sign in to comment.