Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
fix(fl-operator): the /dataset directory is not used anymore in the f…
Browse files Browse the repository at this point in the history
…lower-clients
  • Loading branch information
GerardoGR committed Jul 11, 2022
1 parent 1bd5d53 commit 57a320b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 27 deletions.
17 changes: 0 additions & 17 deletions components/fl-operator/pkg/resources/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,7 @@ func NewPod(task *pb.OrchestratorMessage_TaskSpec, name types.NamespacedName, en
{
Name: "flower-client",
Image: task.Executor.GetOciExecutor().Image,
Args: []string{"/dataset", "0", "localhost:9080"},
ImagePullPolicy: corev1.PullIfNotPresent,
VolumeMounts: []corev1.VolumeMount{
{
Name: "flower-client-dataset",
MountPath: "/dataset",
ReadOnly: true,
},
},
},
{
Name: "envoyproxy",
Expand Down Expand Up @@ -129,15 +121,6 @@ func NewPod(task *pb.OrchestratorMessage_TaskSpec, name types.NamespacedName, en
},
},
},
{
Name: "flower-client-dataset",
VolumeSource: corev1.VolumeSource{
HostPath: &corev1.HostPathVolumeSource{
Path: "/dataset",
Type: utils.HostPathTypePtr(corev1.HostPathDirectory),
},
},
},
},
// TODO: Unhardcode secret name
ImagePullSecrets: []corev1.LocalObjectReference{{Name: "regcred"}},
Expand Down
6 changes: 0 additions & 6 deletions develop/kind-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,3 @@ nodes:
hostPort: 80
- containerPort: 30443
hostPort: 443
# TODO: Remove this extra mount. The FLOperator pods expect a /dataset directory in the kubernetes node. To
# force-create one we let kind do it
extraMounts:
- hostPath: dataset/
containerPath: /dataset
readOnly: true
4 changes: 0 additions & 4 deletions docs/init-edge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ nodes:
- role: control-plane
# Using the same kubernetes version as the cluster deployed in the example
image: kindest/node:v1.21.10@sha256:84709f09756ba4f863769bdcabe5edafc2ada72d3c8c44d6515fc581b66b029c
extraMounts:
- hostPath: ./dataset
containerPath: /dataset
readOnly: true
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."$CONTAINER_REGISTRY_FQDN:8080"]
Expand Down

0 comments on commit 57a320b

Please sign in to comment.