Skip to content

Commit

Permalink
cspl-1175: Increment the CRD version to v2 (#417)
Browse files Browse the repository at this point in the history
- As part of supporting the App Framework spec changes, increment the CRD version to v2.
- Increment Splunk Operator version to 1.0.2
  • Loading branch information
sgontla authored Jul 15, 2021
1 parent 652686e commit 45e192b
Show file tree
Hide file tree
Showing 83 changed files with 16,304 additions and 1,768 deletions.
10 changes: 5 additions & 5 deletions build/make_bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
set -e

VERSION=`grep "Version.*=.*\".*\"" version/version.go | sed "s,.*Version.*=.*\"\(.*\)\".*,\1,"`
OLD_VERSIONS="v1beta1 v1alpha3 v1alpha2"
OLD_VERSIONS="v1 v1beta1 v1alpha3 v1alpha2"
DOCKER_IO_PATH="docker.io/splunk"
REDHAT_REGISTRY_PATH="registry.connect.redhat.com/splunk"
OPERATOR_IMAGE="$DOCKER_IO_PATH/splunk-operator:${VERSION}"
Expand Down Expand Up @@ -90,7 +90,7 @@ cat << EOF >$YAML_SCRIPT_FILE
path: metadata.annotations.alm-examples
value: |-
[{
"apiVersion": "enterprise.splunk.com/v1",
"apiVersion": "enterprise.splunk.com/v2",
"kind": "IndexerCluster",
"metadata": {
"name": "example",
Expand All @@ -101,7 +101,7 @@ cat << EOF >$YAML_SCRIPT_FILE
}
},
{
"apiVersion": "enterprise.splunk.com/v1",
"apiVersion": "enterprise.splunk.com/v2",
"kind": "LicenseMaster",
"metadata": {
"name": "example",
Expand All @@ -110,7 +110,7 @@ cat << EOF >$YAML_SCRIPT_FILE
"spec": {}
},
{
"apiVersion": "enterprise.splunk.com/v1",
"apiVersion": "enterprise.splunk.com/v2",
"kind": "SearchHeadCluster",
"metadata": {
"name": "example",
Expand All @@ -121,7 +121,7 @@ cat << EOF >$YAML_SCRIPT_FILE
}
},
{
"apiVersion": "enterprise.splunk.com/v1",
"apiVersion": "enterprise.splunk.com/v2",
"kind": "Standalone",
"metadata": {
"name": "example",
Expand Down
12 changes: 10 additions & 2 deletions deploy/crds/enterprise.splunk.com_clustermasters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
jsonPath: .status.phase
name: Phase
type: string
name: v1
name: v2
schema:
openAPIV3Schema:
description: ClusterMaster is the Schema for the clustermasters API
Expand Down Expand Up @@ -1141,7 +1141,6 @@ spec:
x-kubernetes-int-or-string: true
required:
- port
- protocol
type: object
type: array
x-kubernetes-list-map-keys:
Expand Down Expand Up @@ -2912,6 +2911,15 @@ spec:
storage: true
subresources:
status: {}
- name: v1
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
type: string
- name: v1beta1
served: true
storage: false
Expand Down
12 changes: 10 additions & 2 deletions deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
name: v2
schema:
openAPIV3Schema:
description: IndexerCluster is the Schema for a Splunk Enterprise indexer
Expand Down Expand Up @@ -1087,7 +1087,6 @@ spec:
x-kubernetes-int-or-string: true
required:
- port
- protocol
type: object
type: array
x-kubernetes-list-map-keys:
Expand Down Expand Up @@ -2569,6 +2568,15 @@ spec:
specReplicasPath: .spec.replicas
statusReplicasPath: .status.replicas
status: {}
- name: v1
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
type: string
- name: v1beta1
served: true
storage: false
Expand Down
12 changes: 10 additions & 2 deletions deploy/crds/enterprise.splunk.com_licensemasters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
name: v2
schema:
openAPIV3Schema:
description: LicenseMaster is the Schema for a Splunk Enterprise license master.
Expand Down Expand Up @@ -1146,7 +1146,6 @@ spec:
x-kubernetes-int-or-string: true
required:
- port
- protocol
type: object
type: array
x-kubernetes-list-map-keys:
Expand Down Expand Up @@ -2681,6 +2680,15 @@ spec:
storage: true
subresources:
status: {}
- name: v1
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
type: string
- name: v1beta1
served: true
storage: false
Expand Down
12 changes: 10 additions & 2 deletions deploy/crds/enterprise.splunk.com_searchheadclusters_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
name: v2
schema:
openAPIV3Schema:
description: SearchHeadCluster is the Schema for a Splunk Enterprise search
Expand Down Expand Up @@ -1164,7 +1164,6 @@ spec:
x-kubernetes-int-or-string: true
required:
- port
- protocol
type: object
type: array
x-kubernetes-list-map-keys:
Expand Down Expand Up @@ -2790,6 +2789,15 @@ spec:
specReplicasPath: .spec.replicas
statusReplicasPath: .status.replicas
status: {}
- name: v1
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
type: string
- name: v1beta1
served: true
storage: false
Expand Down
12 changes: 10 additions & 2 deletions deploy/crds/enterprise.splunk.com_standalones_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
name: v2
schema:
openAPIV3Schema:
description: Standalone is the Schema for a Splunk Enterprise standalone instances.
Expand Down Expand Up @@ -1158,7 +1158,6 @@ spec:
x-kubernetes-int-or-string: true
required:
- port
- protocol
type: object
type: array
x-kubernetes-list-map-keys:
Expand Down Expand Up @@ -2933,6 +2932,15 @@ spec:
specReplicasPath: .spec.replicas
statusReplicasPath: .status.replicas
status: {}
- name: v1
served: true
storage: false
schema:
openAPIV3Schema:
type: object
properties:
apiVersion:
type: string
- name: v1beta1
served: true
storage: false
Expand Down
10 changes: 5 additions & 5 deletions deploy/examples/advanced/c1.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: LicenseMaster
metadata:
name: lm-example
Expand All @@ -11,7 +11,7 @@ spec:
name: splunk-licenses
licenseUrl: /mnt/licenses/enterprise.lic
---
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: ClusterMaster
metadata:
name: cm-example
Expand All @@ -21,20 +21,20 @@ spec:
licenseMasterRef:
name: lm-example
---
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: IndexerCluster
metadata:
name: idxc-example
finalizers:
- enterprise.splunk.com/delete-pvc
spec:
replicas: <n>
replicas: 4
clusterMasterRef:
name: cm-example
licenseMasterRef:
name: lm-example
---
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: Standalone
metadata:
name: sh-example
Expand Down
4 changes: 2 additions & 2 deletions deploy/examples/clustermaster/default.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: ClusterMaster
metadata:
name: test
spec: {}
spec: {}
2 changes: 1 addition & 1 deletion deploy/examples/indexercluster/default.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: IndexerCluster
metadata:
name: test
Expand Down
2 changes: 1 addition & 1 deletion deploy/examples/licensemaster/default.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: LicenseMaster
metadata:
name: test
Expand Down
2 changes: 1 addition & 1 deletion deploy/examples/searchheadcluster/default.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: SearchHeadCluster
metadata:
name: test
Expand Down
2 changes: 1 addition & 1 deletion deploy/examples/standalone/default.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: enterprise.splunk.com/v1
apiVersion: enterprise.splunk.com/v2
kind: Standalone
metadata:
name: test
Expand Down
Loading

0 comments on commit 45e192b

Please sign in to comment.