-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: enables Kubernetes syncing for flagd (#82)
* enables kuberentes syncing for flagd Signed-off-by: Alex Jones <alexsimonjones@gmail.com> * Update kustomization.yaml Signed-off-by: Alex Jones <alexsimonjones@gmail.com> * Update manager.yaml Signed-off-by: Alex Jones <alexsimonjones@gmail.com> * using the new flagd v0.1.0 capabilities to leverage k8s provider Signed-off-by: Alex Jones <alexsimonjones@gmail.com> * reworked to default to the k8s sync provider and inject the right role bindings Signed-off-by: Alex Jones <alexsimonjones@gmail.com> * reverted maanger files Signed-off-by: Alex Jones <alexsimonjones@gmail.com> * Update flagd_kubernetes_sync_clusterrole.yaml Signed-off-by: Alex Jones <alexsimonjones@gmail.com> Signed-off-by: Alex Jones <alexsimonjones@gmail.com>
- Loading branch information
1 parent
7d099c7
commit 933cd94
Showing
11 changed files
with
167 additions
and
54 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
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 |
---|---|---|
|
@@ -231,8 +231,6 @@ spec: | |
nullable: true | ||
properties: | ||
name: | ||
enum: | ||
- filepath | ||
type: string | ||
required: | ||
- name | ||
|
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,9 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
# Prepends to open-feature-operator-flagd-kubernetes-sync | ||
name: flagd-kubernetes-sync | ||
rules: | ||
- apiGroups: ["core.openfeature.dev"] | ||
resources: ["*"] | ||
verbs: ["get", "watch", "list"] |
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,14 @@ | ||
#This adds the default account to the cluster role but will also have deployments added | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: flagd-kubernetes-sync | ||
subjects: | ||
- kind: ServiceAccount | ||
name: open-feature-operator-controller-manager | ||
namespace: default | ||
apiGroup: "" | ||
roleRef: | ||
kind: ClusterRole | ||
name: open-feature-operator-flagd-kubernetes-sync | ||
apiGroup: "" |
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
Oops, something went wrong.