Skip to content

Commit

Permalink
Remove git url for bonny dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Adriano Santos committed Aug 31, 2022
1 parent 9fbef07 commit 0efe9ab
Show file tree
Hide file tree
Showing 5 changed files with 100 additions and 91 deletions.
180 changes: 93 additions & 87 deletions apps/operator/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,30 @@ apiVersion: apps/v1
kind: Deployment
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: eigr-functions
name: eigr-functions-controller
namespace: eigr-functions
spec:
replicas: 1
selector:
matchLabels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
template:
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
spec:
containers:
- env:
- name: BAKEWARE_CACHE
value: /home/app/.cache/bakeware
- name: NODE_COOKIE
value: "FW9RYfQpVbuycMxSodrXIKAzuLgsaR5gyArGeap8WTHNfJj3vfltYQ=="
- name: MIX_ENV
value: prod
- name: BONNY_POD_NAME
Expand Down Expand Up @@ -58,51 +54,24 @@ spec:
requests:
cpu: 100m
memory: 100Mi
volumeMounts:
- mountPath: /home/app/.cache/bakeware
name: cache-data
# - mountPath: /.erlang_cookie
# name: cookie-data
# subPath: .erlang_cookie
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: false
runAsNonRoot: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 65534
serviceAccountName: eigr-functions
volumes:
- emptyDir: {}
name: cache-data
# - emptyDir: {}
# name: cookie-data

---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: activators.spawn.eigr.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.activator.type
description: Activator Type
name: type
type: string
- JSONPath: .spec.activator.expose.method
description: Method used to expose Activator
name: external
type: string
- JSONPath: .metadata.creationTimestamp
description: |-
CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
name: Age
type: date
group: spawn.eigr.io
names:
kind: Activator
Expand All @@ -114,20 +83,42 @@ spec:
- activators
singular: activator
scope: Cluster
version: v1
versions:
- additionalPrinterColumns:
- description: Activator Type
jsonPath: .spec.activator.type
name: type
type: string
- description: Method used to expose Activator
jsonPath: .spec.activator.expose.method
name: external
type: string
- description: |-
CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true

---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: actornodes.spawn.eigr.io
spec:
additionalPrinterColumns: []
group: spawn.eigr.io
names:
kind: ActorNode
Expand All @@ -140,31 +131,27 @@ spec:
- actornodes
singular: actornode
scope: Cluster
version: v1
versions:
- additionalPrinterColumns: []
name: v1
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true

---
apiVersion: apiextensions.k8s.io/v1beta1
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: actorsystems.spawn.eigr.io
spec:
additionalPrinterColumns:
- JSONPath: .spec.storage.type
description: Storage type of the Actor System
name: storage
type: string
- JSONPath: .metadata.creationTimestamp
description: |-
CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
name: Age
type: date
group: spawn.eigr.io
names:
kind: ActorSystem
Expand All @@ -177,15 +164,34 @@ spec:
- system
singular: actorsystem
scope: Cluster
version: v1
versions:
- additionalPrinterColumns:
- description: Storage type of the Actor System
jsonPath: .spec.storage.type
name: storage
type: string
- description: |-
CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC.
Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
jsonPath: .metadata.creationTimestamp
name: Age
type: date
name: v1
schema:
openAPIV3Schema:
type: object
x-kubernetes-preserve-unknown-fields: true
served: true
storage: true

---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: eigr-functions
Expand All @@ -195,116 +201,116 @@ rules:
resources:
- customresourcedefinitions
verbs:
- "*"
- '*'
- apiGroups:
- spawn.eigr.io
resources:
- activators
verbs:
- "*"
- '*'
- apiGroups:
- spawn.eigr.io
resources:
- actornodes
verbs:
- "*"
- '*'
- apiGroups:
- spawn.eigr.io
resources:
- actorsystems
verbs:
- "*"
- '*'
- apiGroups:
- apps
resources:
- deployments
- daemonsets
verbs:
- "*"
- '*'
- apiGroups:
- ""
resources:
- services
- pods
- configmaps
verbs:
- "*"
- '*'
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- "*"
- '*'
- apiGroups:
- extensions
resources:
- ingresses
- ingressclasses
verbs:
- "*"
- '*'
- apiGroups:
- networking.k8s.io
resources:
- ingresses
- ingressclasses
verbs:
- "*"
- '*'
- apiGroups:
- apps
resources:
- deployments
verbs:
- "*"
- '*'
- apiGroups:
- ""
resources:
- services
- pods
- configmaps
verbs:
- "*"
- '*'
- apiGroups:
- autoscaling
resources:
- horizontalpodautoscalers
verbs:
- "*"
- '*'
- apiGroups:
- extensions
resources:
- ingresses
- ingressclasses
verbs:
- "*"
- '*'
- apiGroups:
- networking.k8s.io
resources:
- ingresses
- ingressclasses
verbs:
- "*"
- '*'
- apiGroups:
- apps
resources:
- deployments
verbs:
- "*"
- '*'
- apiGroups:
- ""
resources:
- services
- pods
- configmaps
verbs:
- "*"
- '*'

---
apiVersion: v1
kind: ServiceAccount
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: eigr-functions
Expand All @@ -315,8 +321,8 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
eigr_functions_protocol_major_version: "0"
eigr_functions_protocol_minor_version: "1"
eigr_functions_protocol_major_version: '0'
eigr_functions_protocol_minor_version: '1'
proxy_name: spawn
k8s-app: eigr-functions-controller
name: eigr-functions
Expand Down
1 change: 1 addition & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ config :proxy,
http_port: System.get_env("PROXY_HTTP_PORT", "9001") |> String.to_integer()

config :bonny,
api_version: "apiextensions.k8s.io/v1",
get_conn: {K8s.Conn, :from_file, ["~/.kube/config", [context: "minikube"]]},

# Add each CRD Controller module for this operator to load here
Expand Down
1 change: 1 addition & 0 deletions config/prod.exs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Config

config :bonny,
api_version: "apiextensions.k8s.io/v1",
get_conn: {K8s.Conn, :from_service_account, []},

# Add each CRD Controller module for this operator to load here
Expand Down
1 change: 1 addition & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Config
config :statestores, Statestores.Adapters.MySQL, pool: Ecto.Adapters.SQL.Sandbox

config :bonny,
api_version: "apiextensions.k8s.io/v1",
get_conn: {K8s.Conn, :from_file, ["~/.kube/config", [context: "minikube"]]},

# Add each CRD Controller module for this operator to load here
Expand Down
Loading

0 comments on commit 0efe9ab

Please sign in to comment.