From bfae74b3dfea0eba1aac086eb6bfaca9d9e74aad Mon Sep 17 00:00:00 2001 From: Manfred Schreiber Date: Fri, 18 Feb 2022 10:29:39 +0100 Subject: [PATCH] some fixes --- .gitignore | 1 + flux/base/clusterroles/fluxcd-user.yaml | 5 ++++- local-k8s/local-k8s.sh | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 706fd07..693e00c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .idea .vscode +kubeconfigs/k3d-develop.yaml diff --git a/flux/base/clusterroles/fluxcd-user.yaml b/flux/base/clusterroles/fluxcd-user.yaml index 7cfdfa0..e86d354 100644 --- a/flux/base/clusterroles/fluxcd-user.yaml +++ b/flux/base/clusterroles/fluxcd-user.yaml @@ -6,6 +6,9 @@ metadata: # Add these permissions to "edit" default role. rbac.authorization.k8s.io/aggregate-to-edit: "true" rules: -- apiGroups: ["helm.toolkit.fluxcd.io","kustomize.toolkit.fluxcd.io","notification.toolkit.fluxcd.io","source.toolkit.fluxcd.io"] +- apiGroups: ["helm.toolkit.fluxcd.io","kustomize.toolkit.fluxcd.io","notification.toolkit.fluxcd.io"] resources: ["*"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] +- apiGroups: ["source.toolkit.fluxcd.io"] + resources: ["gitrepositories"] + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] \ No newline at end of file diff --git a/local-k8s/local-k8s.sh b/local-k8s/local-k8s.sh index 467a574..18268a8 100755 --- a/local-k8s/local-k8s.sh +++ b/local-k8s/local-k8s.sh @@ -89,6 +89,7 @@ clean() { CLUSTERDIR=$FLUXDIR/clusters/k3d-develop HOSTKEYDIR=$WORKDIR/local-git/ssh_host_keys + ssh-add -d $KEYDIR/identity.pub rm $HOSTKEYDIR/ssh_host_* rm $KEYDIR/* rmdir $KEYDIR