-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feature] [Analytics] GAE Integration (#1660)
- Loading branch information
Showing
56 changed files
with
1,959 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
chart/kube-arangodb/crds/analytics-graphanalyticsengine.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: graphanalyticsengines.analytics.arangodb.com | ||
spec: | ||
group: analytics.arangodb.com | ||
names: | ||
kind: GraphAnalyticsEngine | ||
listKind: GraphAnalyticsEngineList | ||
plural: graphanalyticsengines | ||
singular: graphanalyticsengine | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
type: object | ||
x-kubernetes-preserve-unknown-fields: true | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} |
26 changes: 26 additions & 0 deletions
26
chart/kube-arangodb/templates/analytics-operator/cluster-role-binding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{{ if .Values.rbac.enabled -}} | ||
{{ if not (eq .Values.operator.scope "namespaced") -}} | ||
{{ if .Values.operator.features.analytics -}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ template "kube-arangodb.rbac-cluster" . }}-analytics | ||
labels: | ||
app.kubernetes.io/name: {{ template "kube-arangodb.name" . }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
release: {{ .Release.Name }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ template "kube-arangodb.rbac-cluster" . }}-analytics | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "kube-arangodb.operatorName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
|
||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
22 changes: 22 additions & 0 deletions
22
chart/kube-arangodb/templates/analytics-operator/cluster-role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{{ if .Values.rbac.enabled -}} | ||
{{ if not (eq .Values.operator.scope "namespaced") -}} | ||
{{ if .Values.operator.features.analytics -}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ template "kube-arangodb.rbac-cluster" . }}-analytics | ||
labels: | ||
app.kubernetes.io/name: {{ template "kube-arangodb.name" . }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
release: {{ .Release.Name }} | ||
rules: | ||
- apiGroups: ["apiextensions.k8s.io"] | ||
resources: ["customresourcedefinitions"] | ||
verbs: ["get", "list", "watch"] | ||
|
||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
25 changes: 25 additions & 0 deletions
25
chart/kube-arangodb/templates/analytics-operator/role-binding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ if .Values.rbac.enabled -}} | ||
{{ if .Values.operator.features.analytics -}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: {{ template "kube-arangodb.rbac" . }}-analytics | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ template "kube-arangodb.name" . }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
release: {{ .Release.Name }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: {{ template "kube-arangodb.rbac" . }}-analytics | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ template "kube-arangodb.operatorName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
|
||
{{- end }} | ||
{{- end }} |
36 changes: 36 additions & 0 deletions
36
chart/kube-arangodb/templates/analytics-operator/role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{{ if .Values.rbac.enabled -}} | ||
{{ if .Values.operator.features.analytics -}} | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: {{ template "kube-arangodb.rbac" . }}-analytics | ||
namespace: {{ .Release.Namespace }} | ||
labels: | ||
app.kubernetes.io/name: {{ template "kube-arangodb.name" . }} | ||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }} | ||
app.kubernetes.io/managed-by: {{ .Release.Service }} | ||
app.kubernetes.io/instance: {{ .Release.Name }} | ||
release: {{ .Release.Name }} | ||
rules: | ||
- apiGroups: | ||
- "analytics.arangodb.com" | ||
resources: | ||
- "graphanalyticsengines" | ||
- "graphanalyticsengines/status" | ||
verbs: | ||
- "*" | ||
- apiGroups: | ||
- "database.arangodb.com" | ||
resources: | ||
- "arangodeployments" | ||
verbs: | ||
- "get" | ||
- "list" | ||
- "watch" | ||
- apiGroups: [ "" ] | ||
resources: | ||
- "secrets" | ||
verbs: [ "*" ] | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
layout: page | ||
parent: CRD reference | ||
title: GraphAnalyticsEngine V1Alpha1 | ||
--- | ||
|
||
# API Reference for GraphAnalyticsEngine V1Alpha1 | ||
|
||
## Spec | ||
|
||
### .spec.deploymentName | ||
|
||
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/analytics/v1alpha1/gae_spec.go#L30)</sup> | ||
|
||
DeploymentName define deployment name used in the object. Immutable | ||
|
||
## Status | ||
|
||
### .status.conditions | ||
|
||
Type: `api.Conditions` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/analytics/v1alpha1/gae_status.go#L31)</sup> | ||
|
||
Conditions specific to the entire extension | ||
|
||
*** | ||
|
||
### .status.deployment.checksum | ||
|
||
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/shared/v1/object.go#L61)</sup> | ||
|
||
UID keeps the information about object Checksum | ||
|
||
*** | ||
|
||
### .status.deployment.name | ||
|
||
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/shared/v1/object.go#L52)</sup> | ||
|
||
Name of the object | ||
|
||
*** | ||
|
||
### .status.deployment.namespace | ||
|
||
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/shared/v1/object.go#L55)</sup> | ||
|
||
Namespace of the object. Should default to the namespace of the parent object | ||
|
||
*** | ||
|
||
### .status.deployment.uid | ||
|
||
Type: `string` <sup>[\[ref\]](https://github.com/arangodb/kube-arangodb/blob/1.2.40/pkg/apis/shared/v1/object.go#L58)</sup> | ||
|
||
UID keeps the information about object UID | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.