CI - YAML formatting issue (#23047)

* CI

* CI
This commit is contained in:
Pere Miquel Brull 2025-08-21 18:05:15 +02:00 committed by GitHub
parent 20486c23c5
commit dbe8d5ed00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 45 deletions

View File

@ -42,51 +42,51 @@ spec:
app: openmetadata-fuseki
spec:
containers:
- name: fuseki
image: openmetadata/fuseki-rdf:latest
imagePullPolicy: Always
ports:
- containerPort: 3030
name: fuseki
env:
- name: FUSEKI_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: fuseki-secrets
key: admin-password
- name: FUSEKI_OPENMETADATA_PASSWORD
valueFrom:
secretKeyRef:
name: fuseki-secrets
key: openmetadata-password
- name: JAVA_OPTIONS
value: "-Xmx2g -Xms1g"
volumeMounts:
- name: fuseki-data
mountPath: /fuseki-data
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "3Gi"
cpu: "2000m"
livenessProbe:
httpGet:
path: /$/ping
port: 3030
initialDelaySeconds: 30
periodSeconds: 30
readinessProbe:
httpGet:
path: /$/ping
port: 3030
initialDelaySeconds: 10
periodSeconds: 10
- name: fuseki
image: openmetadata/fuseki-rdf:latest
imagePullPolicy: Always
ports:
- containerPort: 3030
name: fuseki
env:
- name: FUSEKI_ADMIN_PASSWORD
valueFrom:
secretKeyRef:
name: fuseki-secrets
key: admin-password
- name: FUSEKI_OPENMETADATA_PASSWORD
valueFrom:
secretKeyRef:
name: fuseki-secrets
key: openmetadata-password
- name: JAVA_OPTIONS
value: "-Xmx2g -Xms1g"
volumeMounts:
- name: fuseki-data
mountPath: /fuseki-data
resources:
requests:
memory: "1Gi"
cpu: "500m"
limits:
memory: "3Gi"
cpu: "2000m"
livenessProbe:
httpGet:
path: /$/ping
port: 3030
initialDelaySeconds: 30
periodSeconds: 30
readinessProbe:
httpGet:
path: /$/ping
port: 3030
initialDelaySeconds: 10
periodSeconds: 10
volumes:
- name: fuseki-data
persistentVolumeClaim:
claimName: fuseki-data-pvc
- name: fuseki-data
persistentVolumeClaim:
claimName: fuseki-data-pvc
---
apiVersion: v1
kind: Secret

View File

@ -6,4 +6,7 @@ import yaml
path = sys.argv[1]
if os.path.islink(path):
exit()
yaml.safe_load(open(path, "r"))
with open(path, "r") as f:
# safe_load_all works for both single and multi-document YAML
list(yaml.safe_load_all(f))