Skip to content

Commit

Permalink
Reformatting again
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoMoro committed Oct 12, 2024
1 parent 6e1f7ee commit f2078c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 0 additions & 2 deletions apis/network/v1alpha1/cluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)

//nolint:revive // Do not need to repeat the same comment

//+kubebuilder:object:root=true
//+kubebuilder:subresource:status
//+kubebuilder:resource:shortName=cluster;clusters
Expand Down
6 changes: 3 additions & 3 deletions pkg/network-manager/network-controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ import (
// +kubebuilder:rbac:groups=network.fluidos.eu,resources=clusters,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch

// ClusterInfo keeps the address of the discovered cluster
// ClusterInfo keeps the address of the discovered cluster.
type ClusterInfo struct {
Address string `json:"address"`
}

// NetworkManager keeps all the necessary class data
// NetworkManager keeps all the necessary class data.
type NetworkManager struct {
context context.Context
client client.Client
Expand Down Expand Up @@ -128,7 +128,7 @@ func (nm *NetworkManager) receiveMulticastMessage(multicastAddress string) error
}
}

// This is the entrypoint of the Network Manager
// This is the entrypoint of the Network Manager.

Check warning on line 131 in pkg/network-manager/network-controller.go

View workflow job for this annotation

GitHub Actions / Lint golang files

exported: comment on exported function Start should be of the form "Start ..." (revive)
func Start(ctx context.Context, cl client.Client) error {
fmt.Println("Starting Kubernetes cluster discovery")

Expand Down
4 changes: 2 additions & 2 deletions tools/scripts/environment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ create_kind_clusters() {
docker exec --workdir /tmp/cni-plugins "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" curl -LO https://github.com/containernetworking/plugins/releases/download/v1.5.1/cni-plugins-linux-amd64-v1.5.1.tgz
docker exec --workdir /tmp/cni-plugins "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" tar xvfz cni-plugins-linux-amd64-v1.5.1.tgz
docker exec --workdir /tmp/cni-plugins "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" cp macvlan /opt/cni/bin
docker exec --workdir /tmp "$name"-worker"$([ $j = 1 ] && echo "" || echo $j)" rm -r cni-plugins
docker exec --workdir /tmp "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" rm -r cni-plugins
)
done
fi
Expand Down Expand Up @@ -113,7 +113,7 @@ create_kind_clusters() {
docker exec --workdir /tmp/cni-plugins "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" curl -LO https://github.com/containernetworking/plugins/releases/download/v1.5.1/cni-plugins-linux-amd64-v1.5.1.tgz
docker exec --workdir /tmp/cni-plugins "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" tar xvfz cni-plugins-linux-amd64-v1.5.1.tgz
docker exec --workdir /tmp/cni-plugins "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" cp macvlan /opt/cni/bin
docker exec --workdir /tmp "$name"-worker"$([ $j = 1 ] && echo "" || echo $j)" rm -r cni-plugins
docker exec --workdir /tmp "$name"-worker"$([ "$j" = 1 ] && echo "" || echo "$j")" rm -r cni-plugins
)
done
fi
Expand Down

0 comments on commit f2078c1

Please sign in to comment.