-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail cluster creation if audit file is not found
- Loading branch information
Showing
7 changed files
with
98 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
Copyright © 2023 Fabrice Jammes [email protected] | ||
*/ | ||
package cmd | ||
|
||
import ( | ||
"log/slog" | ||
"os" | ||
|
||
"github.com/k8s-school/ktbx/resources" | ||
"github.com/spf13/cobra" | ||
) | ||
|
||
// falcoCmd represents the argocd command | ||
var falcoCmd = &cobra.Command{ | ||
Use: "falco", | ||
Aliases: []string{"fa"}, | ||
Short: "Install Falco", | ||
Long: `Install Falco`, | ||
Run: func(cmd *cobra.Command, args []string) { | ||
slog.Info("Install Falco") | ||
|
||
_, _, err := ExecCmd(resources.FalcoInstallScript, false) | ||
if err != nil { | ||
slog.Error("Error while installing Falco", "error", err) | ||
os.Exit(1) | ||
} | ||
}, | ||
} | ||
|
||
func init() { | ||
installCmd.AddCommand(falcoCmd) | ||
|
||
// Here you will define your flags and configuration settings. | ||
|
||
// Cobra supports Persistent Flags which will work for this command | ||
// and all subcommands, e.g.: | ||
// argocdCmd.PersistentFlags().String("foo", "", "A help for foo") | ||
|
||
// Cobra supports local flags which will only run when this command | ||
// is called directly, e.g.: | ||
// argocdCmd.Flags().BoolP("toggle", "t", false, "Help message for toggle") | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
# Install Helm on the client machine | ||
|
||
# @author Fabrice Jammes | ||
#!/bin/bash | ||
|
||
set -euxo pipefail | ||
|
||
helm repo add falcosecurity https://falcosecurity.github.io/charts | ||
helm repo update | ||
|
||
echo "Install Falco" | ||
helm install --replace falco --namespace falco --create-namespace \ | ||
--set tty=true \ | ||
--set falcosidekick.enabled=true \ | ||
--set falcosidekick.webui.enabled=true \ | ||
falcosecurity/falco | ||
|
||
echo "Check that the Falco pods are running" | ||
kubectl get pods -n falco | ||
|
||
echo "Falco pod(s) might need a few seconds to start. Wait until they are ready..." | ||
kubectl wait pods --for=condition=Ready --all -n falco |