24 lines
647 B
Python
24 lines
647 B
Python
# https://gitlab.com/gitlab-org/gitlab/-/issues/22684
|
|
# herokuish/AutoDevOps can't test some languages
|
|
|
|
# Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io"
|
|
# https://stackoverflow.com/questions/61365202/nginx-ingress-service-ingress-nginx-controller-admission-not-found
|
|
# kubectl get -A ValidatingWebhookConfiguration
|
|
# kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission
|
|
|
|
|
|
|
|
from flask import Flask
|
|
import os
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route('/')
|
|
def hello():
|
|
return 'Hello world!\n'
|
|
|
|
@app.route('/env')
|
|
def env():
|
|
return "\n".join([f"{k}: {v}" for k,v in os.environ.items()])
|