configeditor/index.html (30 lines of code) (raw):

<!doctype html> <html lang="en"> <!-- Copyright 2024 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <head> <title>Autoscaler config file editor</title> <meta charset="utf-8" /> <script src="index.mjs" lang="javascript" type="module"></script> </head> <body> <h2>JSON Autoscaler config file editor</h2> <p>Copy/Paste your YAML or JSON autoscaler config in the editor below.</p> <p>The configuration will automatically be validated and any errors shown</p> <div id="loading"> Loading... <br /> If this Loading message does not disappear, check that you have run <tt>./build-configeditor.sh</tt> </div> <div id="jsoneditor" style="width: 95%; height: 600px"></div> <hr /> <h3>Equivalent GKE configmap YAML</h3> <textarea id="yamlequivalent" readonly="true" style="width: 90%; height: 400px; border: solid 2px slategray; margin-left: 53px" ></textarea> <p> Powered by <a href="https://github.com/josdejong/svelte-jsoneditor">jsoneditoronline.org</a> </p> </body> </html>