containers as functions (#1681)
PR adds a new executortype which supports running containers as functions. New CLI under functions is added to create container as functions. Co-authored-by: Harsh Thakur <harshthakur9030@gmail.com> Co-authored-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
co-authored by
Harsh Thakur
Sanket Sudake
parent
f3e1f9df90
commit
a82281ad1c
@@ -383,6 +383,9 @@ func applyResources(fclient client.Interface, specDir string, fr *FissionResourc
|
||||
// of the package. This ensures that various caches can invalidate themselves
|
||||
// when the package changes.
|
||||
for i, f := range fr.Functions {
|
||||
if f.Spec.InvokeStrategy.ExecutionStrategy.ExecutorType == fv1.ExecutorTypeContainer {
|
||||
continue
|
||||
}
|
||||
k := mapKey(&metav1.ObjectMeta{
|
||||
Namespace: f.Spec.Package.PackageRef.Namespace,
|
||||
Name: f.Spec.Package.PackageRef.Name,
|
||||
|
||||
Reference in New Issue
Block a user