Skip to content

Commit

Permalink
rename test file + build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex5517 committed May 23, 2024
1 parent f40b613 commit 4e8cdc8
Show file tree
Hide file tree
Showing 72 changed files with 4,482 additions and 0 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Source: mimir-distributed/charts/minio/templates/console-service.yaml
apiVersion: v1
kind: Service
metadata:
name: test-ruler-dedicated-query-path-values-minio-console
labels:
app: minio
chart: minio-5.0.14
release: test-ruler-dedicated-query-path-values
heritage: Helm
spec:
type: ClusterIP
ports:
- name: http
port: 9001
protocol: TCP
targetPort: 9001
selector:
app: minio
release: test-ruler-dedicated-query-path-values
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
# Source: mimir-distributed/charts/minio/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-ruler-dedicated-query-path-values-minio
labels:
app: minio
chart: minio-5.0.14
release: test-ruler-dedicated-query-path-values
heritage: Helm
spec:
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 100%
maxUnavailable: 0
replicas: 1
selector:
matchLabels:
app: minio
release: test-ruler-dedicated-query-path-values
template:
metadata:
name: test-ruler-dedicated-query-path-values-minio
labels:
app: minio
release: test-ruler-dedicated-query-path-values
annotations:
checksum/secrets: c864730acd976c50ca058e41231e573051d6bf86d2b2b33dc6cb700c7a486b86
checksum/config: ff6673ed46bcc10cd2f7415590914b57bca3e18fb10f654a021efd4ca72b864e
spec:
securityContext:
runAsUser: 1000
runAsGroup: 1000
fsGroup: 1000
fsGroupChangePolicy: OnRootMismatch

