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

View File

@ -6,4 +6,7 @@ import yaml
path = sys.argv[1] path = sys.argv[1]
if os.path.islink(path): if os.path.islink(path):
exit() 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))