-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed the operator to gracefully degrade when not on cluster-wide s…
…cope Signed-off-by: Juraci Paixão Kröhling <[email protected]>
- Loading branch information
1 parent
de6fff1
commit 50b3621
Showing
23 changed files
with
628 additions
and
258 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## this is an extra set of permissions that the Jaeger Operator might make use of if granted | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: jaeger-operator-cluster | ||
rules: | ||
|
||
## required for cluster-wide operators | ||
- apiGroups: | ||
- jaegertracing.io | ||
resources: | ||
- '*' | ||
verbs: | ||
- 'get' | ||
- 'list' | ||
- 'create' | ||
- 'update' | ||
- 'delete' | ||
- 'watch' | ||
|
||
## needed if support for injecting sidecars based on namespace annotation is required | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- namespaces | ||
verbs: | ||
- 'get' | ||
- 'list' | ||
- 'watch' | ||
|
||
## needed if support for injecting sidecars based on deployment annotation is required, across all namespaces | ||
- apiGroups: | ||
- apps | ||
resources: | ||
- deployments | ||
verbs: | ||
- 'get' | ||
- 'list' | ||
- 'create' | ||
- 'update' | ||
- 'watch' | ||
|
||
## needed only when .Spec.Ingress.Openshift.DelegateUrls is used | ||
- apiGroups: | ||
- rbac.authorization.k8s.io | ||
resources: | ||
- clusterrolebindings | ||
verbs: | ||
- 'get' | ||
- 'list' | ||
- 'create' | ||
- 'update' | ||
- 'delete' | ||
- 'watch' |
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,12 @@ | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
metadata: | ||
name: jaeger-operator-cluster | ||
subjects: | ||
- kind: ServiceAccount | ||
name: jaeger-operator | ||
namespace: "observability" # change to point to the namespace you installed your operator | ||
roleRef: | ||
kind: ClusterRole | ||
name: jaeger-operator-cluster | ||
apiGroup: rbac.authorization.k8s.io |
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,6 @@ | ||
crd-cr-paths: | ||
- deploy/crds | ||
operator-path: deploy/operator.yaml | ||
role-paths: | ||
- deploy/role.yaml | ||
- deploy/cluster_role.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
Oops, something went wrong.