diff --git a/build/make_bundle.sh b/build/make_bundle.sh index 426cbd4a1..c0a599093 100755 --- a/build/make_bundle.sh +++ b/build/make_bundle.sh @@ -5,7 +5,7 @@ set -e VERSION=`grep "Version.*=.*\".*\"" version/version.go | sed "s,.*Version.*=.*\"\(.*\)\".*,\1,"` -OLD_VERSIONS="v1 v1beta1 v1alpha3 v1alpha2" +OLD_VERSIONS="v2 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}" @@ -92,7 +92,7 @@ cat << EOF >$YAML_SCRIPT_FILE path: metadata.annotations.alm-examples value: |- [{ - "apiVersion": "enterprise.splunk.com/v2", + "apiVersion": "enterprise.splunk.com/v3", "kind": "IndexerCluster", "metadata": { "name": "example", @@ -103,7 +103,7 @@ cat << EOF >$YAML_SCRIPT_FILE } }, { - "apiVersion": "enterprise.splunk.com/v2", + "apiVersion": "enterprise.splunk.com/v3", "kind": "LicenseMaster", "metadata": { "name": "example", @@ -112,7 +112,7 @@ cat << EOF >$YAML_SCRIPT_FILE "spec": {} }, { - "apiVersion": "enterprise.splunk.com/v2", + "apiVersion": "enterprise.splunk.com/v3", "kind": "SearchHeadCluster", "metadata": { "name": "example", @@ -123,7 +123,7 @@ cat << EOF >$YAML_SCRIPT_FILE } }, { - "apiVersion": "enterprise.splunk.com/v2", + "apiVersion": "enterprise.splunk.com/v3", "kind": "Standalone", "metadata": { "name": "example", diff --git a/deploy/crds/enterprise.splunk.com_clustermasters_crd.yaml b/deploy/crds/enterprise.splunk.com_clustermasters_crd.yaml index 6f59ad62e..97080d081 100644 --- a/deploy/crds/enterprise.splunk.com_clustermasters_crd.yaml +++ b/deploy/crds/enterprise.splunk.com_clustermasters_crd.yaml @@ -18,7 +18,7 @@ spec: jsonPath: .status.phase name: Phase type: string - name: v2 + name: v3 schema: openAPIV3Schema: description: ClusterMaster is the Schema for the clustermasters API @@ -2949,6 +2949,16 @@ spec: storage: true subresources: status: {} + - name: v2 + served: true + storage: false + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + properties: + apiVersion: + type: string - name: v1 served: true storage: false diff --git a/deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml b/deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml index e3926f4c5..4f007a06a 100644 --- a/deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml +++ b/deploy/crds/enterprise.splunk.com_indexerclusters_crd.yaml @@ -35,7 +35,7 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date - name: v2 + name: v3 schema: openAPIV3Schema: description: IndexerCluster is the Schema for a Splunk Enterprise indexer @@ -2606,6 +2606,16 @@ spec: specReplicasPath: .spec.replicas statusReplicasPath: .status.replicas status: {} + - name: v2 + served: true + storage: false + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + properties: + apiVersion: + type: string - name: v1 served: true storage: false diff --git a/deploy/crds/enterprise.splunk.com_licensemasters_crd.yaml b/deploy/crds/enterprise.splunk.com_licensemasters_crd.yaml index a6f58f204..47074ea7b 100644 --- a/deploy/crds/enterprise.splunk.com_licensemasters_crd.yaml +++ b/deploy/crds/enterprise.splunk.com_licensemasters_crd.yaml @@ -22,7 +22,7 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date - name: v2 + name: v3 schema: openAPIV3Schema: description: LicenseMaster is the Schema for a Splunk Enterprise license master. @@ -2718,6 +2718,16 @@ spec: storage: true subresources: status: {} + - name: v2 + served: true + storage: false + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + properties: + apiVersion: + type: string - name: v1 served: true storage: false diff --git a/deploy/crds/enterprise.splunk.com_monitoringconsoles_crd.yaml b/deploy/crds/enterprise.splunk.com_monitoringconsoles_crd.yaml index 19f233706..174102492 100644 --- a/deploy/crds/enterprise.splunk.com_monitoringconsoles_crd.yaml +++ b/deploy/crds/enterprise.splunk.com_monitoringconsoles_crd.yaml @@ -18,7 +18,7 @@ spec: jsonPath: .status.phase name: Phase type: string - name: v2 + name: v3 schema: openAPIV3Schema: description: MonitoringConsole is the Schema for the monitoringconsole API @@ -2729,12 +2729,23 @@ spec: storage: true subresources: status: {} + - name: v2 + served: true + storage: false + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + properties: + apiVersion: + type: string - name: v1 served: true storage: false schema: openAPIV3Schema: type: object + x-kubernetes-preserve-unknown-fields: true properties: apiVersion: type: string @@ -2744,6 +2755,7 @@ spec: schema: openAPIV3Schema: type: object + x-kubernetes-preserve-unknown-fields: true properties: apiVersion: type: string @@ -2753,6 +2765,7 @@ spec: schema: openAPIV3Schema: type: object + x-kubernetes-preserve-unknown-fields: true properties: apiVersion: type: string @@ -2762,6 +2775,7 @@ spec: schema: openAPIV3Schema: type: object + x-kubernetes-preserve-unknown-fields: true properties: apiVersion: type: string diff --git a/deploy/crds/enterprise.splunk.com_searchheadclusters_crd.yaml b/deploy/crds/enterprise.splunk.com_searchheadclusters_crd.yaml index 79ec72678..fd6918c6e 100644 --- a/deploy/crds/enterprise.splunk.com_searchheadclusters_crd.yaml +++ b/deploy/crds/enterprise.splunk.com_searchheadclusters_crd.yaml @@ -34,7 +34,7 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date - name: v2 + name: v3 schema: openAPIV3Schema: description: SearchHeadCluster is the Schema for a Splunk Enterprise search @@ -2827,6 +2827,16 @@ spec: specReplicasPath: .spec.replicas statusReplicasPath: .status.replicas status: {} + - name: v2 + served: true + storage: false + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + properties: + apiVersion: + type: string - name: v1 served: true storage: false diff --git a/deploy/crds/enterprise.splunk.com_standalones_crd.yaml b/deploy/crds/enterprise.splunk.com_standalones_crd.yaml index e84488050..9a6fc1336 100644 --- a/deploy/crds/enterprise.splunk.com_standalones_crd.yaml +++ b/deploy/crds/enterprise.splunk.com_standalones_crd.yaml @@ -30,7 +30,7 @@ spec: jsonPath: .metadata.creationTimestamp name: Age type: date - name: v2 + name: v3 schema: openAPIV3Schema: description: Standalone is the Schema for a Splunk Enterprise standalone instances. @@ -2970,6 +2970,16 @@ spec: specReplicasPath: .spec.replicas statusReplicasPath: .status.replicas status: {} + - name: v2 + served: true + storage: false + schema: + openAPIV3Schema: + type: object + x-kubernetes-preserve-unknown-fields: true + properties: + apiVersion: + type: string - name: v1 served: true storage: false diff --git a/deploy/examples/advanced/c1.yaml b/deploy/examples/advanced/c1.yaml index ba638f0f4..a8a121964 100644 --- a/deploy/examples/advanced/c1.yaml +++ b/deploy/examples/advanced/c1.yaml @@ -1,4 +1,4 @@ -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: LicenseMaster metadata: name: lm-example @@ -11,7 +11,7 @@ spec: name: splunk-licenses licenseUrl: /mnt/licenses/enterprise.lic --- -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: ClusterMaster metadata: name: cm-example @@ -42,7 +42,7 @@ spec: apps_location: - "/mnt/apps/.tgz" --- -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: IndexerCluster metadata: name: idxc-example @@ -55,7 +55,7 @@ spec: licenseMasterRef: name: lm-example --- -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: sh-example diff --git a/deploy/examples/clustermaster/default.yaml b/deploy/examples/clustermaster/default.yaml index 1a4e846ea..6b5bc6300 100644 --- a/deploy/examples/clustermaster/default.yaml +++ b/deploy/examples/clustermaster/default.yaml @@ -1,4 +1,4 @@ -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: ClusterMaster metadata: name: test diff --git a/deploy/examples/indexercluster/default.yaml b/deploy/examples/indexercluster/default.yaml index 5e34cc716..d6e5f5650 100644 --- a/deploy/examples/indexercluster/default.yaml +++ b/deploy/examples/indexercluster/default.yaml @@ -1,4 +1,4 @@ -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: IndexerCluster metadata: name: test diff --git a/deploy/examples/licensemaster/default.yaml b/deploy/examples/licensemaster/default.yaml index d8f439c03..81c4a0ddb 100644 --- a/deploy/examples/licensemaster/default.yaml +++ b/deploy/examples/licensemaster/default.yaml @@ -1,4 +1,4 @@ -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: LicenseMaster metadata: name: test diff --git a/deploy/examples/monitoringconsole/default.yaml b/deploy/examples/monitoringconsole/default.yaml new file mode 100644 index 000000000..0bae12ec2 --- /dev/null +++ b/deploy/examples/monitoringconsole/default.yaml @@ -0,0 +1,5 @@ +apiVersion: enterprise.splunk.com/v3 +kind: MonitoringConsole +metadata: + name: test +spec: {} diff --git a/deploy/examples/searchheadcluster/default.yaml b/deploy/examples/searchheadcluster/default.yaml index 01b8876ff..83e0825d8 100644 --- a/deploy/examples/searchheadcluster/default.yaml +++ b/deploy/examples/searchheadcluster/default.yaml @@ -1,4 +1,4 @@ -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: SearchHeadCluster metadata: name: test diff --git a/deploy/examples/standalone/default.yaml b/deploy/examples/standalone/default.yaml index 60b19112d..d455f3357 100644 --- a/deploy/examples/standalone/default.yaml +++ b/deploy/examples/standalone/default.yaml @@ -1,4 +1,4 @@ -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: test diff --git a/docs/AppFramework.md b/docs/AppFramework.md index d2b8d5f34..2b2389da7 100644 --- a/docs/AppFramework.md +++ b/docs/AppFramework.md @@ -26,12 +26,12 @@ In this example, you'll deploy a Standalone CR with a remote storage volume, the * In this example, the Splunk Apps are located at `bucket-app-framework-us-west-2/Standalone-us/networkAppsLoc/` and `bucket-app-framework-us-west-2/Standalone-us/authAppsLoc/`, and are both accessible through the end point `https://s3-us-west-2.amazonaws.com`. 5. Update the standalone CR specification and append the volume, App Source configuration, and scope. - * The scope determines where the apps and add-ons are placed into the Splunk Enterprise instance. For CRs where the Splunk Enterprise instance will run the apps locally, set the `scope: local ` The Standalone and License Master CRs always use a local scope. + * The scope determines where the apps and add-ons are placed into the Splunk Enterprise instance. For CRs where the Splunk Enterprise instance will run the apps locally, set the `scope: local ` The Standalone, Monitoring Console and License Master CRs always use a local scope. Example: Standalone.yaml ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: stdln @@ -88,7 +88,7 @@ This example describes the installation of apps on Indexer Cluster as well as Cl Example: ClusterMaster.yaml ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: ClusterMaster metadata: name: cm @@ -149,7 +149,7 @@ This example describes the installation of apps on Search Head Cluster as well a Example: SearchHeadCluster.yaml ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: SearchHeadCluster metadata: name: shc @@ -192,11 +192,11 @@ For more information, see the [Description of App Framework Specification fields ## Description of App Framework Specification fields -App Framework configuration is supported on the following Custom Resources: Standalone, ClusterMaster, SearchHeadCluster, and LicenseMaster. Configuring the App framework involves the following steps: +App Framework configuration is supported on the following Custom Resources: Standalone, ClusterMaster, SearchHeadCluster, MonitoringConsole and LicenseMaster. Configuring the App framework involves the following steps: * Remote Source of Apps: Define the remote location including the bucket(s) and path for each bucket * Destination of Apps: Define where the Apps need to be installed (in other words, which Custom resources need to be configured) -* Scope of Apps: Define if the Apps need to be installed locally (such as Standalone) or cluster-wide (such as Indexer cluster, Search Head Cluster) +* Scope of Apps: Define if the Apps need to be installed locally (such as Standalone, Monitoring Console and License Master) or cluster-wide (such as Indexer cluster, Search Head Cluster) Here is a typical App framework configuration in a Custom resource definition: @@ -307,6 +307,7 @@ Here is a typical App framework configuration in a Custom resource definition: | SearchHeadCluster | cluster, clusterWithPreConfig, local | Yes | | Standalone | local | Yes | | LicenceMaster | local | Yes | + | MonitoringConsole | local | Yes | | IndexerCluster | N/A | No | * `volume` refers to the remote storage volume name configured under the `volumes` stanza (see previous section) @@ -320,7 +321,7 @@ Here is a typical App framework configuration in a Custom resource definition: * Splunk Operator CRDs support the configuration of [initialDelaySeconds](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) for both Liveliness (livenessInitialDelaySeconds) and Readiness (readinessInitialDelaySeconds) probes * When App Framework is NOT configured, default values are 300 seconds for livenessInitialDelaySeconds and 10 seconds for readinessInitialDelaySeconds (for all CRs) -* When App Framework is configured, default values are 1800 seconds for livenessInitialDelaySeconds and 10 seconds for readinessInitialDelaySeconds (only for Deployer, Cluster Master, Standalone and License Master CRs). The higher value of livenessInitialDelaySeconds is to ensure sufficient time is allocated for installing most apps. This configuration can further be managed depending on the number & size of Apps to be installed +* When App Framework is configured, default values are 1800 seconds for livenessInitialDelaySeconds and 10 seconds for readinessInitialDelaySeconds (only for Deployer, Cluster Master, Standalone, Monitoring Console and License Master CRs). The higher value of livenessInitialDelaySeconds is to ensure sufficient time is allocated for installing most apps. This configuration can further be managed depending on the number & size of Apps to be installed ## App Framework Limitations diff --git a/docs/CustomResources.md b/docs/CustomResources.md index 2b19601bf..0f8247425 100644 --- a/docs/CustomResources.md +++ b/docs/CustomResources.md @@ -34,7 +34,7 @@ you would like the resource to reside within: If you do not provide a `namespace`, you current context will be used. ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: s1 @@ -52,7 +52,7 @@ associated with the instance when you delete it. ## Common Spec Parameters for All Resources ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: example @@ -93,7 +93,7 @@ configuration parameters: ## Common Spec Parameters for Splunk Enterprise Resources ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: example @@ -135,7 +135,7 @@ Enterprise resources, including: `Standalone`, `LicenseMaster`, ## LicenseMaster Resource Spec Parameters ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: LicenseMaster metadata: name: example @@ -155,7 +155,7 @@ The `LicenseMaster` resource does not provide any additional configuration param ## Standalone Resource Spec Parameters ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: standalone @@ -178,7 +178,7 @@ the `Standalone` resource provides the following `Spec` configuration parameters ## SearchHeadCluster Resource Spec Parameters ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: SearchHeadCluster metadata: name: example @@ -197,7 +197,7 @@ the `SearchHeadCluster` resource provides the following `Spec` configuration par ## ClusterMaster Resource Spec Parameters ClusterMaster resource does not have a required spec parameter, but to configure SmartStore, you can specify indexes and volume configuration as below - ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: ClusterMaster metadata: name: example-cm @@ -226,7 +226,7 @@ spec: ## IndexerCluster Resource Spec Parameters ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: IndexerCluster metadata: name: example @@ -250,7 +250,7 @@ the `IndexerCluster` resource provides the following `Spec` configuration parame ```yaml cat < diff --git a/docs/StorageClass.md b/docs/StorageClass.md index 003394391..5e8544889 100644 --- a/docs/StorageClass.md +++ b/docs/StorageClass.md @@ -14,7 +14,7 @@ You can customize the storage capacity and storage class name used by the `/opt/ For example: ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: example @@ -59,7 +59,7 @@ For testing and demonstration of Splunk Enterprise instances, you have the optio For example: ```yaml -apiVersion: enterprise.splunk.com/v2 +apiVersion: enterprise.splunk.com/v3 kind: Standalone metadata: name: example diff --git a/pkg/apis/addtoscheme_enterprise_v3.go b/pkg/apis/addtoscheme_enterprise_v3.go new file mode 100644 index 000000000..a6b9d2e81 --- /dev/null +++ b/pkg/apis/addtoscheme_enterprise_v3.go @@ -0,0 +1,24 @@ +// Copyright (c) 2018-2021 Splunk Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package apis + +import ( + v3 "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" +) + +func init() { + // Register the types with the Scheme so the components can map objects to GroupVersionKinds and back + AddToSchemes = append(AddToSchemes, v3.SchemeBuilder.AddToScheme) +} diff --git a/pkg/apis/enterprise/v2/zz_generated.deepcopy.go b/pkg/apis/enterprise/v2/zz_generated.deepcopy.go index d6f5dcf3c..b7998cf00 100644 --- a/pkg/apis/enterprise/v2/zz_generated.deepcopy.go +++ b/pkg/apis/enterprise/v2/zz_generated.deepcopy.go @@ -3,1014 +3,3 @@ // Code generated by operator-sdk. DO NOT EDIT. package v2 - -import ( - v1 "k8s.io/api/core/v1" - runtime "k8s.io/apimachinery/pkg/runtime" -) - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AppDeploymentContext) DeepCopyInto(out *AppDeploymentContext) { - *out = *in - in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) - if in.AppsSrcDeployStatus != nil { - in, out := &in.AppsSrcDeployStatus, &out.AppsSrcDeployStatus - *out = make(map[string]AppSrcDeployInfo, len(*in)) - for key, val := range *in { - (*out)[key] = *val.DeepCopy() - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeploymentContext. -func (in *AppDeploymentContext) DeepCopy() *AppDeploymentContext { - if in == nil { - return nil - } - out := new(AppDeploymentContext) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AppDeploymentInfo) DeepCopyInto(out *AppDeploymentInfo) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeploymentInfo. -func (in *AppDeploymentInfo) DeepCopy() *AppDeploymentInfo { - if in == nil { - return nil - } - out := new(AppDeploymentInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AppFrameworkSpec) DeepCopyInto(out *AppFrameworkSpec) { - *out = *in - out.Defaults = in.Defaults - if in.VolList != nil { - in, out := &in.VolList, &out.VolList - *out = make([]VolumeSpec, len(*in)) - copy(*out, *in) - } - if in.AppSources != nil { - in, out := &in.AppSources, &out.AppSources - *out = make([]AppSourceSpec, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFrameworkSpec. -func (in *AppFrameworkSpec) DeepCopy() *AppFrameworkSpec { - if in == nil { - return nil - } - out := new(AppFrameworkSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AppSourceDefaultSpec) DeepCopyInto(out *AppSourceDefaultSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSourceDefaultSpec. -func (in *AppSourceDefaultSpec) DeepCopy() *AppSourceDefaultSpec { - if in == nil { - return nil - } - out := new(AppSourceDefaultSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AppSourceSpec) DeepCopyInto(out *AppSourceSpec) { - *out = *in - out.AppSourceDefaultSpec = in.AppSourceDefaultSpec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSourceSpec. -func (in *AppSourceSpec) DeepCopy() *AppSourceSpec { - if in == nil { - return nil - } - out := new(AppSourceSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *AppSrcDeployInfo) DeepCopyInto(out *AppSrcDeployInfo) { - *out = *in - if in.AppDeploymentInfoList != nil { - in, out := &in.AppDeploymentInfoList, &out.AppDeploymentInfoList - *out = make([]AppDeploymentInfo, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSrcDeployInfo. -func (in *AppSrcDeployInfo) DeepCopy() *AppSrcDeployInfo { - if in == nil { - return nil - } - out := new(AppSrcDeployInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *BundlePushInfo) DeepCopyInto(out *BundlePushInfo) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundlePushInfo. -func (in *BundlePushInfo) DeepCopy() *BundlePushInfo { - if in == nil { - return nil - } - out := new(BundlePushInfo) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CacheManagerSpec) DeepCopyInto(out *CacheManagerSpec) { - *out = *in - out.IndexAndCacheManagerCommonSpec = in.IndexAndCacheManagerCommonSpec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheManagerSpec. -func (in *CacheManagerSpec) DeepCopy() *CacheManagerSpec { - if in == nil { - return nil - } - out := new(CacheManagerSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterMaster) DeepCopyInto(out *ClusterMaster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMaster. -func (in *ClusterMaster) DeepCopy() *ClusterMaster { - if in == nil { - return nil - } - out := new(ClusterMaster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterMaster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterMasterList) DeepCopyInto(out *ClusterMasterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]ClusterMaster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMasterList. -func (in *ClusterMasterList) DeepCopy() *ClusterMasterList { - if in == nil { - return nil - } - out := new(ClusterMasterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *ClusterMasterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterMasterSpec) DeepCopyInto(out *ClusterMasterSpec) { - *out = *in - in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) - in.SmartStore.DeepCopyInto(&out.SmartStore) - in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMasterSpec. -func (in *ClusterMasterSpec) DeepCopy() *ClusterMasterSpec { - if in == nil { - return nil - } - out := new(ClusterMasterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *ClusterMasterStatus) DeepCopyInto(out *ClusterMasterStatus) { - *out = *in - in.SmartStore.DeepCopyInto(&out.SmartStore) - out.BundlePushTracker = in.BundlePushTracker - if in.ResourceRevMap != nil { - in, out := &in.ResourceRevMap, &out.ResourceRevMap - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - in.AppContext.DeepCopyInto(&out.AppContext) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMasterStatus. -func (in *ClusterMasterStatus) DeepCopy() *ClusterMasterStatus { - if in == nil { - return nil - } - out := new(ClusterMasterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *CommonSplunkSpec) DeepCopyInto(out *CommonSplunkSpec) { - *out = *in - in.Spec.DeepCopyInto(&out.Spec) - out.EtcVolumeStorageConfig = in.EtcVolumeStorageConfig - out.VarVolumeStorageConfig = in.VarVolumeStorageConfig - if in.Volumes != nil { - in, out := &in.Volumes, &out.Volumes - *out = make([]v1.Volume, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - out.LicenseMasterRef = in.LicenseMasterRef - out.ClusterMasterRef = in.ClusterMasterRef - out.MonitoringConsoleRef = in.MonitoringConsoleRef - if in.ExtraEnv != nil { - in, out := &in.ExtraEnv, &out.ExtraEnv - *out = make([]v1.EnvVar, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonSplunkSpec. -func (in *CommonSplunkSpec) DeepCopy() *CommonSplunkSpec { - if in == nil { - return nil - } - out := new(CommonSplunkSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexAndCacheManagerCommonSpec) DeepCopyInto(out *IndexAndCacheManagerCommonSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexAndCacheManagerCommonSpec. -func (in *IndexAndCacheManagerCommonSpec) DeepCopy() *IndexAndCacheManagerCommonSpec { - if in == nil { - return nil - } - out := new(IndexAndCacheManagerCommonSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexAndGlobalCommonSpec) DeepCopyInto(out *IndexAndGlobalCommonSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexAndGlobalCommonSpec. -func (in *IndexAndGlobalCommonSpec) DeepCopy() *IndexAndGlobalCommonSpec { - if in == nil { - return nil - } - out := new(IndexAndGlobalCommonSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexConfDefaultsSpec) DeepCopyInto(out *IndexConfDefaultsSpec) { - *out = *in - out.IndexAndGlobalCommonSpec = in.IndexAndGlobalCommonSpec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexConfDefaultsSpec. -func (in *IndexConfDefaultsSpec) DeepCopy() *IndexConfDefaultsSpec { - if in == nil { - return nil - } - out := new(IndexConfDefaultsSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexSpec) DeepCopyInto(out *IndexSpec) { - *out = *in - out.IndexAndCacheManagerCommonSpec = in.IndexAndCacheManagerCommonSpec - out.IndexAndGlobalCommonSpec = in.IndexAndGlobalCommonSpec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexSpec. -func (in *IndexSpec) DeepCopy() *IndexSpec { - if in == nil { - return nil - } - out := new(IndexSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexerCluster) DeepCopyInto(out *IndexerCluster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerCluster. -func (in *IndexerCluster) DeepCopy() *IndexerCluster { - if in == nil { - return nil - } - out := new(IndexerCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IndexerCluster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexerClusterList) DeepCopyInto(out *IndexerClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]IndexerCluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterList. -func (in *IndexerClusterList) DeepCopy() *IndexerClusterList { - if in == nil { - return nil - } - out := new(IndexerClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *IndexerClusterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexerClusterMemberStatus) DeepCopyInto(out *IndexerClusterMemberStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterMemberStatus. -func (in *IndexerClusterMemberStatus) DeepCopy() *IndexerClusterMemberStatus { - if in == nil { - return nil - } - out := new(IndexerClusterMemberStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexerClusterSpec) DeepCopyInto(out *IndexerClusterSpec) { - *out = *in - in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterSpec. -func (in *IndexerClusterSpec) DeepCopy() *IndexerClusterSpec { - if in == nil { - return nil - } - out := new(IndexerClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *IndexerClusterStatus) DeepCopyInto(out *IndexerClusterStatus) { - *out = *in - if in.IndexerSecretChanged != nil { - in, out := &in.IndexerSecretChanged, &out.IndexerSecretChanged - *out = make([]bool, len(*in)) - copy(*out, *in) - } - if in.IdxcPasswordChangedSecrets != nil { - in, out := &in.IdxcPasswordChangedSecrets, &out.IdxcPasswordChangedSecrets - *out = make(map[string]bool, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Peers != nil { - in, out := &in.Peers, &out.Peers - *out = make([]IndexerClusterMemberStatus, len(*in)) - copy(*out, *in) - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterStatus. -func (in *IndexerClusterStatus) DeepCopy() *IndexerClusterStatus { - if in == nil { - return nil - } - out := new(IndexerClusterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseMaster) DeepCopyInto(out *LicenseMaster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMaster. -func (in *LicenseMaster) DeepCopy() *LicenseMaster { - if in == nil { - return nil - } - out := new(LicenseMaster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseMaster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseMasterList) DeepCopyInto(out *LicenseMasterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]LicenseMaster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMasterList. -func (in *LicenseMasterList) DeepCopy() *LicenseMasterList { - if in == nil { - return nil - } - out := new(LicenseMasterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *LicenseMasterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseMasterSpec) DeepCopyInto(out *LicenseMasterSpec) { - *out = *in - in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) - in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMasterSpec. -func (in *LicenseMasterSpec) DeepCopy() *LicenseMasterSpec { - if in == nil { - return nil - } - out := new(LicenseMasterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *LicenseMasterStatus) DeepCopyInto(out *LicenseMasterStatus) { - *out = *in - in.AppContext.DeepCopyInto(&out.AppContext) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMasterStatus. -func (in *LicenseMasterStatus) DeepCopy() *LicenseMasterStatus { - if in == nil { - return nil - } - out := new(LicenseMasterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MonitoringConsole) DeepCopyInto(out *MonitoringConsole) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsole. -func (in *MonitoringConsole) DeepCopy() *MonitoringConsole { - if in == nil { - return nil - } - out := new(MonitoringConsole) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MonitoringConsole) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MonitoringConsoleList) DeepCopyInto(out *MonitoringConsoleList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]MonitoringConsole, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsoleList. -func (in *MonitoringConsoleList) DeepCopy() *MonitoringConsoleList { - if in == nil { - return nil - } - out := new(MonitoringConsoleList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *MonitoringConsoleList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MonitoringConsoleSpec) DeepCopyInto(out *MonitoringConsoleSpec) { - *out = *in - in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) - in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsoleSpec. -func (in *MonitoringConsoleSpec) DeepCopy() *MonitoringConsoleSpec { - if in == nil { - return nil - } - out := new(MonitoringConsoleSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *MonitoringConsoleStatus) DeepCopyInto(out *MonitoringConsoleStatus) { - *out = *in - out.BundlePushTracker = in.BundlePushTracker - if in.ResourceRevMap != nil { - in, out := &in.ResourceRevMap, &out.ResourceRevMap - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - in.AppContext.DeepCopyInto(&out.AppContext) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsoleStatus. -func (in *MonitoringConsoleStatus) DeepCopy() *MonitoringConsoleStatus { - if in == nil { - return nil - } - out := new(MonitoringConsoleStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SearchHeadCluster) DeepCopyInto(out *SearchHeadCluster) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadCluster. -func (in *SearchHeadCluster) DeepCopy() *SearchHeadCluster { - if in == nil { - return nil - } - out := new(SearchHeadCluster) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SearchHeadCluster) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SearchHeadClusterList) DeepCopyInto(out *SearchHeadClusterList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]SearchHeadCluster, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterList. -func (in *SearchHeadClusterList) DeepCopy() *SearchHeadClusterList { - if in == nil { - return nil - } - out := new(SearchHeadClusterList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *SearchHeadClusterList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SearchHeadClusterMemberStatus) DeepCopyInto(out *SearchHeadClusterMemberStatus) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterMemberStatus. -func (in *SearchHeadClusterMemberStatus) DeepCopy() *SearchHeadClusterMemberStatus { - if in == nil { - return nil - } - out := new(SearchHeadClusterMemberStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SearchHeadClusterSpec) DeepCopyInto(out *SearchHeadClusterSpec) { - *out = *in - in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) - in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterSpec. -func (in *SearchHeadClusterSpec) DeepCopy() *SearchHeadClusterSpec { - if in == nil { - return nil - } - out := new(SearchHeadClusterSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SearchHeadClusterStatus) DeepCopyInto(out *SearchHeadClusterStatus) { - *out = *in - if in.ShcSecretChanged != nil { - in, out := &in.ShcSecretChanged, &out.ShcSecretChanged - *out = make([]bool, len(*in)) - copy(*out, *in) - } - if in.AdminSecretChanged != nil { - in, out := &in.AdminSecretChanged, &out.AdminSecretChanged - *out = make([]bool, len(*in)) - copy(*out, *in) - } - if in.AdminPasswordChangedSecrets != nil { - in, out := &in.AdminPasswordChangedSecrets, &out.AdminPasswordChangedSecrets - *out = make(map[string]bool, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - if in.Members != nil { - in, out := &in.Members, &out.Members - *out = make([]SearchHeadClusterMemberStatus, len(*in)) - copy(*out, *in) - } - in.AppContext.DeepCopyInto(&out.AppContext) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterStatus. -func (in *SearchHeadClusterStatus) DeepCopy() *SearchHeadClusterStatus { - if in == nil { - return nil - } - out := new(SearchHeadClusterStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *SmartStoreSpec) DeepCopyInto(out *SmartStoreSpec) { - *out = *in - if in.VolList != nil { - in, out := &in.VolList, &out.VolList - *out = make([]VolumeSpec, len(*in)) - copy(*out, *in) - } - if in.IndexList != nil { - in, out := &in.IndexList, &out.IndexList - *out = make([]IndexSpec, len(*in)) - copy(*out, *in) - } - out.Defaults = in.Defaults - out.CacheManagerConf = in.CacheManagerConf - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SmartStoreSpec. -func (in *SmartStoreSpec) DeepCopy() *SmartStoreSpec { - if in == nil { - return nil - } - out := new(SmartStoreSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *Standalone) DeepCopyInto(out *Standalone) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) - in.Spec.DeepCopyInto(&out.Spec) - in.Status.DeepCopyInto(&out.Status) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Standalone. -func (in *Standalone) DeepCopy() *Standalone { - if in == nil { - return nil - } - out := new(Standalone) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *Standalone) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StandaloneList) DeepCopyInto(out *StandaloneList) { - *out = *in - out.TypeMeta = in.TypeMeta - in.ListMeta.DeepCopyInto(&out.ListMeta) - if in.Items != nil { - in, out := &in.Items, &out.Items - *out = make([]Standalone, len(*in)) - for i := range *in { - (*in)[i].DeepCopyInto(&(*out)[i]) - } - } - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneList. -func (in *StandaloneList) DeepCopy() *StandaloneList { - if in == nil { - return nil - } - out := new(StandaloneList) - in.DeepCopyInto(out) - return out -} - -// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. -func (in *StandaloneList) DeepCopyObject() runtime.Object { - if c := in.DeepCopy(); c != nil { - return c - } - return nil -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StandaloneSpec) DeepCopyInto(out *StandaloneSpec) { - *out = *in - in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) - in.SmartStore.DeepCopyInto(&out.SmartStore) - in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneSpec. -func (in *StandaloneSpec) DeepCopy() *StandaloneSpec { - if in == nil { - return nil - } - out := new(StandaloneSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StandaloneStatus) DeepCopyInto(out *StandaloneStatus) { - *out = *in - in.SmartStore.DeepCopyInto(&out.SmartStore) - if in.ResourceRevMap != nil { - in, out := &in.ResourceRevMap, &out.ResourceRevMap - *out = make(map[string]string, len(*in)) - for key, val := range *in { - (*out)[key] = val - } - } - in.AppContext.DeepCopyInto(&out.AppContext) - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneStatus. -func (in *StandaloneStatus) DeepCopy() *StandaloneStatus { - if in == nil { - return nil - } - out := new(StandaloneStatus) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *StorageClassSpec) DeepCopyInto(out *StorageClassSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassSpec. -func (in *StorageClassSpec) DeepCopy() *StorageClassSpec { - if in == nil { - return nil - } - out := new(StorageClassSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeAndTypeSpec) DeepCopyInto(out *VolumeAndTypeSpec) { - *out = *in - out.VolumeSpec = in.VolumeSpec - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAndTypeSpec. -func (in *VolumeAndTypeSpec) DeepCopy() *VolumeAndTypeSpec { - if in == nil { - return nil - } - out := new(VolumeAndTypeSpec) - in.DeepCopyInto(out) - return out -} - -// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. -func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec) { - *out = *in - return -} - -// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec. -func (in *VolumeSpec) DeepCopy() *VolumeSpec { - if in == nil { - return nil - } - out := new(VolumeSpec) - in.DeepCopyInto(out) - return out -} diff --git a/pkg/apis/enterprise/v2/clustermaster_types.go b/pkg/apis/enterprise/v3/clustermaster_types.go similarity index 99% rename from pkg/apis/enterprise/v2/clustermaster_types.go rename to pkg/apis/enterprise/v3/clustermaster_types.go index 345d46224..ab6978fb8 100644 --- a/pkg/apis/enterprise/v2/clustermaster_types.go +++ b/pkg/apis/enterprise/v3/clustermaster_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" diff --git a/pkg/apis/enterprise/v2/common_types.go b/pkg/apis/enterprise/v3/common_types.go similarity index 99% rename from pkg/apis/enterprise/v2/common_types.go rename to pkg/apis/enterprise/v3/common_types.go index 2dc37f54b..99135fc06 100644 --- a/pkg/apis/enterprise/v2/common_types.go +++ b/pkg/apis/enterprise/v3/common_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( corev1 "k8s.io/api/core/v1" @@ -22,7 +22,7 @@ import ( const ( // APIVersion is a string representation of this API - APIVersion = "enterprise.splunk.com/v2" + APIVersion = "enterprise.splunk.com/v3" ) // default all fields to being optional diff --git a/pkg/apis/enterprise/v3/doc.go b/pkg/apis/enterprise/v3/doc.go new file mode 100644 index 000000000..78190cec2 --- /dev/null +++ b/pkg/apis/enterprise/v3/doc.go @@ -0,0 +1,18 @@ +// Copyright (c) 2018-2021 Splunk Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Package v3 contains API Schema definitions for the enterprise v3 API group +// +k8s:deepcopy-gen=package,register +// +groupName=enterprise.splunk.com +package v3 diff --git a/pkg/apis/enterprise/v2/indexercluster_types.go b/pkg/apis/enterprise/v3/indexercluster_types.go similarity index 99% rename from pkg/apis/enterprise/v2/indexercluster_types.go rename to pkg/apis/enterprise/v3/indexercluster_types.go index 30971bbed..a36521cd6 100644 --- a/pkg/apis/enterprise/v2/indexercluster_types.go +++ b/pkg/apis/enterprise/v3/indexercluster_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/apis/enterprise/v2/licensemaster_types.go b/pkg/apis/enterprise/v3/licensemaster_types.go similarity index 99% rename from pkg/apis/enterprise/v2/licensemaster_types.go rename to pkg/apis/enterprise/v3/licensemaster_types.go index 033ac865a..048af3bdc 100644 --- a/pkg/apis/enterprise/v2/licensemaster_types.go +++ b/pkg/apis/enterprise/v3/licensemaster_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/apis/enterprise/v2/monitoringconsole_types.go b/pkg/apis/enterprise/v3/monitoringconsole_types.go similarity index 99% rename from pkg/apis/enterprise/v2/monitoringconsole_types.go rename to pkg/apis/enterprise/v3/monitoringconsole_types.go index 198b4e922..63948e92b 100644 --- a/pkg/apis/enterprise/v2/monitoringconsole_types.go +++ b/pkg/apis/enterprise/v3/monitoringconsole_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" diff --git a/pkg/apis/enterprise/v3/register.go b/pkg/apis/enterprise/v3/register.go new file mode 100644 index 000000000..d868323a5 --- /dev/null +++ b/pkg/apis/enterprise/v3/register.go @@ -0,0 +1,33 @@ +// Copyright (c) 2018-2021 Splunk Inc. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// NOTE: Boilerplate only. Ignore this file. + +// Package v3 contains API Schema definitions for the enterprise v3 API group +// +k8s:deepcopy-gen=package,register +// +groupName=enterprise.splunk.com +package v3 + +import ( + "k8s.io/apimachinery/pkg/runtime/schema" + "sigs.k8s.io/controller-runtime/pkg/scheme" +) + +var ( + // SchemeGroupVersion is group version used to register these objects + SchemeGroupVersion = schema.GroupVersion{Group: "enterprise.splunk.com", Version: "v3"} + + // SchemeBuilder is used to add go types to the GroupVersionKind scheme + SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} +) diff --git a/pkg/apis/enterprise/v2/searchheadcluster_types.go b/pkg/apis/enterprise/v3/searchheadcluster_types.go similarity index 99% rename from pkg/apis/enterprise/v2/searchheadcluster_types.go rename to pkg/apis/enterprise/v3/searchheadcluster_types.go index e548aaf0e..559d30692 100644 --- a/pkg/apis/enterprise/v2/searchheadcluster_types.go +++ b/pkg/apis/enterprise/v3/searchheadcluster_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/apis/enterprise/v2/standalone_types.go b/pkg/apis/enterprise/v3/standalone_types.go similarity index 99% rename from pkg/apis/enterprise/v2/standalone_types.go rename to pkg/apis/enterprise/v3/standalone_types.go index f697cc784..f8d6446dc 100644 --- a/pkg/apis/enterprise/v2/standalone_types.go +++ b/pkg/apis/enterprise/v3/standalone_types.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -package v2 +package v3 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/pkg/apis/enterprise/v3/zz_generated.deepcopy.go b/pkg/apis/enterprise/v3/zz_generated.deepcopy.go new file mode 100644 index 000000000..7937131f8 --- /dev/null +++ b/pkg/apis/enterprise/v3/zz_generated.deepcopy.go @@ -0,0 +1,1016 @@ +// +build !ignore_autogenerated + +// Code generated by operator-sdk. DO NOT EDIT. + +package v3 + +import ( + v1 "k8s.io/api/core/v1" + runtime "k8s.io/apimachinery/pkg/runtime" +) + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppDeploymentContext) DeepCopyInto(out *AppDeploymentContext) { + *out = *in + in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) + if in.AppsSrcDeployStatus != nil { + in, out := &in.AppsSrcDeployStatus, &out.AppsSrcDeployStatus + *out = make(map[string]AppSrcDeployInfo, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeploymentContext. +func (in *AppDeploymentContext) DeepCopy() *AppDeploymentContext { + if in == nil { + return nil + } + out := new(AppDeploymentContext) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppDeploymentInfo) DeepCopyInto(out *AppDeploymentInfo) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppDeploymentInfo. +func (in *AppDeploymentInfo) DeepCopy() *AppDeploymentInfo { + if in == nil { + return nil + } + out := new(AppDeploymentInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppFrameworkSpec) DeepCopyInto(out *AppFrameworkSpec) { + *out = *in + out.Defaults = in.Defaults + if in.VolList != nil { + in, out := &in.VolList, &out.VolList + *out = make([]VolumeSpec, len(*in)) + copy(*out, *in) + } + if in.AppSources != nil { + in, out := &in.AppSources, &out.AppSources + *out = make([]AppSourceSpec, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppFrameworkSpec. +func (in *AppFrameworkSpec) DeepCopy() *AppFrameworkSpec { + if in == nil { + return nil + } + out := new(AppFrameworkSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppSourceDefaultSpec) DeepCopyInto(out *AppSourceDefaultSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSourceDefaultSpec. +func (in *AppSourceDefaultSpec) DeepCopy() *AppSourceDefaultSpec { + if in == nil { + return nil + } + out := new(AppSourceDefaultSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppSourceSpec) DeepCopyInto(out *AppSourceSpec) { + *out = *in + out.AppSourceDefaultSpec = in.AppSourceDefaultSpec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSourceSpec. +func (in *AppSourceSpec) DeepCopy() *AppSourceSpec { + if in == nil { + return nil + } + out := new(AppSourceSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *AppSrcDeployInfo) DeepCopyInto(out *AppSrcDeployInfo) { + *out = *in + if in.AppDeploymentInfoList != nil { + in, out := &in.AppDeploymentInfoList, &out.AppDeploymentInfoList + *out = make([]AppDeploymentInfo, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSrcDeployInfo. +func (in *AppSrcDeployInfo) DeepCopy() *AppSrcDeployInfo { + if in == nil { + return nil + } + out := new(AppSrcDeployInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *BundlePushInfo) DeepCopyInto(out *BundlePushInfo) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BundlePushInfo. +func (in *BundlePushInfo) DeepCopy() *BundlePushInfo { + if in == nil { + return nil + } + out := new(BundlePushInfo) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CacheManagerSpec) DeepCopyInto(out *CacheManagerSpec) { + *out = *in + out.IndexAndCacheManagerCommonSpec = in.IndexAndCacheManagerCommonSpec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CacheManagerSpec. +func (in *CacheManagerSpec) DeepCopy() *CacheManagerSpec { + if in == nil { + return nil + } + out := new(CacheManagerSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterMaster) DeepCopyInto(out *ClusterMaster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMaster. +func (in *ClusterMaster) DeepCopy() *ClusterMaster { + if in == nil { + return nil + } + out := new(ClusterMaster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterMaster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterMasterList) DeepCopyInto(out *ClusterMasterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]ClusterMaster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMasterList. +func (in *ClusterMasterList) DeepCopy() *ClusterMasterList { + if in == nil { + return nil + } + out := new(ClusterMasterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *ClusterMasterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterMasterSpec) DeepCopyInto(out *ClusterMasterSpec) { + *out = *in + in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) + in.SmartStore.DeepCopyInto(&out.SmartStore) + in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMasterSpec. +func (in *ClusterMasterSpec) DeepCopy() *ClusterMasterSpec { + if in == nil { + return nil + } + out := new(ClusterMasterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *ClusterMasterStatus) DeepCopyInto(out *ClusterMasterStatus) { + *out = *in + in.SmartStore.DeepCopyInto(&out.SmartStore) + out.BundlePushTracker = in.BundlePushTracker + if in.ResourceRevMap != nil { + in, out := &in.ResourceRevMap, &out.ResourceRevMap + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + in.AppContext.DeepCopyInto(&out.AppContext) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterMasterStatus. +func (in *ClusterMasterStatus) DeepCopy() *ClusterMasterStatus { + if in == nil { + return nil + } + out := new(ClusterMasterStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *CommonSplunkSpec) DeepCopyInto(out *CommonSplunkSpec) { + *out = *in + in.Spec.DeepCopyInto(&out.Spec) + out.EtcVolumeStorageConfig = in.EtcVolumeStorageConfig + out.VarVolumeStorageConfig = in.VarVolumeStorageConfig + if in.Volumes != nil { + in, out := &in.Volumes, &out.Volumes + *out = make([]v1.Volume, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + out.LicenseMasterRef = in.LicenseMasterRef + out.ClusterMasterRef = in.ClusterMasterRef + out.MonitoringConsoleRef = in.MonitoringConsoleRef + if in.ExtraEnv != nil { + in, out := &in.ExtraEnv, &out.ExtraEnv + *out = make([]v1.EnvVar, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CommonSplunkSpec. +func (in *CommonSplunkSpec) DeepCopy() *CommonSplunkSpec { + if in == nil { + return nil + } + out := new(CommonSplunkSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexAndCacheManagerCommonSpec) DeepCopyInto(out *IndexAndCacheManagerCommonSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexAndCacheManagerCommonSpec. +func (in *IndexAndCacheManagerCommonSpec) DeepCopy() *IndexAndCacheManagerCommonSpec { + if in == nil { + return nil + } + out := new(IndexAndCacheManagerCommonSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexAndGlobalCommonSpec) DeepCopyInto(out *IndexAndGlobalCommonSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexAndGlobalCommonSpec. +func (in *IndexAndGlobalCommonSpec) DeepCopy() *IndexAndGlobalCommonSpec { + if in == nil { + return nil + } + out := new(IndexAndGlobalCommonSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexConfDefaultsSpec) DeepCopyInto(out *IndexConfDefaultsSpec) { + *out = *in + out.IndexAndGlobalCommonSpec = in.IndexAndGlobalCommonSpec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexConfDefaultsSpec. +func (in *IndexConfDefaultsSpec) DeepCopy() *IndexConfDefaultsSpec { + if in == nil { + return nil + } + out := new(IndexConfDefaultsSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexSpec) DeepCopyInto(out *IndexSpec) { + *out = *in + out.IndexAndCacheManagerCommonSpec = in.IndexAndCacheManagerCommonSpec + out.IndexAndGlobalCommonSpec = in.IndexAndGlobalCommonSpec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexSpec. +func (in *IndexSpec) DeepCopy() *IndexSpec { + if in == nil { + return nil + } + out := new(IndexSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexerCluster) DeepCopyInto(out *IndexerCluster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerCluster. +func (in *IndexerCluster) DeepCopy() *IndexerCluster { + if in == nil { + return nil + } + out := new(IndexerCluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IndexerCluster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexerClusterList) DeepCopyInto(out *IndexerClusterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]IndexerCluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterList. +func (in *IndexerClusterList) DeepCopy() *IndexerClusterList { + if in == nil { + return nil + } + out := new(IndexerClusterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *IndexerClusterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexerClusterMemberStatus) DeepCopyInto(out *IndexerClusterMemberStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterMemberStatus. +func (in *IndexerClusterMemberStatus) DeepCopy() *IndexerClusterMemberStatus { + if in == nil { + return nil + } + out := new(IndexerClusterMemberStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexerClusterSpec) DeepCopyInto(out *IndexerClusterSpec) { + *out = *in + in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterSpec. +func (in *IndexerClusterSpec) DeepCopy() *IndexerClusterSpec { + if in == nil { + return nil + } + out := new(IndexerClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *IndexerClusterStatus) DeepCopyInto(out *IndexerClusterStatus) { + *out = *in + if in.IndexerSecretChanged != nil { + in, out := &in.IndexerSecretChanged, &out.IndexerSecretChanged + *out = make([]bool, len(*in)) + copy(*out, *in) + } + if in.IdxcPasswordChangedSecrets != nil { + in, out := &in.IdxcPasswordChangedSecrets, &out.IdxcPasswordChangedSecrets + *out = make(map[string]bool, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Peers != nil { + in, out := &in.Peers, &out.Peers + *out = make([]IndexerClusterMemberStatus, len(*in)) + copy(*out, *in) + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexerClusterStatus. +func (in *IndexerClusterStatus) DeepCopy() *IndexerClusterStatus { + if in == nil { + return nil + } + out := new(IndexerClusterStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseMaster) DeepCopyInto(out *LicenseMaster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMaster. +func (in *LicenseMaster) DeepCopy() *LicenseMaster { + if in == nil { + return nil + } + out := new(LicenseMaster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseMaster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseMasterList) DeepCopyInto(out *LicenseMasterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]LicenseMaster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMasterList. +func (in *LicenseMasterList) DeepCopy() *LicenseMasterList { + if in == nil { + return nil + } + out := new(LicenseMasterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *LicenseMasterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseMasterSpec) DeepCopyInto(out *LicenseMasterSpec) { + *out = *in + in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) + in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMasterSpec. +func (in *LicenseMasterSpec) DeepCopy() *LicenseMasterSpec { + if in == nil { + return nil + } + out := new(LicenseMasterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseMasterStatus) DeepCopyInto(out *LicenseMasterStatus) { + *out = *in + in.AppContext.DeepCopyInto(&out.AppContext) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseMasterStatus. +func (in *LicenseMasterStatus) DeepCopy() *LicenseMasterStatus { + if in == nil { + return nil + } + out := new(LicenseMasterStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MonitoringConsole) DeepCopyInto(out *MonitoringConsole) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsole. +func (in *MonitoringConsole) DeepCopy() *MonitoringConsole { + if in == nil { + return nil + } + out := new(MonitoringConsole) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MonitoringConsole) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MonitoringConsoleList) DeepCopyInto(out *MonitoringConsoleList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]MonitoringConsole, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsoleList. +func (in *MonitoringConsoleList) DeepCopy() *MonitoringConsoleList { + if in == nil { + return nil + } + out := new(MonitoringConsoleList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *MonitoringConsoleList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MonitoringConsoleSpec) DeepCopyInto(out *MonitoringConsoleSpec) { + *out = *in + in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) + in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsoleSpec. +func (in *MonitoringConsoleSpec) DeepCopy() *MonitoringConsoleSpec { + if in == nil { + return nil + } + out := new(MonitoringConsoleSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *MonitoringConsoleStatus) DeepCopyInto(out *MonitoringConsoleStatus) { + *out = *in + out.BundlePushTracker = in.BundlePushTracker + if in.ResourceRevMap != nil { + in, out := &in.ResourceRevMap, &out.ResourceRevMap + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + in.AppContext.DeepCopyInto(&out.AppContext) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitoringConsoleStatus. +func (in *MonitoringConsoleStatus) DeepCopy() *MonitoringConsoleStatus { + if in == nil { + return nil + } + out := new(MonitoringConsoleStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SearchHeadCluster) DeepCopyInto(out *SearchHeadCluster) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadCluster. +func (in *SearchHeadCluster) DeepCopy() *SearchHeadCluster { + if in == nil { + return nil + } + out := new(SearchHeadCluster) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SearchHeadCluster) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SearchHeadClusterList) DeepCopyInto(out *SearchHeadClusterList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]SearchHeadCluster, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterList. +func (in *SearchHeadClusterList) DeepCopy() *SearchHeadClusterList { + if in == nil { + return nil + } + out := new(SearchHeadClusterList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *SearchHeadClusterList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SearchHeadClusterMemberStatus) DeepCopyInto(out *SearchHeadClusterMemberStatus) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterMemberStatus. +func (in *SearchHeadClusterMemberStatus) DeepCopy() *SearchHeadClusterMemberStatus { + if in == nil { + return nil + } + out := new(SearchHeadClusterMemberStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SearchHeadClusterSpec) DeepCopyInto(out *SearchHeadClusterSpec) { + *out = *in + in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) + in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterSpec. +func (in *SearchHeadClusterSpec) DeepCopy() *SearchHeadClusterSpec { + if in == nil { + return nil + } + out := new(SearchHeadClusterSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SearchHeadClusterStatus) DeepCopyInto(out *SearchHeadClusterStatus) { + *out = *in + if in.ShcSecretChanged != nil { + in, out := &in.ShcSecretChanged, &out.ShcSecretChanged + *out = make([]bool, len(*in)) + copy(*out, *in) + } + if in.AdminSecretChanged != nil { + in, out := &in.AdminSecretChanged, &out.AdminSecretChanged + *out = make([]bool, len(*in)) + copy(*out, *in) + } + if in.AdminPasswordChangedSecrets != nil { + in, out := &in.AdminPasswordChangedSecrets, &out.AdminPasswordChangedSecrets + *out = make(map[string]bool, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + if in.Members != nil { + in, out := &in.Members, &out.Members + *out = make([]SearchHeadClusterMemberStatus, len(*in)) + copy(*out, *in) + } + in.AppContext.DeepCopyInto(&out.AppContext) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SearchHeadClusterStatus. +func (in *SearchHeadClusterStatus) DeepCopy() *SearchHeadClusterStatus { + if in == nil { + return nil + } + out := new(SearchHeadClusterStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *SmartStoreSpec) DeepCopyInto(out *SmartStoreSpec) { + *out = *in + if in.VolList != nil { + in, out := &in.VolList, &out.VolList + *out = make([]VolumeSpec, len(*in)) + copy(*out, *in) + } + if in.IndexList != nil { + in, out := &in.IndexList, &out.IndexList + *out = make([]IndexSpec, len(*in)) + copy(*out, *in) + } + out.Defaults = in.Defaults + out.CacheManagerConf = in.CacheManagerConf + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SmartStoreSpec. +func (in *SmartStoreSpec) DeepCopy() *SmartStoreSpec { + if in == nil { + return nil + } + out := new(SmartStoreSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *Standalone) DeepCopyInto(out *Standalone) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ObjectMeta.DeepCopyInto(&out.ObjectMeta) + in.Spec.DeepCopyInto(&out.Spec) + in.Status.DeepCopyInto(&out.Status) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Standalone. +func (in *Standalone) DeepCopy() *Standalone { + if in == nil { + return nil + } + out := new(Standalone) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *Standalone) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneList) DeepCopyInto(out *StandaloneList) { + *out = *in + out.TypeMeta = in.TypeMeta + in.ListMeta.DeepCopyInto(&out.ListMeta) + if in.Items != nil { + in, out := &in.Items, &out.Items + *out = make([]Standalone, len(*in)) + for i := range *in { + (*in)[i].DeepCopyInto(&(*out)[i]) + } + } + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneList. +func (in *StandaloneList) DeepCopy() *StandaloneList { + if in == nil { + return nil + } + out := new(StandaloneList) + in.DeepCopyInto(out) + return out +} + +// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object. +func (in *StandaloneList) DeepCopyObject() runtime.Object { + if c := in.DeepCopy(); c != nil { + return c + } + return nil +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneSpec) DeepCopyInto(out *StandaloneSpec) { + *out = *in + in.CommonSplunkSpec.DeepCopyInto(&out.CommonSplunkSpec) + in.SmartStore.DeepCopyInto(&out.SmartStore) + in.AppFrameworkConfig.DeepCopyInto(&out.AppFrameworkConfig) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneSpec. +func (in *StandaloneSpec) DeepCopy() *StandaloneSpec { + if in == nil { + return nil + } + out := new(StandaloneSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StandaloneStatus) DeepCopyInto(out *StandaloneStatus) { + *out = *in + in.SmartStore.DeepCopyInto(&out.SmartStore) + if in.ResourceRevMap != nil { + in, out := &in.ResourceRevMap, &out.ResourceRevMap + *out = make(map[string]string, len(*in)) + for key, val := range *in { + (*out)[key] = val + } + } + in.AppContext.DeepCopyInto(&out.AppContext) + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StandaloneStatus. +func (in *StandaloneStatus) DeepCopy() *StandaloneStatus { + if in == nil { + return nil + } + out := new(StandaloneStatus) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *StorageClassSpec) DeepCopyInto(out *StorageClassSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassSpec. +func (in *StorageClassSpec) DeepCopy() *StorageClassSpec { + if in == nil { + return nil + } + out := new(StorageClassSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeAndTypeSpec) DeepCopyInto(out *VolumeAndTypeSpec) { + *out = *in + out.VolumeSpec = in.VolumeSpec + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeAndTypeSpec. +func (in *VolumeAndTypeSpec) DeepCopy() *VolumeAndTypeSpec { + if in == nil { + return nil + } + out := new(VolumeAndTypeSpec) + in.DeepCopyInto(out) + return out +} + +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *VolumeSpec) DeepCopyInto(out *VolumeSpec) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VolumeSpec. +func (in *VolumeSpec) DeepCopy() *VolumeSpec { + if in == nil { + return nil + } + out := new(VolumeSpec) + in.DeepCopyInto(out) + return out +} diff --git a/pkg/controller/add_clustermaster.go b/pkg/controller/add_clustermaster.go index b252f81f8..dc54f2d89 100644 --- a/pkg/controller/add_clustermaster.go +++ b/pkg/controller/add_clustermaster.go @@ -15,7 +15,7 @@ package controller import ( - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" enterprise "github.com/splunk/splunk-operator/pkg/splunk/enterprise" diff --git a/pkg/controller/add_indexercluster.go b/pkg/controller/add_indexercluster.go index 5ed6fa5e9..ae6fdb893 100644 --- a/pkg/controller/add_indexercluster.go +++ b/pkg/controller/add_indexercluster.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" enterprise "github.com/splunk/splunk-operator/pkg/splunk/enterprise" diff --git a/pkg/controller/add_licensemaster.go b/pkg/controller/add_licensemaster.go index c858773db..2e9d53995 100644 --- a/pkg/controller/add_licensemaster.go +++ b/pkg/controller/add_licensemaster.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" enterprise "github.com/splunk/splunk-operator/pkg/splunk/enterprise" diff --git a/pkg/controller/add_monitoringconsole.go b/pkg/controller/add_monitoringconsole.go index 2c2dcb16c..eb0d60280 100644 --- a/pkg/controller/add_monitoringconsole.go +++ b/pkg/controller/add_monitoringconsole.go @@ -15,7 +15,7 @@ package controller import ( - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" enterprise "github.com/splunk/splunk-operator/pkg/splunk/enterprise" diff --git a/pkg/controller/add_searchheadcluster.go b/pkg/controller/add_searchheadcluster.go index e3b223371..2039177e7 100644 --- a/pkg/controller/add_searchheadcluster.go +++ b/pkg/controller/add_searchheadcluster.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" enterprise "github.com/splunk/splunk-operator/pkg/splunk/enterprise" diff --git a/pkg/controller/add_standalone.go b/pkg/controller/add_standalone.go index 8286fa631..a71db42e4 100644 --- a/pkg/controller/add_standalone.go +++ b/pkg/controller/add_standalone.go @@ -22,7 +22,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" enterprise "github.com/splunk/splunk-operator/pkg/splunk/enterprise" diff --git a/pkg/splunk/client/awss3client_test.go b/pkg/splunk/client/awss3client_test.go index 979c673c0..4437f6fdd 100644 --- a/pkg/splunk/client/awss3client_test.go +++ b/pkg/splunk/client/awss3client_test.go @@ -19,7 +19,7 @@ import ( "testing" "time" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" ) diff --git a/pkg/splunk/client/util.go b/pkg/splunk/client/util.go index 7415e5416..25309e21d 100644 --- a/pkg/splunk/client/util.go +++ b/pkg/splunk/client/util.go @@ -18,7 +18,7 @@ import ( "encoding/json" "fmt" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" ) diff --git a/pkg/splunk/client/util_test.go b/pkg/splunk/client/util_test.go index 7252bbc21..b2ae23ffb 100644 --- a/pkg/splunk/client/util_test.go +++ b/pkg/splunk/client/util_test.go @@ -18,7 +18,7 @@ import ( "reflect" "testing" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" ) diff --git a/pkg/splunk/controller/configmap_test.go b/pkg/splunk/controller/configmap_test.go index 4b517195b..c5c9ace28 100644 --- a/pkg/splunk/controller/configmap_test.go +++ b/pkg/splunk/controller/configmap_test.go @@ -23,7 +23,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/types" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" splutil "github.com/splunk/splunk-operator/pkg/splunk/util" ) diff --git a/pkg/splunk/controller/statefulset_test.go b/pkg/splunk/controller/statefulset_test.go index 188ce19e8..d8863197a 100644 --- a/pkg/splunk/controller/statefulset_test.go +++ b/pkg/splunk/controller/statefulset_test.go @@ -26,7 +26,7 @@ import ( spltest "github.com/splunk/splunk-operator/pkg/splunk/test" splutil "github.com/splunk/splunk-operator/pkg/splunk/util" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" ) diff --git a/pkg/splunk/enterprise/clustermaster.go b/pkg/splunk/enterprise/clustermaster.go index 53247236c..064d87edb 100644 --- a/pkg/splunk/enterprise/clustermaster.go +++ b/pkg/splunk/enterprise/clustermaster.go @@ -21,7 +21,7 @@ import ( "time" "github.com/go-logr/logr" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" appsv1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" diff --git a/pkg/splunk/enterprise/clustermaster_test.go b/pkg/splunk/enterprise/clustermaster_test.go index 93468eb75..9b7315263 100644 --- a/pkg/splunk/enterprise/clustermaster_test.go +++ b/pkg/splunk/enterprise/clustermaster_test.go @@ -25,7 +25,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" diff --git a/pkg/splunk/enterprise/configuration.go b/pkg/splunk/enterprise/configuration.go index dc1338c3b..93e5bfd67 100644 --- a/pkg/splunk/enterprise/configuration.go +++ b/pkg/splunk/enterprise/configuration.go @@ -26,7 +26,7 @@ import ( "k8s.io/apimachinery/pkg/types" "k8s.io/apimachinery/pkg/util/intstr" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" diff --git a/pkg/splunk/enterprise/configuration_test.go b/pkg/splunk/enterprise/configuration_test.go index a85a75efe..31b08bd5c 100644 --- a/pkg/splunk/enterprise/configuration_test.go +++ b/pkg/splunk/enterprise/configuration_test.go @@ -19,7 +19,7 @@ import ( "fmt" "testing" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" diff --git a/pkg/splunk/enterprise/finalizers_test.go b/pkg/splunk/enterprise/finalizers_test.go index 7092c928d..8c15f5a85 100644 --- a/pkg/splunk/enterprise/finalizers_test.go +++ b/pkg/splunk/enterprise/finalizers_test.go @@ -24,7 +24,7 @@ import ( "k8s.io/apimachinery/pkg/runtime/schema" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" @@ -134,7 +134,7 @@ func splunkDeletionTester(t *testing.T, cr splcommon.MetaObject, delete func(spl mockCalls["Get"] = []spltest.MockFuncCall{ {MetaName: "*v1.Secret-test-splunk-test-secret"}, {MetaName: "*v1.Secret-test-splunk-test-secret"}, - {MetaName: "*v2.ClusterMaster-test-master1"}, + {MetaName: "*v3.ClusterMaster-test-master1"}, {MetaName: "*v1.Secret-test-splunk-test-secret"}, } } diff --git a/pkg/splunk/enterprise/indexercluster.go b/pkg/splunk/enterprise/indexercluster.go index 729de46ac..07acc435c 100644 --- a/pkg/splunk/enterprise/indexercluster.go +++ b/pkg/splunk/enterprise/indexercluster.go @@ -28,7 +28,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/reconcile" "github.com/go-logr/logr" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" diff --git a/pkg/splunk/enterprise/indexercluster_test.go b/pkg/splunk/enterprise/indexercluster_test.go index 3173738cb..245cdef22 100644 --- a/pkg/splunk/enterprise/indexercluster_test.go +++ b/pkg/splunk/enterprise/indexercluster_test.go @@ -26,7 +26,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" @@ -37,12 +37,12 @@ func TestApplyIndexerCluster(t *testing.T) { funcCalls := []spltest.MockFuncCall{ {MetaName: "*v1.Secret-test-splunk-test-secret"}, {MetaName: "*v1.Secret-test-splunk-test-secret"}, - {MetaName: "*v2.ClusterMaster-test-master1"}, + {MetaName: "*v3.ClusterMaster-test-master1"}, {MetaName: "*v1.Service-test-splunk-stack1-indexer-headless"}, {MetaName: "*v1.Service-test-splunk-stack1-indexer-service"}, {MetaName: "*v1.Secret-test-splunk-test-secret"}, {MetaName: "*v1.Secret-test-splunk-stack1-indexer-secret-v1"}, - {MetaName: "*v2.ClusterMaster-test-master1"}, + {MetaName: "*v3.ClusterMaster-test-master1"}, {MetaName: "*v1.Secret-test-splunk-test-secret"}, } diff --git a/pkg/splunk/enterprise/licensemaster.go b/pkg/splunk/enterprise/licensemaster.go index 041d3058b..cdc6e017d 100644 --- a/pkg/splunk/enterprise/licensemaster.go +++ b/pkg/splunk/enterprise/licensemaster.go @@ -24,7 +24,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" ) @@ -133,13 +133,6 @@ func ApplyLicenseMaster(client splcommon.ControllerClient, cr *enterpriseApi.Lic } else { result.Requeue = false } - - // Requeue the reconcile after polling interval if we had set the lastAppInfoCheckTime. - if cr.Status.AppContext.LastAppInfoCheckTime != 0 { - result.RequeueAfter = GetNextRequeueTime(cr.Status.AppContext.AppsRepoStatusPollInterval, cr.Status.AppContext.LastAppInfoCheckTime) - } else { - result.Requeue = false - } } return result, nil } diff --git a/pkg/splunk/enterprise/licensemaster_test.go b/pkg/splunk/enterprise/licensemaster_test.go index e59b1fc0d..15d5e0a65 100644 --- a/pkg/splunk/enterprise/licensemaster_test.go +++ b/pkg/splunk/enterprise/licensemaster_test.go @@ -22,7 +22,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" diff --git a/pkg/splunk/enterprise/monitoringconsole.go b/pkg/splunk/enterprise/monitoringconsole.go index 0796bc9fa..808c794a0 100644 --- a/pkg/splunk/enterprise/monitoringconsole.go +++ b/pkg/splunk/enterprise/monitoringconsole.go @@ -22,7 +22,7 @@ import ( "strings" "time" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" splutil "github.com/splunk/splunk-operator/pkg/splunk/util" @@ -127,7 +127,6 @@ func ApplyMonitoringConsole(client splcommon.ControllerClient, cr *enterpriseApi } else { result.Requeue = false } - result.Requeue = false } return result, nil } diff --git a/pkg/splunk/enterprise/monitoringconsole_test.go b/pkg/splunk/enterprise/monitoringconsole_test.go index c95e383e8..edd4511b8 100644 --- a/pkg/splunk/enterprise/monitoringconsole_test.go +++ b/pkg/splunk/enterprise/monitoringconsole_test.go @@ -22,7 +22,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" diff --git a/pkg/splunk/enterprise/searchheadcluster.go b/pkg/splunk/enterprise/searchheadcluster.go index 4a84edf85..67a454fe2 100644 --- a/pkg/splunk/enterprise/searchheadcluster.go +++ b/pkg/splunk/enterprise/searchheadcluster.go @@ -26,7 +26,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" @@ -182,13 +182,6 @@ func ApplySearchHeadCluster(client splcommon.ControllerClient, cr *enterpriseApi result.Requeue = false } - // Requeue the reconcile after polling interval if we had set the lastAppInfoCheckTime. - if cr.Status.AppContext.LastAppInfoCheckTime != 0 { - result.RequeueAfter = GetNextRequeueTime(cr.Status.AppContext.AppsRepoStatusPollInterval, cr.Status.AppContext.LastAppInfoCheckTime) - } else { - result.Requeue = false - } - // Reset secrets related status structs cr.Status.ShcSecretChanged = []bool{} cr.Status.AdminSecretChanged = []bool{} diff --git a/pkg/splunk/enterprise/searchheadcluster_test.go b/pkg/splunk/enterprise/searchheadcluster_test.go index ecb3905e7..483b1109d 100644 --- a/pkg/splunk/enterprise/searchheadcluster_test.go +++ b/pkg/splunk/enterprise/searchheadcluster_test.go @@ -26,7 +26,7 @@ import ( "k8s.io/apimachinery/pkg/runtime" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" spltest "github.com/splunk/splunk-operator/pkg/splunk/test" diff --git a/pkg/splunk/enterprise/standalone.go b/pkg/splunk/enterprise/standalone.go index 8678fe267..d0e27dab0 100644 --- a/pkg/splunk/enterprise/standalone.go +++ b/pkg/splunk/enterprise/standalone.go @@ -25,7 +25,7 @@ import ( "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/reconcile" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" ) @@ -195,13 +195,6 @@ func ApplyStandalone(client splcommon.ControllerClient, cr *enterpriseApi.Standa } else { result.Requeue = false } - - // Requeue the reconcile after polling interval if we had set the lastAppInfoCheckTime. - if cr.Status.AppContext.LastAppInfoCheckTime != 0 { - result.RequeueAfter = GetNextRequeueTime(cr.Status.AppContext.AppsRepoStatusPollInterval, cr.Status.AppContext.LastAppInfoCheckTime) - } else { - result.Requeue = false - } } return result, nil } diff --git a/pkg/splunk/enterprise/standalone_test.go b/pkg/splunk/enterprise/standalone_test.go index 1b1d64ddd..cb8d9781b 100644 --- a/pkg/splunk/enterprise/standalone_test.go +++ b/pkg/splunk/enterprise/standalone_test.go @@ -22,7 +22,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "sigs.k8s.io/controller-runtime/pkg/client" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" diff --git a/pkg/splunk/enterprise/util.go b/pkg/splunk/enterprise/util.go index 64942eeb5..94862288c 100644 --- a/pkg/splunk/enterprise/util.go +++ b/pkg/splunk/enterprise/util.go @@ -30,7 +30,7 @@ import ( "k8s.io/apimachinery/pkg/types" logf "sigs.k8s.io/controller-runtime/pkg/log" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" diff --git a/pkg/splunk/enterprise/util_test.go b/pkg/splunk/enterprise/util_test.go index 3659fea54..b780d59d3 100644 --- a/pkg/splunk/enterprise/util_test.go +++ b/pkg/splunk/enterprise/util_test.go @@ -24,7 +24,7 @@ import ( corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splclient "github.com/splunk/splunk-operator/pkg/splunk/client" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" splctrl "github.com/splunk/splunk-operator/pkg/splunk/controller" diff --git a/pkg/splunk/test/awss3client.go b/pkg/splunk/test/awss3client.go index 192e2cbc9..729dd27e4 100644 --- a/pkg/splunk/test/awss3client.go +++ b/pkg/splunk/test/awss3client.go @@ -21,7 +21,7 @@ import ( "time" "github.com/aws/aws-sdk-go/service/s3" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" ) // MockAWSS3Object struct contains contents returned as part of S3 response diff --git a/pkg/splunk/test/controller.go b/pkg/splunk/test/controller.go index 9e566def3..1d15beb65 100644 --- a/pkg/splunk/test/controller.go +++ b/pkg/splunk/test/controller.go @@ -21,7 +21,7 @@ import ( "reflect" "testing" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" appsv1 "k8s.io/api/apps/v1" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/test/c3/appframework/appframework_test.go b/test/c3/appframework/appframework_test.go index 3dd603a6d..f1e6baa25 100644 --- a/test/c3/appframework/appframework_test.go +++ b/test/c3/appframework/appframework_test.go @@ -20,7 +20,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" testenv "github.com/splunk/splunk-operator/test/testenv" corev1 "k8s.io/api/core/v1" diff --git a/test/custom_resource_crud/custom_resource_crud_c3_test.go b/test/custom_resource_crud/custom_resource_crud_c3_test.go index b7dd88ca2..6dab742d4 100644 --- a/test/custom_resource_crud/custom_resource_crud_c3_test.go +++ b/test/custom_resource_crud/custom_resource_crud_c3_test.go @@ -19,7 +19,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" "github.com/splunk/splunk-operator/test/testenv" corev1 "k8s.io/api/core/v1" diff --git a/test/custom_resource_crud/custom_resource_crud_m4_test.go b/test/custom_resource_crud/custom_resource_crud_m4_test.go index 531350994..fc61820d1 100644 --- a/test/custom_resource_crud/custom_resource_crud_m4_test.go +++ b/test/custom_resource_crud/custom_resource_crud_m4_test.go @@ -18,7 +18,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" "github.com/splunk/splunk-operator/test/testenv" corev1 "k8s.io/api/core/v1" diff --git a/test/licensemaster/lm_c3_test.go b/test/licensemaster/lm_c3_test.go index 2cba4f513..0d5e5e6fd 100644 --- a/test/licensemaster/lm_c3_test.go +++ b/test/licensemaster/lm_c3_test.go @@ -21,7 +21,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" "github.com/splunk/splunk-operator/test/testenv" corev1 "k8s.io/api/core/v1" diff --git a/test/m4/appframework/appframework_test.go b/test/m4/appframework/appframework_test.go index 7336c171d..3051bb7cd 100644 --- a/test/m4/appframework/appframework_test.go +++ b/test/m4/appframework/appframework_test.go @@ -22,7 +22,7 @@ import ( testenv "github.com/splunk/splunk-operator/test/testenv" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" ) diff --git a/test/monitoring_console/monitoring_console_test.go b/test/monitoring_console/monitoring_console_test.go index 6ed315575..7817e30ec 100644 --- a/test/monitoring_console/monitoring_console_test.go +++ b/test/monitoring_console/monitoring_console_test.go @@ -19,7 +19,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" "github.com/splunk/splunk-operator/test/testenv" corev1 "k8s.io/api/core/v1" diff --git a/test/s1/appframework/appframework_test.go b/test/s1/appframework/appframework_test.go index 325fe05c5..53fb4fab6 100644 --- a/test/s1/appframework/appframework_test.go +++ b/test/s1/appframework/appframework_test.go @@ -22,7 +22,7 @@ import ( testenv "github.com/splunk/splunk-operator/test/testenv" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" corev1 "k8s.io/api/core/v1" ) diff --git a/test/scaling_test/scaling_test.go b/test/scaling_test/scaling_test.go index 098cd5ff6..d4768a0ca 100644 --- a/test/scaling_test/scaling_test.go +++ b/test/scaling_test/scaling_test.go @@ -21,7 +21,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" "github.com/splunk/splunk-operator/test/testenv" ) diff --git a/test/smartstore/smartstore_test.go b/test/smartstore/smartstore_test.go index b68de4cf7..df3394265 100644 --- a/test/smartstore/smartstore_test.go +++ b/test/smartstore/smartstore_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" "github.com/splunk/splunk-operator/test/testenv" ) diff --git a/test/smoke/smoke_test.go b/test/smoke/smoke_test.go index 3463c3992..2ed040bb7 100644 --- a/test/smoke/smoke_test.go +++ b/test/smoke/smoke_test.go @@ -21,7 +21,7 @@ import ( "github.com/splunk/splunk-operator/test/testenv" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" corev1 "k8s.io/api/core/v1" ) diff --git a/test/testenv/appframework_utils.go b/test/testenv/appframework_utils.go index 3846fe95a..79f5a7496 100644 --- a/test/testenv/appframework_utils.go +++ b/test/testenv/appframework_utils.go @@ -4,7 +4,7 @@ import ( "fmt" "strings" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" logf "sigs.k8s.io/controller-runtime/pkg/log" ) diff --git a/test/testenv/deployment.go b/test/testenv/deployment.go index dbc2379e8..405ee1d28 100644 --- a/test/testenv/deployment.go +++ b/test/testenv/deployment.go @@ -33,7 +33,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client/apiutil" "sigs.k8s.io/controller-runtime/pkg/client/config" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" ) diff --git a/test/testenv/remote_index_utils.go b/test/testenv/remote_index_utils.go index 3e32022d5..51d73e96d 100644 --- a/test/testenv/remote_index_utils.go +++ b/test/testenv/remote_index_utils.go @@ -3,7 +3,7 @@ package testenv import ( "encoding/json" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" logf "sigs.k8s.io/controller-runtime/pkg/log" ) diff --git a/test/testenv/testenv.go b/test/testenv/testenv.go index 1570bf01f..8bf20842c 100644 --- a/test/testenv/testenv.go +++ b/test/testenv/testenv.go @@ -37,7 +37,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/manager" "sigs.k8s.io/controller-runtime/pkg/manager/signals" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" ) const ( diff --git a/test/testenv/util.go b/test/testenv/util.go index b612fdedb..69c7c051b 100644 --- a/test/testenv/util.go +++ b/test/testenv/util.go @@ -33,7 +33,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" logf "sigs.k8s.io/controller-runtime/pkg/log" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" ) diff --git a/test/testenv/verificationutils.go b/test/testenv/verificationutils.go index 7e283c578..cf3ea7aa0 100644 --- a/test/testenv/verificationutils.go +++ b/test/testenv/verificationutils.go @@ -24,7 +24,7 @@ import ( gomega "github.com/onsi/gomega" - enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v2" + enterpriseApi "github.com/splunk/splunk-operator/pkg/apis/enterprise/v3" splcommon "github.com/splunk/splunk-operator/pkg/splunk/common" logf "sigs.k8s.io/controller-runtime/pkg/log" )