serviceAccountName: minio-sa
containers:
- name: minio
image: "quay.io/minio/minio:RELEASE.2023-09-30T07-02-29Z"
imagePullPolicy: IfNotPresent
command:
- "/bin/sh"
- "-ce"
- "/usr/bin/docker-entrypoint.sh minio server /export -S /etc/minio/certs/ --address :9000 --console-address :9001"
volumeMounts:
- name: minio-user
mountPath: "/tmp/credentials"
readOnly: true
- name: export
mountPath: /export
ports:
- name: http
containerPort: 9000
- name: http-console
containerPort: 9001
env:
- name: MINIO_ROOT_USER
valueFrom:
secretKeyRef:
name: test-ruler-dedicated-query-path-values-minio
key: rootUser
- name: MINIO_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: test-ruler-dedicated-query-path-values-minio
key: rootPassword
- name: MINIO_PROMETHEUS_AUTH_TYPE
value: "public"
resources:
requests:
cpu: 100m
memory: 128Mi
volumes:
- name: export
persistentVolumeClaim:
claimName: test-ruler-dedicated-query-path-values-minio
- name: minio-user
secret:
secretName: test-ruler-dedicated-query-path-values-minio
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
---
# Source: mimir-distributed/charts/minio/templates/post-job.yaml
apiVersion: batch/v1
kind: Job
metadata:
name: test-ruler-dedicated-query-path-values-minio-post-job
labels:
app: minio-post-job
chart: minio-5.0.14
release: test-ruler-dedicated-query-path-values
heritage: Helm
annotations:
"helm.sh/hook": post-install,post-upgrade
"helm.sh/hook-delete-policy": hook-succeeded,before-hook-creation
spec:
template:
metadata:
labels:
app: minio-job
release: test-ruler-dedicated-query-path-values
spec:
restartPolicy: OnFailure
volumes:
- name: etc-path
emptyDir: {}
- name: tmp
emptyDir: {}
- name: minio-configuration
projected:
sources:
- configMap:
name: test-ruler-dedicated-query-path-values-minio
- secret:
name: test-ruler-dedicated-query-path-values-minio
serviceAccountName: minio-sa
containers:
- name: minio-make-bucket
image: "quay.io/minio/mc:RELEASE.2023-09-29T16-41-22Z"
imagePullPolicy: IfNotPresent
command: [ "/bin/sh", "/config/initialize" ]
env:
- name: MINIO_ENDPOINT
value: test-ruler-dedicated-query-path-values-minio
- name: MINIO_PORT
value: "9000"
volumeMounts:
- name: etc-path
mountPath: /etc/minio/mc
- name: tmp
mountPath: /tmp
- name: minio-configuration
mountPath: /config
resources:
requests:
memory: 128Mi
- name: minio-make-user
image: "quay.io/minio/mc:RELEASE.2023-09-29T16-41-22Z"
imagePullPolicy: IfNotPresent
command: [ "/bin/sh", "/config/add-user" ]
env:
- name: MINIO_ENDPOINT
value: test-ruler-dedicated-query-path-values-minio
- name: MINIO_PORT
value: "9000"
volumeMounts:
- name: etc-path
mountPath: /etc/minio/mc
- name: tmp
mountPath: /tmp
- name: minio-configuration
mountPath: /config
resources:
requests:
memory: 128Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
# Source: mimir-distributed/charts/minio/templates/pvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: test-ruler-dedicated-query-path-values-minio
labels:
app: minio
chart: minio-5.0.14
release: test-ruler-dedicated-query-path-values
heritage: Helm
spec:
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: "5Gi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
# Source: mimir-distributed/charts/minio/templates/secrets.yaml
apiVersion: v1
kind: Secret
metadata:
name: test-ruler-dedicated-query-path-values-minio
labels:
app: minio
chart: minio-5.0.14
release: test-ruler-dedicated-query-path-values
heritage: Helm
type: Opaque
data:
rootUser: "Z3JhZmFuYS1taW1pcg=="
rootPassword: "c3VwZXJzZWNyZXQ="
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
# Source: mimir-distributed/charts/minio/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: test-ruler-dedicated-query-path-values-minio
labels:
app: minio
chart: minio-5.0.14
release: test-ruler-dedicated-query-path-values
heritage: Helm
monitoring: "true"
spec:
type: ClusterIP
ports:
- name: http
port: 9000
protocol: TCP
targetPort: 9000
selector:
app: minio
release: test-ruler-dedicated-query-path-values
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
# Source: mimir-distributed/charts/minio/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: "minio-sa"
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
# Source: mimir-distributed/charts/rollout_operator/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-ruler-dedicated-query-path-values-rollout-operator
labels:
helm.sh/chart: rollout-operator-0.15.0
app.kubernetes.io/name: rollout-operator
app.kubernetes.io/instance: test-ruler-dedicated-query-path-values
app.kubernetes.io/version: "v0.14.0"
app.kubernetes.io/managed-by: Helm
spec:
replicas: 1
minReadySeconds: 10
selector:
matchLabels:
app.kubernetes.io/name: rollout-operator
app.kubernetes.io/instance: test-ruler-dedicated-query-path-values
strategy:
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
template:
metadata:
labels:
app.kubernetes.io/name: rollout-operator
app.kubernetes.io/instance: test-ruler-dedicated-query-path-values
spec:
serviceAccountName: test-ruler-dedicated-query-path-values-rollout-operator
securityContext:
fsGroup: 10001
runAsGroup: 10001
runAsNonRoot: true
runAsUser: 10001
seccompProfile:
type: RuntimeDefault
containers:
- name: rollout-operator
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
image: "grafana/rollout-operator:v0.14.0"
imagePullPolicy: IfNotPresent
args:
- -kubernetes.namespace=citestns
ports:
- name: http-metrics
containerPort: 8001
protocol: TCP
readinessProbe:
httpGet:
path: /ready
port: http-metrics
initialDelaySeconds: 5
timeoutSeconds: 1
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 100Mi
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
# Source: mimir-distributed/charts/rollout_operator/templates/role.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: test-ruler-dedicated-query-path-values-rollout-operator
rules:
- apiGroups:
- ""
resources:
- pods
verbs:
- list
- get
- watch
- delete
- apiGroups:
- apps
resources:
- statefulsets
verbs:
- list
- get
- watch
- apiGroups:
- apps
resources:
- statefulsets/status
verbs:
- update
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
# Source: mimir-distributed/charts/rollout_operator/templates/rolebinding.yaml
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: test-ruler-dedicated-query-path-values-rollout-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: test-ruler-dedicated-query-path-values-rollout-operator
subjects:
- kind: ServiceAccount
name: test-ruler-dedicated-query-path-values-rollout-operator
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
# Source: mimir-distributed/charts/rollout_operator/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: test-ruler-dedicated-query-path-values-rollout-operator
labels:
helm.sh/chart: rollout-operator-0.15.0
app.kubernetes.io/name: rollout-operator
app.kubernetes.io/instance: test-ruler-dedicated-query-path-values
app.kubernetes.io/version: "v0.14.0"
app.kubernetes.io/managed-by: Helm
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Source: mimir-distributed/templates/alertmanager/alertmanager-config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: test-ruler-dedicated-query-path-values-mimir-alertmanager-fallback-config
labels:
app.kubernetes.io/name: mimir
app.kubernetes.io/instance: test-ruler-dedicated-query-path-values
app.kubernetes.io/component: alertmanager
app.kubernetes.io/part-of: memberlist
app.kubernetes.io/managed-by: Helm
annotations:
{}
namespace: "citestns"
data:
alertmanager_fallback_config.yaml: |
receivers:
- name: default-receiver
route:
receiver: default-receiver
Loading

0 comments on commit 4e8cdc8

Please sign in to comment.