Skip to content

Commit

Permalink
Merge pull request #413 from CARV-ICS-FORTH/docs
Browse files Browse the repository at this point in the history
Bump version
  • Loading branch information
fnikolai authored Jun 25, 2023
2 parents 35797cd + bc3d859 commit add645d
Show file tree
Hide file tree
Showing 136 changed files with 626 additions and 622 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
### Changed defaults / behaviours
- Moved charts from `charts/{category}` to `examples/apps`. This allows to have the apps and the test-cases on the same directory. Additionally, that
means that chart releasing is no longer part of the frisbee release -- which shouldn't have been the case in the first place.
- Renamed template to be in the format 'frisbee.system...' and 'frisbee.apps'. This, however, warrants a new release because
the renamed systems templates affect the controller.
- ...

### New Features & Functionality
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.41
v1.0.42
2 changes: 1 addition & 1 deletion charts/system/templates/chaos/network-delay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.chaos.network.delay
name: frisbee.system.chaos.network.delay
spec:
inputs:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion charts/system/templates/chaos/network-duplicate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.chaos.network.duplicate
name: frisbee.system.chaos.network.duplicate
spec:
inputs:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion charts/system/templates/chaos/network-loss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.chaos.network.loss
name: frisbee.system.chaos.network.loss
spec:
inputs:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion charts/system/templates/chaos/network-partition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.chaos.network.partition.partial
name: frisbee.system.chaos.network.partition.partial
spec:
inputs:
parameters:
Expand Down
2 changes: 1 addition & 1 deletion charts/system/templates/chaos/pod-kill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.chaos.pod.kill
name: frisbee.system.chaos.pod.kill
spec:
inputs:
parameters:
Expand Down
4 changes: 2 additions & 2 deletions charts/system/templates/telemetry/cadvisor/cadvisor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.telemetry.resources
name: frisbee.system.telemetry.resources
spec:
service:
decorators:
Expand Down Expand Up @@ -76,5 +76,5 @@ spec:
apiVersion: v1
kind: ConfigMap
metadata:
name: system.telemetry.resources.config
name: frisbee.system.telemetry.resources.config
data: {{(.Files.Glob "dashboards/*.json").AsConfig | nindent 2}}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.telemetry.dataviewer.template
name: frisbee.system.telemetry.dataviewer
spec:
service:
decorators:
Expand Down
2 changes: 1 addition & 1 deletion charts/system/templates/telemetry/grafana/grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.telemetry.grafana.template
name: frisbee.system.telemetry.grafana
spec:
service:
decorators:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ subjects:
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: system.telemetry.prometheus.template
name: frisbee.system.telemetry.prometheus
spec:
inputs:
scenario: "default"
Expand Down
20 changes: 12 additions & 8 deletions cmd/kubectl-frisbee/commands/tests/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ limitations under the License.
package tests

