-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(operators): unify api and design of operators (#187)
this is rather radical list, as one can see from amount of changes. - remove mocks for kubernetes and use fake clients instead - decople hostname operator from cluster client - decople ip operator from client - decople inventory operator from cluster client - decople metallb operator client from cluster client - unify operators clients group them within same location - unify labels and selectors across all operators Signed-off-by: Artur Troian <[email protected]>
- Loading branch information
Showing
559 changed files
with
6,442 additions
and
99,274 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
45 changes: 45 additions & 0 deletions
45
_docs/kustomize/akash-operator-hostname/cluster-roles.yaml
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,45 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: akash-operator-hostname | ||
labels: | ||
app.kubernetes.io/name: hostname | ||
app.kubernetes.io/instance: hostname-service | ||
app.kubernetes.io/component: operator | ||
app.kubernetes.io/part-of: provider | ||
rules: | ||
- apiGroups: | ||
- networking.k8s.io | ||
resources: | ||
- ingresses | ||
verbs: | ||
- get | ||
- list | ||
- create | ||
- update | ||
- delete | ||
- deletecollection | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
- services | ||
verbs: | ||
- get | ||
- apiGroups: | ||
- akash.network | ||
resources: | ||
- providerhosts | ||
- manifests | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- pods | ||
verbs: | ||
- get |
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 was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
_docs/kustomize/akash-operator-hostname/role-bindings.yaml
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,18 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: akash-operator-hostname | ||
labels: | ||
app.kubernetes.io/name: hostname | ||
app.kubernetes.io/instance: hostname-service | ||
app.kubernetes.io/component: operator | ||
app.kubernetes.io/part-of: provider | ||
subjects: | ||
- kind: ServiceAccount | ||
name: operator-hostname | ||
namespace: akash-services | ||
roleRef: | ||
kind: ClusterRole | ||
name: akash-operator-hostname | ||
apiGroup: rbac.authorization.k8s.io |
10 changes: 10 additions & 0 deletions
10
_docs/kustomize/akash-operator-hostname/service-accounts.yaml
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,10 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: operator-hostname | ||
labels: | ||
app.kubernetes.io/name: hostname | ||
app.kubernetes.io/instance: hostname-service | ||
app.kubernetes.io/component: operator | ||
app.kubernetes.io/part-of: provider |
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 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
Oops, something went wrong.