Skip to content

Commit

Permalink
Merge pull request #207 from splunk/helper_for_0.2.1_release
Browse files Browse the repository at this point in the history
CSPL-667 - Helper commit for 0.2.1Beta release
  • Loading branch information
smohan-splunk authored Dec 16, 2020
2 parents a49a9a2 + 6fa43d9 commit c735388
Show file tree
Hide file tree
Showing 14 changed files with 13,253 additions and 12 deletions.
4 changes: 4 additions & 0 deletions deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2325,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
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
14 changes: 7 additions & 7 deletions docs/Install.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Splunk Operator (as described below), please download a local copy of
the installation YAML and open it in your favorite editor.

```
wget -O splunk-operator.yaml https://github.com/splunk/splunk-operator/releases/download/0.2.0/splunk-operator-install.yaml
wget -O splunk-operator.yaml https://github.com/splunk/splunk-operator/releases/download/0.2.1/splunk-operator-install.yaml
```


Expand All @@ -23,14 +23,14 @@ installed by regular users within their own namespaces. If you are not an
administrator, you can have someone else create these objects for you by running

```
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/0.2.0/splunk-operator-crds.yaml
kubectl apply -f https://github.com/splunk/splunk-operator/releases/download/0.2.1/splunk-operator-crds.yaml
```

You should then be able download and use the following YAML to install the
operator within your own namespace:

```
wget -O splunk-operator.yaml https://github.com/splunk/splunk-operator/releases/download/0.2.0/splunk-operator-noadmin.yaml
wget -O splunk-operator.yaml https://github.com/splunk/splunk-operator/releases/download/0.2.1/splunk-operator-noadmin.yaml
kubectl config set-context --current --namespace=<NAMESPACE>
kubectl apply -f splunk-operator.yaml
```
Expand All @@ -43,7 +43,7 @@ objects for all the namespaces of your cluster, you can use the alternative
cluster scope installation YAML:

```
wget -O splunk-operator.yaml https://github.com/splunk/splunk-operator/releases/download/0.2.0/splunk-operator-cluster.yaml
wget -O splunk-operator.yaml https://github.com/splunk/splunk-operator/releases/download/0.2.1/splunk-operator-cluster.yaml
```

When running at cluster scope, you will need to bind the
Expand Down Expand Up @@ -78,7 +78,7 @@ EOF

## Private Registries

*Note: The `splunk/splunk:8.1.0` image is rather large, so we strongly
*Note: The `splunk/splunk:8.1.0` image (or later) is rather large, so we strongly
recommend copying this to a private registry or directly onto your
Kubernetes workers as per the [Required Images Documentation](Images.md), and
following these instructions before creating any large Splunk deployments.*
Expand All @@ -92,15 +92,15 @@ it to a private registry, you will need to edit the image parameter in the
image: splunk/splunk-operator
```
If you are using a private registry for the `splunk/splunk:8.1.0` and
If you are using a private registry for the `splunk/splunk:8.1.0` (or later) and
`splunk/spark` (used by DFS) images, you should modify the
`RELATED_IMAGE_SPLUNK_ENTERPRISE` and `RELATED_IMAGE_SPLUNK_SPARK`
environment variables in `splunk-operator.yaml` to point
to the appropriate locations.

```yaml
- name: RELATED_IMAGE_SPLUNK_ENTERPRISE
value: "splunk/splunk:8.1.0"
value: "splunk/splunk:8.1.0" (or later)
- name: RELATED_IMAGE_SPLUNK_SPARK
value: "splunk/spark"
```
Expand Down
Loading

0 comments on commit c735388

Please sign in to comment.