- Open an Issue
- Create a PR
- Optional: Come to pig-doc meeting to discuss
- Open an Issue with proposed content
- Optional: Come to pig-doc meeting to discuss
- Add a new
new_page.md
under correct category that your page belongs to - Update
SUMMARY.md
under correct category that your page belongs to
- Merge PR to master
- Commit directly to master
Not sure api methods is worth using.
{% hint style="info" %}
hint text
{% endhint %}
Hints may have the following styles:
- success
- info
- warning
- danger
{% tabs %}
{% tab title="Yes" %}
Some text
{% endtab %}
{% tab title="No" %}
Other tab
{% endtab %}
{% endtabs %}
{% code-tabs %}
{% code-tabs-item title="hello\_world.py" %}
\`\`\`python
print("hello world")
\`\`\`
{% endcode-tabs-item %}
{% code-tabs-item title="index.html" %}
\`\`\`markup
<h1>hello world</h1>
\`\`\`
{% endcode-tabs-item %}
{% endcode-tabs %}
{% api-method method="delete" host="https://daemon.nais.preprod.local/app" path="/namespace/app" %}
{% api-method-summary %}
Delte Naisd app
{% endapi-method-summary %}
{% api-method-description %}
When using Naisd, the only way to remove your application is to use the delete-endpoint. This will remove all the Kubernetes resources made for your application.
{% endapi-method-description %}
{% api-method-spec %}
{% api-method-request %}
{% api-method-path-parameters %}
{% api-method-parameter name="namespace" type="string" required=true %}
name of namespace
{% endapi-method-parameter %}
{% api-method-parameter name="app" type="string" required=true %}
name of app
{% endapi-method-parameter %}
{% endapi-method-path-parameters %}
{% endapi-method-request %}
{% api-method-response %}
{% api-method-response-example httpCode=200 %}
{% api-method-response-example-description %}
Done
{% endapi-method-response-example-description %}
\`\`\`
result:
service: OK
deployment: OK
redis: N/A
secret: OK
ingress OK
autoscaler: OK
alert rules: OK
service account: OK
\`\`\`
{% endapi-method-response-example %}
{% api-method-response-example httpCode=500 %}
{% api-method-response-example-description %}
Failed
{% endapi-method-response-example-description %}
\`\`\`
\`\`\`
{% endapi-method-response-example %}
{% endapi-method-response %}
{% endapi-method-spec %}
{% endapi-method %}