Skip to content

Commit

Permalink
clean up docs and add more license headers
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Dettori <[email protected]>
  • Loading branch information
pdettori committed May 17, 2024
1 parent 2f7897d commit d47c82b
Show file tree
Hide file tree
Showing 52 changed files with 292 additions and 667 deletions.
14 changes: 14 additions & 0 deletions clustermetrics/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 The KubeStellar Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Image URL to use all building/pushing image targets
KO_DOCKER_REPO ?= ko.local
IMAGE_TAG ?= $(shell git rev-parse --short HEAD)
Expand Down
3 changes: 2 additions & 1 deletion clustermetrics/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# clustermetrics
// TODO(user): Add simple overview of use/purpose

Provides per-node metrics for clusters to support multi-cluster scheduling decisions.

## Description
// TODO(user): An in-depth paragraph about your project and overview of use
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
5 changes: 2 additions & 3 deletions clustermetrics/internal/controller/suite_test.go
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package controller

import (
Expand Down
2 changes: 1 addition & 1 deletion clustermetrics/test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion clustermetrics/test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion clustermetrics/test/utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
14 changes: 14 additions & 0 deletions mc-scheduling/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 The KubeStellar Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Image URL to use all building/pushing image targets
KO_DOCKER_REPO ?= ko.local
IMAGE_TAG ?= $(shell git rev-parse --short HEAD)
Expand Down
3 changes: 2 additions & 1 deletion mc-scheduling/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# mc-scheduling
// TODO(user): Add simple overview of use/purpose

Multi-cluster scheduling framework supporting pluggable schedulers.

## Description
// TODO(user): An in-depth paragraph about your project and overview of use
Expand Down
2 changes: 1 addition & 1 deletion mc-scheduling/cmd/mc-scheduler/main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion mc-scheduling/internal/controller/suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion mc-scheduling/internal/controller/workflow_controller.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
16 changes: 16 additions & 0 deletions mc-scheduling/pkg/scheduler/default_scheduler.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package scheduler

import (
Expand Down
16 changes: 16 additions & 0 deletions mc-scheduling/pkg/scheduler/scheduler_interface.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

package scheduler

import (
Expand Down
2 changes: 1 addition & 1 deletion mc-scheduling/test/e2e/e2e_suite_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion mc-scheduling/test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion mc-scheduling/test/utils/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2024.
Copyright 2024 The KubeStellar Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
26 changes: 20 additions & 6 deletions scripts/kfp/README.md → scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,29 @@
## Pre-reqs

Make sure you have the same pre-reqs required by [KubeStellar 0.22](https://docs.kubestellar.io/release-0.22.0/direct/pre-reqs/#kubestellar-prerequisites).
Make sure also go and make tools are installed. As for kind and docker,
this setup has been tested with kind v0.22.0 and Rancher Desktop v1.13.1 on macOS apple silicon.
It has also been tested on a RHEL 9 VM with 64 GB RAM and 16 Cores on [Draco](https://ocp-draco.bx.cloud9.ibm.com).
See how to setup the VM [here](docs/RHEL-KS-install.md).

Make sure also go and make tools are installed. Note that this setup has been tested only on the
following environments:

- MacBook Pro:
- Apple M1 Max, 64 GB Memory
- MacOS 14.4.1
- Rancher Desktop v1.13.1
- kind v0.22.0
- IBM Cloud VM:
- 64 GB RAM, 16 Cores
- RHEL 9
- Docker CE 26.1.1
- kind v0.22.0


See how to setup the RHEL VM [here](docs/RHEL-KS-install.md).

## Preparation

Before runnning the scripts, make sure to increase your ulimits and
fs.inotify.max_user_watches and fs.inotify.max_user_instances.
fs.inotify.max_user_watches and fs.inotify.max_user_instances for the machine
running the kind clusters. See [these instructions](https://kind.sigs.k8s.io/docs/user/known-issues/#pod-errors-due-to-too-many-open-files) for more info.

For Rancher Desktop follow [these instructions](https://docs.rancherdesktop.io/how-to-guides/increasing-open-file-limit).
and use the following config:
Expand Down Expand Up @@ -43,5 +57,5 @@ backs up and delete your default kubeconfig in ~/.kube/config.
Run the script:

```shell
kfp/instal-all.sh
./instal-all.sh
```
Binary file removed scripts/argo-wf/.ks/ocm-transport-plugin
Binary file not shown.
39 changes: 0 additions & 39 deletions scripts/argo-wf/.ks/transport.log

This file was deleted.

15 changes: 15 additions & 0 deletions scripts/argo-wf/install-all.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
#!/bin/bash

# Copyright 2023 The KubeStellar Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.


set -x # echo so that users can understand what is happening
set -e # exit on error

Expand Down
14 changes: 14 additions & 0 deletions scripts/argo-wf/install-aw.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
#!/bin/bash

# Copyright 2024 The KubeStellar Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -x # echo so that users can understand what is happening
set -e # exit on error

Expand Down
Loading

0 comments on commit d47c82b

Please sign in to comment.