Skip to content

Commit

Permalink
Support OpenFL v1.5 (FederatedAI#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Chenlong Ma <chenlongm@vmware.com>
Signed-off-by: qijianshuai <qjianshuai@vmware.com>
  • Loading branch information
owlet42 authored and qijianshuai committed Apr 18, 2023
1 parent b6a3a64 commit 3bd8c35
Show file tree
Hide file tree
Showing 11 changed files with 120 additions and 120 deletions.
2 changes: 1 addition & 1 deletion doc/OpenFL_Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ class FedLCMDummyShardDescriptor(DummyShardDescriptor):
f'target shape: {self.target_shape}'
)
"""Return the dataset description."""
return 'This is dummy data shard descriptor provided by FedLCM project. You should implement your own data '
return 'This is dummy data shard descriptor provided by FedLCM project. You should implement your own data ' \
'loader to load your local data for each Envoy.'
```

Expand Down
8 changes: 4 additions & 4 deletions helm-charts/charts/openfl-director/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
appVersion: "openfl-director-v0.1.0"
description: A Helm chart for openfl director, based on official OpenFL container image
name: openfl-director
version: v0.1.0
version: v0.3.0
description: A Helm chart for openfl director, based on official OpenFL container image
appVersion: "openfl-director-v1.5"
sources:
- https://github.com/FederatedAI/KubeFATE.git
- https://github.com/securefederatedai/openfl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
- /bin/bash
- -c
- |
jupyter lab --notebook-dir /usr/local/lib/python3.8/dist-packages/openfl-tutorials --allow-root --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.password={{ .Values.modules.notebook.password }}
jupyter lab --notebook-dir /openfl/openfl-tutorials --allow-root --ip=0.0.0.0 --NotebookApp.token='' --NotebookApp.password={{ .Values.modules.notebook.password }}
image: {{ with .Values.image.registry }}{{ printf "%s/" . }}{{ end }}{{ .Values.modules.notebook.image | default "fedlcm-openfl" }}:{{ .Values.modules.notebook.imageTag | default "latest"}}
imagePullPolicy: {{ .Values.image.pullPolicy }}
name: notebook
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: openfl-director
namespace: openfl-director
chartName: openfl-director
chartVersion: v0.1.0
chartVersion: v0.3.0
registry: "federatedai"
imageTag: "v0.1.0"
imageTag: "v0.3.0"
pullPolicy: IfNotPresent
# imagePullSecrets:
# - name: myregistrykey
Expand All @@ -26,7 +26,7 @@ modules:

#director:
# image: fedlcm-openfl
# imageTag: v0.1.0
# imageTag: v0.3.0
# sampleShape: "['784']"
# targetShape: "['1']"
# envoyHealthCheckPeriod: 60
Expand All @@ -39,7 +39,7 @@ modules:

#notebook:
# image: fedlcm-openfl
# imageTag: v0.1.0
# imageTag: v0.3.0
# password: argon2:$argon2id$v=19$m=10240,t=10,p=8$TmW50aM7Fey2lNrU7kpOhQ$s4SY7l8QItxgR9iwVA+DTc2uwGnawh1p1dB42bbLH48
# nodeSelector:
# tolerations:
Expand Down
4 changes: 2 additions & 2 deletions helm-charts/charts/openfl-director/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ingress:
modules:
director:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
sampleShape: "['1']"
targetShape: "['1']"
envoyHealthCheckPeriod: 60
Expand All @@ -31,7 +31,7 @@ modules:

notebook:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
# password:
# nodeSelector:
# tolerations:
Expand Down
8 changes: 4 additions & 4 deletions helm-charts/charts/openfl-envoy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
appVersion: "openfl-envoy-v0.1.0"
description: A Helm chart for openfl envoy
name: openfl-envoy
version: v0.1.0
version: v0.3.0
description: A Helm chart for openfl envoy
appVersion: "openfl-envoy-v1.5"
sources:
- https://github.com/FederatedAI/KubeFATE.git
- https://github.com/securefederatedai/openfl
4 changes: 2 additions & 2 deletions helm-charts/charts/openfl-envoy/values-template-example.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: envoy-1
namespace: openfl-envoy-1
chartName: openfl-envoy
chartVersion: v0.1.0
chartVersion: v0.3.0
registry: "federatedai"
pullPolicy: IfNotPresent
imagePullSecrets:
Expand All @@ -13,7 +13,7 @@ modules:

#envoy:
# image: fedlcm-openfl
# imageTag: v0.1.0
# imageTag: v0.3.0
# directorFqdn: director.openfl.example.com
# directorIp: 192.168.1.1.
# directorPort: 50051
Expand Down
2 changes: 1 addition & 1 deletion helm-charts/charts/openfl-envoy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ podSecurityPolicy:
modules:
envoy:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
directorFqdn: director
directorIp: 192.168.1.1
directorPort: 50051
Expand Down
46 changes: 23 additions & 23 deletions server/infrastructure/gorm/chart_mock_repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -5160,23 +5160,23 @@ externalMysqlPassword: {{ .externalMysqlPassword }}
UpdatedAt: time.Now(),
},
UUID: "516a10e2-0b96-417c-812b-ee45ed197e81",
Name: "chart for FedLCM private OpenFL Director v0.1.0",
Description: "This chart is for deploying FedLCM's OpenFL director v0.1.0 services, based from OpenFL 1.3 release",
Name: "chart for FedLCM private OpenFL Director v0.3.0",
Description: "This chart is for deploying FedLCM's OpenFL director v0.3.0 services, based from OpenFL 1.5 release",
Type: entity.ChartTypeOpenFLDirector,
ChartName: "openfl-director",
Version: "v0.1.0",
AppVersion: "openfl-director-v0.1.0",
Version: "v0.3.0",
AppVersion: "openfl-director-v1.5",
Chart: `apiVersion: v1
appVersion: "openfl-director-v0.1.0"
appVersion: "openfl-director-v1.5"
description: A Helm chart for openfl director, based on official OpenFL container image
name: openfl-director
version: v0.1.0
version: v0.3.0
sources:
- https://github.com/FederatedAI/KubeFATE.git`,
- https://github.com/securefederatedai/openfl`,
InitialYamlTemplate: `name: {{.Name}}
namespace: {{.Namespace}}
chartName: openfl-director
chartVersion: v0.1.0
chartVersion: v0.3.0
{{- if .UseRegistry}}
registry: {{.Registry}}
{{- end }}
Expand All @@ -5201,7 +5201,7 @@ ingress:
director:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
type: {{.ServiceType}}
sampleShape: "{{.SampleShape}}"
targetShape: "{{.TargetShape}}"
Expand All @@ -5214,7 +5214,7 @@ director:
notebook:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
type: {{.ServiceType}}
password: {{.JupyterPassword}}
# nodeSelector:
Expand Down Expand Up @@ -5242,7 +5242,7 @@ ingress:
modules:
director:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
sampleShape: "['1']"
targetShape: "['1']"
envoyHealthCheckPeriod: 60
Expand All @@ -5255,7 +5255,7 @@ modules:
notebook:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
# password:
# nodeSelector:
# tolerations:
Expand Down Expand Up @@ -5341,7 +5341,7 @@ modules:
nodePort: {{ .nodePort }}
loadBalancerIP: {{ .loadBalancerIP }}
{{- end }}`,
ArchiveContent: mock.FedLCMOpenFLDirector010ChartArchiveContent,
ArchiveContent: mock.FedLCMOpenFLDirector030ChartArchiveContent,
Private: true,
},
"c62b27a6-bf0f-4515-840a-2554ed63aa56": {
Expand All @@ -5351,23 +5351,23 @@ modules:
UpdatedAt: time.Now(),
},
UUID: "c62b27a6-bf0f-4515-840a-2554ed63aa56",
Name: "chart for FedLCM private OpenFL Envoy v0.1.0",
Description: "This chart is for deploying OpenFL envoy built for FedLCM, based from OpenFL 1.3 release",
Name: "chart for FedLCM private OpenFL Envoy v0.3.0",
Description: "This chart is for deploying OpenFL envoy built for FedLCM, based from OpenFL 1.5 release",
Type: entity.ChartTypeOpenFLEnvoy,
ChartName: "openfl-envoy",
Version: "v0.1.0",
AppVersion: "openfl-envoy-v0.1.0",
Version: "v0.3.0",
AppVersion: "openfl-envoy-v1.5",
Chart: `apiVersion: v1
appVersion: "openfl-envoy-v0.1.0"
appVersion: "openfl-envoy-v1.5"
description: A Helm chart for openfl envoy
name: openfl-envoy
version: v0.1.0
version: v0.3.0
sources:
- https://github.com/FederatedAI/KubeFATE.git`,
InitialYamlTemplate: `name: {{.Name}}
namespace: {{.Namespace}}
chartName: openfl-envoy
chartVersion: v0.1.0
chartVersion: v0.3.0
{{- if .UseRegistry}}
registry: {{.Registry}}
{{- end }}
Expand All @@ -5382,7 +5382,7 @@ modules:
envoy:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
directorFqdn: {{.DirectorFQDN}}
directorIp: {{.DirectorIP}}
directorPort: {{.DirectorPort}}
Expand All @@ -5406,7 +5406,7 @@ podSecurityPolicy:
modules:
envoy:
image: fedlcm-openfl
imageTag: v0.1.0
imageTag: v0.3.0
directorFqdn: director
directorIp: 192.168.1.1
directorPort: 50051
Expand Down Expand Up @@ -5454,7 +5454,7 @@ modules:
{{ toYaml . | indent 6 }}
{{- end }}
{{- end }}`,
ArchiveContent: mock.FedLCMOpenFLEnvoy010ChartArchiveContent,
ArchiveContent: mock.FedLCMOpenFLEnvoy030ChartArchiveContent,
Private: true,
},
}
Expand Down
78 changes: 0 additions & 78 deletions server/infrastructure/gorm/mock/chart_openfl_010.go

This file was deleted.

Loading

0 comments on commit 3bd8c35

Please sign in to comment.