Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Oct 8, 2024
1 parent 2c1de59 commit def4835
Showing 1 changed file with 258 additions and 0 deletions.
258 changes: 258 additions & 0 deletions tests/tool/__snapshots__/test_build.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -4951,6 +4951,264 @@
interval: 60m


'''
# ---
# name: test_build_hr[build-hr-cluster3]
'''
---
# Source: podinfo/templates/redis/config.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: podinfo-redis
annotations:
config.kubernetes.io/index: '0'
internal.config.kubernetes.io/index: '0'
data:
redis.conf: |
maxmemory 64mb
maxmemory-policy allkeys-lru
save ""
appendonly no
---
# Source: podinfo/templates/redis/service.yaml
apiVersion: v1
kind: Service
metadata:
name: podinfo-redis
labels:
app: podinfo-redis
annotations:
config.kubernetes.io/index: '1'
internal.config.kubernetes.io/index: '1'
spec:
type: ClusterIP
selector:
app: podinfo-redis
ports:
- name: redis
port: 6379
protocol: TCP
targetPort: redis
---
# Source: podinfo/templates/service.yaml
apiVersion: v1
kind: Service
metadata:
name: podinfo
labels:
helm.sh/chart: podinfo-6.7.1
app.kubernetes.io/name: podinfo
app.kubernetes.io/version: "6.7.1"
app.kubernetes.io/managed-by: Helm
annotations:
config.kubernetes.io/index: '2'
internal.config.kubernetes.io/index: '2'
spec:
type: ClusterIP
ports:
- port: 9898
targetPort: http
protocol: TCP
name: http
- port: 9999
targetPort: grpc
protocol: TCP
name: grpc
selector:
app.kubernetes.io/name: podinfo
---
# Source: podinfo/templates/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: podinfo
labels:
helm.sh/chart: podinfo-6.7.1
app.kubernetes.io/name: podinfo
app.kubernetes.io/version: "6.7.1"
app.kubernetes.io/managed-by: Helm
annotations:
config.kubernetes.io/index: '3'
internal.config.kubernetes.io/index: '3'
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
selector:
matchLabels:
app.kubernetes.io/name: podinfo
template:
metadata:
labels:
app.kubernetes.io/name: podinfo
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9898"
spec:
terminationGracePeriodSeconds: 30
containers:
- name: podinfo
image: "ghcr.io/stefanprodan/podinfo:6.7.1"
imagePullPolicy: IfNotPresent
command:
- ./podinfo
- --port=9898
- --cert-path=/data/cert
- --port-metrics=9797
- --grpc-port=9999
- --grpc-service-name=podinfo
- --cache-server=tcp://podinfo-redis:6379
- --level=info
- --random-delay=false
- --random-error=false
env:
- name: PODINFO_UI_COLOR
value: "#34577c"
ports:
- name: http
containerPort: 9898
protocol: TCP
- name: http-metrics
containerPort: 9797
protocol: TCP
- name: grpc
containerPort: 9999
protocol: TCP
livenessProbe:
exec:
command:
- podcli
- check
- http
- localhost:9898/healthz
initialDelaySeconds: 1
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
periodSeconds: 10
readinessProbe:
exec:
command:
- podcli
- check
- http
- localhost:9898/readyz
initialDelaySeconds: 1
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
periodSeconds: 10
volumeMounts:
- name: data
mountPath: /data
resources:
limits: null
requests:
cpu: 1m
memory: 16Mi
volumes:
- name: data
emptyDir: {}
---
# Source: podinfo/templates/redis/deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: podinfo-redis
labels:
app: podinfo-redis
annotations:
config.kubernetes.io/index: '4'
internal.config.kubernetes.io/index: '4'
spec:
strategy:
type: Recreate
selector:
matchLabels:
app: podinfo-redis
template:
metadata:
labels:
app: podinfo-redis
annotations:
checksum/config: "34c601c9d39797bbf53d1c7a278976609301f637ec11dc0253563729dfad4f8e"
spec:
containers:
- name: redis
image: "public.ecr.aws/docker/library/redis:7.0.6"
imagePullPolicy: IfNotPresent
command:
- redis-server
- "/redis-master/redis.conf"
ports:
- name: redis
containerPort: 6379
protocol: TCP
livenessProbe:
tcpSocket:
port: redis
initialDelaySeconds: 5
timeoutSeconds: 5
readinessProbe:
exec:
command:
- redis-cli
- ping
initialDelaySeconds: 5
timeoutSeconds: 5
resources:
limits:
cpu: 1000m
memory: 128Mi
requests:
cpu: 100m
memory: 32Mi
volumeMounts:
- mountPath: /var/lib/redis
name: data
- mountPath: /redis-master
name: config
volumes:
- name: data
emptyDir: {}
- name: config
configMap:
name: podinfo-redis
items:
- key: redis.conf
path: redis.conf
---
# Source: podinfo/templates/ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: podinfo
labels:
helm.sh/chart: podinfo-6.7.1
app.kubernetes.io/name: podinfo
app.kubernetes.io/version: "6.7.1"
app.kubernetes.io/managed-by: Helm
annotations:
config.kubernetes.io/index: '5'
internal.config.kubernetes.io/index: '5'
spec:
ingressClassName: nginx
rules:
- host: "podinfo.local"
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: podinfo
port:
number: 9898


'''
# ---
# name: test_build_hr[build-hr-single-cluster6]
Expand Down

0 comments on commit def4835

Please sign in to comment.