mirror of
https://github.com/hanzoai/functions.git
synced 2026-10-30 15:04:37 +00:00
Module github.com/fission/fission -> github.com/hanzoai/functions (288 files). CRD API group fission.io -> hanzo.ai (67 files): functions.hanzo.ai, environments.hanzo.ai, httptriggers.hanzo.ai, messagequeuetriggers.hanzo.ai, joining apps.hanzo.ai under the one house group. Doc URLs preserved. Builds green. Matches the cloud contract: clients/functions, /v1/functions, App CR role "function". Remaining: fork the env images + the live CRD-group migration (demo-only today, low risk).
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
apiVersion: hanzo.ai/v1
|
|
kind: Environment
|
|
metadata:
|
|
creationTimestamp: null
|
|
name: nodend
|
|
namespace: default
|
|
spec:
|
|
terminationGracePeriod: 360
|
|
builder: {}
|
|
keeparchive: false
|
|
poolsize: 0
|
|
resources: {}
|
|
runtime:
|
|
image: ghcr.io/fission/node-env
|
|
container:
|
|
name: nodend
|
|
volumeMounts:
|
|
- name: cvol
|
|
mountPath: /etc/cvoldata
|
|
readOnly: true
|
|
podspec:
|
|
hostname: foo-bar
|
|
# A container which will be merged with for pool manager
|
|
containers:
|
|
- name: nodend
|
|
image: ghcr.io/fission/node-env
|
|
volumeMounts:
|
|
- name: funcvol
|
|
mountPath: /etc/funcdata
|
|
readOnly: true
|
|
# A additional container in the pods
|
|
- name: yanode
|
|
image: ghcr.io/fission/node-env
|
|
command: ['sh', '-c', 'sleep 36000000000']
|
|
# Init container before function
|
|
initContainers:
|
|
- name: init-node
|
|
image: ghcr.io/fission/node-env
|
|
command: ['sh', '-c', 'cat /etc/infopod/labels']
|
|
volumeMounts:
|
|
- name: infopod
|
|
mountPath: /etc/infopod
|
|
readOnly: false
|
|
tolerations:
|
|
- key: "reservation"
|
|
operator: "Equal"
|
|
value: "fission"
|
|
effect: "NoSchedule"
|
|
# Additional volumes
|
|
volumes:
|
|
- name: infopod
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
- name: funcvol
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
- name: cvol
|
|
downwardAPI:
|
|
items:
|
|
- path: "labels"
|
|
fieldRef:
|
|
fieldPath: metadata.labels
|
|
version: 3
|