Skip to content

Commit

Permalink
operator tempo-operator (0.5.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvp8510 authored Oct 27, 2023
1 parent 23bc288 commit b5a10c8
Show file tree
Hide file tree
Showing 12 changed files with 2,352 additions and 0 deletions.
20 changes: 20 additions & 0 deletions operators/tempo-operator/0.5.0/bundle.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM scratch

# Core bundle labels.
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
LABEL operators.operatorframework.io.bundle.package.v1=tempo-operator
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.27.0
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v3

# Labels for testing.
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/

# Copy files to locations specified by labels.
COPY ./manifests /manifests/
COPY ./metadata /metadata/
COPY ./tests/scorecard /tests/scorecard/
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: v1
kind: Service
metadata:
annotations:
service.beta.openshift.io/serving-cert-secret-name: tempo-operator-metrics
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
control-plane: controller-manager
name: tempo-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: config.tempo.grafana.com/v1alpha1
kind: ProjectConfig
distribution: openshift
health:
healthProbeBindAddress: :8081
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 8b886b0f.grafana.com
# leaderElectionReleaseOnCancel defines if the leader should step down volume
# when the Manager ends. This requires the binary to immediately end when the
# Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
# speeds up voluntary leader transitions as the new leader don't have to wait
# LeaseDuration time first.
# In the default scaffold provided, the program ends immediately after
# the manager stops, so would be fine to enable this option. However,
# if you are doing or is intended to do any operation such as perform cleanups
# after the manager stops then its usage might be unsafe.
# leaderElectionReleaseOnCancel: true
images:
tempo: docker.io/grafana/tempo:2.2.3
tempoQuery: docker.io/grafana/tempo-query:main-2e5e27a
tempoGateway: quay.io/observatorium/api:main-2023-10-13-a92611b
tempoGatewayOpa: quay.io/observatorium/opa-openshift:main-2023-10-13-13d8960
featureGates:
openshift:
openshiftRoute: true
servingCertsService: true
prometheusOperator: true
httpEncryption: true
grpcEncryption: true
tlsProfile: Modern
builtInCertManagement:
enabled: true
# CA certificate validity: 5 years
caValidity: 43830h
# CA certificate refresh at 80% of validity
caRefresh: 35064h
# Target certificate validity: 90d
certValidity: 2160h
# Target certificate refresh at 80% of validity
certRefresh: 1728h
observability:
metrics:
createServiceMonitors: true
createPrometheusRules: true
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
name: tempo-operator-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
name: tempo-operator-manager-rolebinding-cluster-monitoring-view
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-monitoring-view
subjects:
- kind: ServiceAccount
name: tempo-operator-controller-manager
namespace: tempo-operator-system
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
name: tempo-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
name: tempo-operator-prometheus
rules:
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
annotations:
include.release.openshift.io/self-managed-high-availability: "true"
include.release.openshift.io/single-node-developer: "true"
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
name: tempo-operator-prometheus
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: tempo-operator-prometheus
subjects:
- kind: ServiceAccount
name: prometheus-k8s
namespace: openshift-monitoring
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
name: tempo-operator-webhook-service
spec:
ports:
- port: 443
protocol: TCP
targetPort: 9443
selector:
app.kubernetes.io/managed-by: operator-lifecycle-manager
app.kubernetes.io/name: tempo-operator
app.kubernetes.io/part-of: tempo-operator
control-plane: controller-manager
status:
loadBalancer: {}
Loading

0 comments on commit b5a10c8

Please sign in to comment.