Skip to content

Commit

Permalink
Remove --enable-analytics flag (#389)
Browse files Browse the repository at this point in the history
Signed-off-by: Tamal Saha <tamal@appscode.com>
  • Loading branch information
tamalsaha committed Nov 14, 2021
1 parent 589c93f commit 5c8d285
Show file tree
Hide file tree
Showing 17 changed files with 6 additions and 34 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -36,3 +36,5 @@ _testmain.go
/.idea
/.crds
/charts/kubedb/charts

.DS_Store
4 changes: 1 addition & 3 deletions apis/installer/v1alpha1/kubedb_autoscaler_types.go
Expand Up @@ -74,9 +74,7 @@ type KubedbAutoscalerSpec struct {
PodSecurityContext *core.PodSecurityContext `json:"podSecurityContext"`
ServiceAccount ServiceAccountSpec `json:"serviceAccount"`
Apiserver WebHookSpec `json:"apiserver"`
// +optional
EnableAnalytics bool `json:"enableAnalytics"`
Monitoring Monitoring `json:"monitoring"`
Monitoring Monitoring `json:"monitoring"`
// +optional
AdditionalPodSecurityPolicies []string `json:"additionalPodSecurityPolicies"`
// +optional
Expand Down
6 changes: 2 additions & 4 deletions apis/installer/v1alpha1/kubedb_community_types.go
Expand Up @@ -75,10 +75,8 @@ type KubedbCommunitySpec struct {
ServiceAccount ServiceAccountSpec `json:"serviceAccount"`
Apiserver WebHookSpec `json:"apiserver"`
// +optional
EnforceTerminationPolicy bool `json:"enforceTerminationPolicy"`
// +optional
EnableAnalytics bool `json:"enableAnalytics"`
Monitoring Monitoring `json:"monitoring"`
EnforceTerminationPolicy bool `json:"enforceTerminationPolicy"`
Monitoring Monitoring `json:"monitoring"`
// +optional
AdditionalPodSecurityPolicies []string `json:"additionalPodSecurityPolicies"`
// +optional
Expand Down
4 changes: 1 addition & 3 deletions apis/installer/v1alpha1/kubedb_enterprise_types.go
Expand Up @@ -74,9 +74,7 @@ type KubedbEnterpriseSpec struct {
PodSecurityContext *core.PodSecurityContext `json:"podSecurityContext"`
ServiceAccount ServiceAccountSpec `json:"serviceAccount"`
Apiserver WebHookSpec `json:"apiserver"`
// +optional
EnableAnalytics bool `json:"enableAnalytics"`
Monitoring Monitoring `json:"monitoring"`
Monitoring Monitoring `json:"monitoring"`
// +optional
AdditionalPodSecurityPolicies []string `json:"additionalPodSecurityPolicies"`
// +optional
Expand Down
1 change: 0 additions & 1 deletion charts/kubedb-autoscaler/README.md
Expand Up @@ -87,7 +87,6 @@ The following table lists the configurable parameters of the `kubedb-autoscaler`
| apiserver.servingCerts.caCrt | CA certficate used by serving certificate of webhook server. | `""` |
| apiserver.servingCerts.serverCrt | Serving certficate used by webhook server. | `""` |
| apiserver.servingCerts.serverKey | Private key for the serving certificate used by webhook server. | `""` |
| enableAnalytics | If true, sends usage analytics | `true` |
| monitoring.enabled | If true, enables monitoring KubeDB operator | `false` |
| monitoring.agent | Name of monitoring agent ("prometheus.io" or "prometheus.io/operator" or "prometheus.io/builtin") | `""` |
| monitoring.serviceMonitor.labels | Specify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is `prometheus.io/operator`. | `{}` |
Expand Down
1 change: 0 additions & 1 deletion charts/kubedb-autoscaler/templates/deployment.yaml
Expand Up @@ -48,7 +48,6 @@ spec:
- --enable-mutating-webhook={{ .Values.apiserver.enableMutatingWebhook }}
- --enable-validating-webhook={{ .Values.apiserver.enableValidatingWebhook }}
- --use-kubeapiserver-fqdn-for-aks={{ .Values.apiserver.useKubeapiserverFqdnForAks }}
- --enable-analytics={{ .Values.enableAnalytics }}
- --update-interval={{ .Values.updateInterval }}
- --prometheus-address={{.Values.storageAutoscaler.prometheus.address}}
{{- if .Values.storageAutoscaler.prometheus.caCert }}
Expand Down
2 changes: 0 additions & 2 deletions charts/kubedb-autoscaler/values.openapiv3_schema.yaml
Expand Up @@ -821,8 +821,6 @@ properties:
type: object
criticalAddon:
type: boolean
enableAnalytics:
type: boolean
fullnameOverride:
type: string
imagePullPolicy:
Expand Down
2 changes: 0 additions & 2 deletions charts/kubedb-autoscaler/values.yaml
Expand Up @@ -123,8 +123,6 @@ apiserver:
serverCrt: ""
# Private key for the serving certificate used by webhook server.
serverKey: ""
# If true, sends usage analytics
enableAnalytics: true
monitoring:
# If true, enables monitoring KubeDB operator
enabled: false
Expand Down
1 change: 0 additions & 1 deletion charts/kubedb-community/README.md
Expand Up @@ -87,7 +87,6 @@ The following table lists the configurable parameters of the `kubedb-community`
| apiserver.servingCerts.serverCrt | Serving certficate used by webhook server. | `""` |
| apiserver.servingCerts.serverKey | Private key for the serving certificate used by webhook server. | `""` |
| enforceTerminationPolicy | If true, namespace deletion will fail if it has a KubeDB resource with terminationPolicy DoNotTerminate | `true` |
| enableAnalytics | If true, sends usage analytics | `true` |
| monitoring.enabled | If true, enables monitoring KubeDB operator | `false` |
| monitoring.agent | Name of monitoring agent ("prometheus.io" or "prometheus.io/operator" or "prometheus.io/builtin") | `""` |
| monitoring.serviceMonitor.labels | Specify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is `prometheus.io/operator`. | `{}` |
Expand Down
1 change: 0 additions & 1 deletion charts/kubedb-community/templates/deployment.yaml
Expand Up @@ -49,7 +49,6 @@ spec:
- --enable-validating-webhook={{ .Values.apiserver.enableValidatingWebhook }}
- --bypass-validating-webhook-xray={{ .Values.apiserver.bypassValidatingWebhookXray }}
- --use-kubeapiserver-fqdn-for-aks={{ .Values.apiserver.useKubeapiserverFqdnForAks }}
- --enable-analytics={{ .Values.enableAnalytics }}
{{- if include "appscode.license" . }}
- --license-file=/var/run/secrets/appscode/license/key.txt
{{- end }}
Expand Down
2 changes: 0 additions & 2 deletions charts/kubedb-community/values.openapiv3_schema.yaml
Expand Up @@ -821,8 +821,6 @@ properties:
type: object
criticalAddon:
type: boolean
enableAnalytics:
type: boolean
enforceTerminationPolicy:
type: boolean
fullnameOverride:
Expand Down
2 changes: 0 additions & 2 deletions charts/kubedb-community/values.yaml
Expand Up @@ -123,8 +123,6 @@ apiserver:
serverKey: ""
# If true, namespace deletion will fail if it has a KubeDB resource with terminationPolicy DoNotTerminate
enforceTerminationPolicy: true
# If true, sends usage analytics
enableAnalytics: true
monitoring:
# If true, enables monitoring KubeDB operator
enabled: false
Expand Down
1 change: 0 additions & 1 deletion charts/kubedb-enterprise/README.md
Expand Up @@ -86,7 +86,6 @@ The following table lists the configurable parameters of the `kubedb-enterprise`
| apiserver.servingCerts.caCrt | CA certficate used by serving certificate of webhook server. | `""` |
| apiserver.servingCerts.serverCrt | Serving certficate used by webhook server. | `""` |
| apiserver.servingCerts.serverKey | Private key for the serving certificate used by webhook server. | `""` |
| enableAnalytics | If true, sends usage analytics | `true` |
| monitoring.enabled | If true, enables monitoring KubeDB operator | `false` |
| monitoring.agent | Name of monitoring agent ("prometheus.io" or "prometheus.io/operator" or "prometheus.io/builtin") | `""` |
| monitoring.serviceMonitor.labels | Specify the labels for ServiceMonitor. Prometheus crd will select ServiceMonitor using these labels. Only usable when monitoring agent is `prometheus.io/operator`. | `{}` |
Expand Down
1 change: 0 additions & 1 deletion charts/kubedb-enterprise/templates/deployment.yaml
Expand Up @@ -49,7 +49,6 @@ spec:
- --enable-validating-webhook={{ .Values.apiserver.enableValidatingWebhook }}
- --bypass-validating-webhook-xray={{ .Values.apiserver.bypassValidatingWebhookXray }}
- --use-kubeapiserver-fqdn-for-aks={{ .Values.apiserver.useKubeapiserverFqdnForAks }}
- --enable-analytics={{ .Values.enableAnalytics }}
{{- if include "appscode.license" . }}
- --license-file=/var/run/secrets/appscode/license/key.txt
{{- end }}
Expand Down
2 changes: 0 additions & 2 deletions charts/kubedb-enterprise/values.openapiv3_schema.yaml
Expand Up @@ -821,8 +821,6 @@ properties:
type: object
criticalAddon:
type: boolean
enableAnalytics:
type: boolean
fullnameOverride:
type: string
imagePullPolicy:
Expand Down
2 changes: 0 additions & 2 deletions charts/kubedb-enterprise/values.yaml
Expand Up @@ -121,8 +121,6 @@ apiserver:
serverCrt: ""
# Private key for the serving certificate used by webhook server.
serverKey: ""
# If true, sends usage analytics
enableAnalytics: true
monitoring:
# If true, enables monitoring KubeDB operator
enabled: false
Expand Down
6 changes: 0 additions & 6 deletions charts/kubedb/values.openapiv3_schema.yaml
Expand Up @@ -888,8 +888,6 @@ properties:
type: object
criticalAddon:
type: boolean
enableAnalytics:
type: boolean
fullnameOverride:
type: string
imagePullPolicy:
Expand Down Expand Up @@ -2230,8 +2228,6 @@ properties:
type: object
criticalAddon:
type: boolean
enableAnalytics:
type: boolean
enforceTerminationPolicy:
type: boolean
fullnameOverride:
Expand Down Expand Up @@ -3504,8 +3500,6 @@ properties:
type: object
criticalAddon:
type: boolean
enableAnalytics:
type: boolean
fullnameOverride:
type: string
imagePullPolicy:
Expand Down

0 comments on commit 5c8d285

Please sign in to comment.