import (
"github.com/jaytaylor/go-find"
"os"
"path/filepath"

Expand Down Expand Up @@ -67,18 +68,21 @@ func NewValidateTestCmd() *cobra.Command {
return
}

// Helm charts (and therefore templates) are validated by Helm
if _, err := os.Stat(testFile + "/Chart.yaml"); err == nil {
err = validateChart(testFile)
// search for all the directories that container Chart.yaml files.
// this file indicates that it's a helm chart that needs to be validated
finder := find.NewFind(testFile).Name("Chart.yaml")
hits, err := finder.Evaluate()
ui.ExitOnError("Unable to walk directory:"+testFile, err)

ui.ExitOnError("Chart Validation ...", err)
for _, hit := range hits {
// we only need the chart directory, not the path to Chart.yaml.
hit = filepath.Dir(hit)

ui.Success("Chart validated.", testFile)
err = validateChart(hit)
ui.ExitOnError("Chart Validation failed: "+hit, err)

return
ui.Success("Chart validated.", hit)
}

ui.Failf("Validation path should point to a Helm Chart or to an Examples directory.")
} else {
err := validateScenario(testFile)
ui.ExitOnError("Validating ...", err)
Expand Down
6 changes: 3 additions & 3 deletions examples/apps/cockroachdb/examples/5.scaleup-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- action: Cluster
name: masters
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 3
inputs:
- { join: "masters-1:26257,masters-2:26257,masters-3:26257" }
Expand All @@ -28,7 +28,7 @@ spec:
depends: { success: [ boot ] }
name: loader
service:
templateRef: ycsb.cockroach.loader
templateRef: frisbee.apps.ycsb.cockroach.loader
inputs:
- { server: .cluster.masters.one , workload: workloada, recordcount: "100000000", threads: "40" }

Expand All @@ -38,7 +38,7 @@ spec:
name: more-servers
depends: { running: [ loader ] }
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 10
inputs:
- { join: "masters-1:26257" }
Expand Down
6 changes: 3 additions & 3 deletions examples/apps/cockroachdb/examples/6.scaleup-conditional.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- action: Cluster
name: masters
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 3
inputs:
- { join: "masters-1:26257,masters-2:26257,masters-3:26257" }
Expand All @@ -27,7 +27,7 @@ spec:
name: loaders
depends: { success: [ boot ] }
cluster:
templateRef: ycsb.cockroach.loader
templateRef: frisbee.apps.ycsb.cockroach.loader
instances: 100
inputs:
- { server: .cluster.masters.one, workload: workloada, recordcount: "100000000", threads: "40", delay: "15" }
Expand All @@ -40,7 +40,7 @@ spec:
name: more-servers
depends: { success: [ boot ] }
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 10
inputs:
- { join: "masters-1:26257" }
Expand Down
8 changes: 4 additions & 4 deletions examples/apps/cockroachdb/examples/7.scaledown-delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- action: Cluster
name: masters
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 3
inputs:
- { join: "masters-1:26257,masters-2:26257,masters-3:26257" }
Expand All @@ -29,7 +29,7 @@ spec:
depends: { success: [ boot ] }
name: loader
service:
templateRef: ycsb.cockroach.loader
templateRef: frisbee.apps.ycsb.cockroach.loader
inputs:
- { server: .cluster.masters.one , workload: workloada, recordcount: "100000000", threads: "4", delay: "15" }

Expand All @@ -39,7 +39,7 @@ spec:
name: groupa
depends: { running: [ loader ] }
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 5
inputs:
- { join: "masters-1:26257" }
Expand All @@ -49,7 +49,7 @@ spec:
name: groupb
depends: { running: [ groupa ] }
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 5
inputs:
- { join: "masters-1:26257" }
Expand Down
6 changes: 3 additions & 3 deletions examples/apps/cockroachdb/examples/8.scaledown-stop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- action: Cluster
name: masters
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 3
inputs:
- { join: "masters-1:26257,masters-2:26257,masters-3:26257" }
Expand All @@ -30,7 +30,7 @@ spec:
depends: { success: [ boot ] }
name: loader
service:
templateRef: ycsb.cockroach.loader
templateRef: frisbee.apps.ycsb.cockroach.loader
inputs:
- { server: masters-1 , workload: workloada, recordcount: "100000000", threads: "4", delay: "15" }

Expand All @@ -40,7 +40,7 @@ spec:
name: more-servers
depends: { running: [ loader ] }
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 10
inputs:
- { join: "masters-1:26257" }
Expand Down
8 changes: 4 additions & 4 deletions examples/apps/cockroachdb/examples/9.scaledown-kill.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- action: Cluster
name: masters
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 3
inputs:
- { join: "masters-1:26257,masters-2:26257,masters-3:26257" }
Expand All @@ -29,7 +29,7 @@ spec:
depends: { success: [ boot ] }
name: loader
service:
templateRef: ycsb.cockroach.loader
templateRef: frisbee.apps.ycsb.cockroach.loader
inputs:
- { server: .cluster.masters.one , workload: workloada, recordcount: "100000000", threads: "4", delay: "15" }

Expand All @@ -39,7 +39,7 @@ spec:
name: more-servers
depends: { running: [ loader ] }
cluster:
templateRef: cockroach.cluster.master
templateRef: frisbee.apps.cockroach.server
instances: 10
inputs:
- { join: "masters-1:26257" }
Expand All @@ -52,7 +52,7 @@ spec:
name: killer
depends: { running: [ more-servers ] }
cascade:
templateRef: system.chaos.pod.kill
templateRef: frisbee.system.chaos.pod.kill
inputs:
- { target: more-servers-4 }
- { target: more-servers-7 }
Expand Down
6 changes: 3 additions & 3 deletions examples/apps/cockroachdb/templates/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: cockroach.cluster.master
name: frisbee.apps.cockroach.server
spec:
inputs:
parameters:
Expand All @@ -11,8 +11,8 @@ spec:
service:
decorators:
telemetry:
- cockroach.telemetry.server
- system.telemetry.resources
- frisbee.apps.cockroach.server.telemetry
- frisbee.system.telemetry.resources

volumes: # Create an ephemeral volume, backed by a file
- name: scratch-volume
Expand Down
4 changes: 2 additions & 2 deletions examples/apps/cockroachdb/templates/telemetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Template
metadata:
name: cockroach.telemetry.server
name: frisbee.apps.cockroach.server.telemetry
spec:
service:
decorators:
Expand Down Expand Up @@ -46,5 +46,5 @@ spec:
apiVersion: v1
kind: ConfigMap
metadata:
name: cockroach.telemetry.server.config
name: frisbee.apps.cockroach.server.telemetry.config
data: {{(.Files.Glob "dashboards/*.json").AsConfig | nindent 2}}
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions examples/apps/fedbed/examples/all_combined.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: frisbee.dev/v1alpha1
kind: Scenario
metadata:
name: all_combined
name: all-combined
spec:
actions:
# Step 0: Cache the downloaded dataset to the host (for multi-host setups, the host may change across executions)
Expand All @@ -17,7 +17,7 @@ spec:
- action: Service
name: server
service:
templateRef: fedbed.server
templateRef: frisbee.apps.fedbed.server
inputs:
- { min_fit_clients: 3 }

Expand All @@ -26,7 +26,7 @@ spec:
name: clients
depends: { running: [ server ], success: [ cifar10-download ] }
cluster:
templateRef: fedbed.client-shared-dataset
templateRef: frisbee.apps.fedbed.client-shared-dataset
inputs:
- { fl_server: server, dataset: fl.datasets.cifar10, backend: "pytorch", total_nodes: 3, node_id: 0 }
- { fl_server: server, dataset: fl.datasets.cifar10, backend: "pytorch", total_nodes: 3, node_id: 0 }
Expand Down
4 changes: 2 additions & 2 deletions examples/apps/fedbed/examples/cached-dataset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
- action: Service
name: server
service:
templateRef: fedbed.server
templateRef: frisbee.apps.fedbed.server
inputs:
- { min_fit_clients: 3 }

Expand All @@ -26,7 +26,7 @@ spec:
name: clients
depends: { running: [ server ], success: [ cifar10-download ] }
cluster:
templateRef: fedbed.client-shared-dataset
templateRef: frisbee.apps.fedbed.client-shared-dataset
inputs:
- { fl_server: server, dataset: fl.datasets.cifar10, backend: "pytorch", total_nodes: 3, node_id: 0 }
- { fl_server: server, dataset: fl.datasets.cifar10, backend: "pytorch", total_nodes: 3, node_id: 1 }
Expand Down
4 changes: 2 additions & 2 deletions examples/apps/fedbed/examples/resource-distribution.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
- action: Service
name: server
service:
templateRef: fedbed.server
templateRef: frisbee.apps.fedbed.server
inputs:
- { min_fit_clients: 3 }

Expand All @@ -18,7 +18,7 @@ spec:
name: clients
depends: { running: [ server ]}
cluster:
templateRef: fedbed.client
templateRef: frisbee.apps.fedbed.client
inputs:
- { fl_server: server, dataset: "MNIST", backend: "pytorch", total_nodes: 3, node_id: 0 }
- { fl_server: server, dataset: "MNIST", backend: "pytorch", total_nodes: 3, node_id: 1 }
Expand Down
Loading

0 comments on commit add645d

Please sign in to comment.