-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from 3scale/feature/add-zync
Add zync controller
- Loading branch information
Showing
17 changed files
with
3,826 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: saas.3scale.net/v1alpha1 | ||
kind: Zync | ||
metadata: | ||
name: example | ||
spec: | ||
secret: | ||
vaultPath: secret/data/openshift/cluster-example/3scale/zync | ||
zync: | ||
replicas: 1 | ||
resources: | ||
limits: | ||
cpu: "1" | ||
env: | ||
dbWaitSleepSeconds: 1 | ||
que: | ||
replicas: 1 |
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,217 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: zyncs.saas.3scale.net | ||
spec: | ||
group: saas.3scale.net | ||
names: | ||
kind: Zync | ||
listKind: ZyncList | ||
plural: zyncs | ||
singular: zync | ||
scope: Namespaced | ||
subresources: | ||
status: {} | ||
validation: | ||
openAPIV3Schema: | ||
type: object | ||
description: Zync is the Schema for a Zync instance | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
type: object | ||
description: ZyncSpec defines the desired state of Zync | ||
required: | ||
- secret | ||
properties: | ||
image: | ||
type: object | ||
properties: | ||
name: | ||
type: string | ||
description: Image name (docker repository) | ||
tag: | ||
type: string | ||
description: Image tag | ||
pullSecretName: | ||
type: string | ||
description: Quay pull secret for private repository | ||
secret: | ||
type: object | ||
required: | ||
- vaultPath | ||
properties: | ||
vaultPath: | ||
type: string | ||
description: Vault Path with zync database secret definition | ||
zync: | ||
type: object | ||
properties: | ||
replicas: | ||
type: integer | ||
description: Number of replicas | ||
env: | ||
type: object | ||
properties: | ||
dbWaitSleepSeconds: | ||
type: integer | ||
description: Sleep delay while waiting for the zync database | ||
railsLogsToStdout: | ||
type: boolean | ||
description: Rails log to std output toggle for zync | ||
railsEnv: | ||
type: string | ||
description: Rails environment for zync | ||
resources: | ||
type: object | ||
properties: | ||
requests: | ||
type: object | ||
properties: | ||
cpu: | ||
type: string | ||
pattern: "[0-9]+m?" | ||
description: Override CPU requests | ||
memory: | ||
type: string | ||
pattern: "[0-9]+([kKmMgGtTpPeE]i?)?$" | ||
description: Override Memory requests | ||
limits: | ||
type: object | ||
properties: | ||
cpu: | ||
type: string | ||
pattern: "[0-9]+m?" | ||
description: Override CPU limits | ||
memory: | ||
type: string | ||
pattern: "[0-9]+([kKmMgGtTpPeE]i?)?$" | ||
description: Override Memory limits | ||
livenessProbe: | ||
type: object | ||
properties: | ||
timeoutSeconds: | ||
type: integer | ||
description: Override liveness probe timeout (seconds) | ||
periodSeconds: | ||
type: integer | ||
description: Override liveness probe period (seconds) | ||
successThreshold: | ||
type: integer | ||
description: Override liveness probe success threshold | ||
failureThreshold: | ||
type: integer | ||
description: Override liveness probe failure threshold | ||
readinessProbe: | ||
type: object | ||
properties: | ||
timeoutSeconds: | ||
type: integer | ||
description: Override readiness probe timeout (seconds) | ||
periodSeconds: | ||
type: integer | ||
description: Override readiness probe period (seconds) | ||
successThreshold: | ||
type: integer | ||
description: Override readiness probe success threshold | ||
failureThreshold: | ||
type: integer | ||
description: Override readiness probe failure threshold | ||
que: | ||
type: object | ||
properties: | ||
replicas: | ||
type: integer | ||
description: Number of replicas | ||
env: | ||
type: object | ||
properties: | ||
railsLogsToStdout: | ||
type: boolean | ||
description: Rails log to std output toggle for zync | ||
railsEnv: | ||
type: string | ||
description: Rails environment for zync | ||
resources: | ||
type: object | ||
properties: | ||
requests: | ||
type: object | ||
properties: | ||
cpu: | ||
type: string | ||
pattern: "[0-9]+m?" | ||
description: Override CPU requests | ||
memory: | ||
type: string | ||
pattern: "[0-9]+([kKmMgGtTpPeE]i?)?$" | ||
description: Override Memory requests | ||
limits: | ||
type: object | ||
properties: | ||
cpu: | ||
type: string | ||
pattern: "[0-9]+m?" | ||
description: Override CPU limits | ||
memory: | ||
type: string | ||
pattern: "[0-9]+([kKmMgGtTpPeE]i?)?$" | ||
description: Override Memory limits | ||
livenessProbe: | ||
type: object | ||
properties: | ||
timeoutSeconds: | ||
type: integer | ||
description: Override liveness probe timeout (seconds) | ||
periodSeconds: | ||
type: integer | ||
description: Override liveness probe period (seconds) | ||
successThreshold: | ||
type: integer | ||
description: Override liveness probe success threshold | ||
failureThreshold: | ||
type: integer | ||
description: Override liveness probe failure threshold | ||
readinessProbe: | ||
type: object | ||
properties: | ||
timeoutSeconds: | ||
type: integer | ||
description: Override readiness probe timeout (seconds) | ||
periodSeconds: | ||
type: integer | ||
description: Override readiness probe period (seconds) | ||
successThreshold: | ||
type: integer | ||
description: Override readiness probe success threshold | ||
failureThreshold: | ||
type: integer | ||
description: Override readiness probe failure threshold | ||
grafanaDashboard: | ||
type: object | ||
properties: | ||
label: | ||
type: object | ||
properties: | ||
key: | ||
type: string | ||
description: Label key used by grafana-operator for dashboard discovery | ||
value: | ||
type: string | ||
description: Label value used by grafana-operator for dashboard discovery | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true |
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.