Skip to content

Commit

Permalink
Merge pull request #33 from Angelin01/cached-api
Browse files Browse the repository at this point in the history
Cache calls to the API using a reflector
  • Loading branch information
Angelin01 authored Sep 7, 2024
2 parents f5e048e + d8bdf99 commit d755f9d
Show file tree
Hide file tree
Showing 8 changed files with 301 additions and 108 deletions.
176 changes: 163 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "0.1.0"
edition = "2021"

[dependencies]
kube = { version = "0.88.1", default-features = false, features = ["admission", "client", "rustls-tls"] }
kube = { version = "0.88.1", default-features = false, features = ["admission", "client", "runtime", "rustls-tls"] }
k8s-openapi = { version = "0.21.0", features = ["earliest"] }
serde = { version = "1.0.196", features = ["derive"] }
figment = { version = "0.10.14", features = ["env", "yaml"] }
Expand All @@ -21,6 +21,7 @@ json-patch = { version = "1.2.0", default-features = false }
serde_json = "1.0.113"
anyhow = "1.0.79"
thiserror = "1.0.56"
futures = "0.3.30"

[dev-dependencies]
figment = { version = "0.10.14", features = ["test"] }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
kind: ClusterRoleBinding
metadata:
name: {{ include "pod-director.fullname" . }}
labels:
Expand All @@ -8,6 +8,7 @@ subjects:
- apiGroup: ""
kind: ServiceAccount
name: {{ include "pod-director.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
Expand Down
Loading

0 comments on commit d755f9d

Please sign in to comment.