Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ssorj committed Nov 9, 2024
1 parent 37277de commit 55681d0
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 2 deletions.
4 changes: 4 additions & 0 deletions config/resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ properties:
status/conditions:
name: conditions
platforms: [Kubernetes]
description: |
A set of named conditions describing the current state of the
resource.
links:
- name: Kubernetes conditions
url: https://maelvls.dev/kubernetes-conditions/
Expand Down Expand Up @@ -68,6 +71,7 @@ resources:
properties:
- name: linkAccess
default: none
updatable: true
description: |
Configure external access for links from remote sites.
choices:
Expand Down
2 changes: 2 additions & 0 deletions input/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,8 @@ aside h4 {
font-size: 0.8em !important;
font-weight: 500;
text-transform: uppercase;
line-height: 1em;
margin-bottom: 1.9em;
}

/* Skupper-specific styles for prose elements */
Expand Down
3 changes: 3 additions & 0 deletions input/resources/accessgrant.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
3 changes: 3 additions & 0 deletions input/resources/accesstoken.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
3 changes: 3 additions & 0 deletions input/resources/attachedconnector.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
3 changes: 3 additions & 0 deletions input/resources/attachedconnectoranchor.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
3 changes: 3 additions & 0 deletions input/resources/connector.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
3 changes: 3 additions & 0 deletions input/resources/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
3 changes: 3 additions & 0 deletions input/resources/listener.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

A set of named conditions describing the current state of the
resource.

<table class="fields"><tr><th>Platforms</th><td>Kubernetes</td><tr><th>See also</th><td><a href="https://maelvls.dev/kubernetes-conditions/">Kubernetes conditions</a></td></table>

</div>
Expand Down
6 changes: 4 additions & 2 deletions input/resources/site.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Configure external access for links from remote sites.
</td></tr><tr><th><code>default</code></th><td><p>Use the default link access for the current platform. On OpenShift, the default is <code>route</code>. For other Kubernetes flavors, the default is <code>loadbalancer</code>.</p>
</td></tr><tr><th><code>route</code></th><td><p>Use an OpenShift route. <em>OpenShift only.</em></p>
</td></tr><tr><th><code>loadbalancer</code></th><td><p>Use a Kubernetes load balancer. <em>Kubernetes only.</em></p>
</td></tr></table></td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Linux</td><tr><th>See also</th><td><a href="/concepts/link-access.html">Link access concept</a>, <a href="https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer">Kubernetes load balancer services</a></td></table>
</td></tr></table></td><tr><th>Platforms</th><td>Kubernetes, Docker, Podman, Linux</td><tr><th>Updatable</th><td>True</td><tr><th>See also</th><td><a href="/concepts/link-access.html">Link access concept</a>, <a href="https://kubernetes.io/docs/concepts/services-networking/service/#loadbalancer">Kubernetes load balancer services</a></td></table>

</div>

Expand Down Expand Up @@ -176,7 +176,9 @@ The current state of the resource.

<div class="attribute-heading"><h3 id="status-conditions">conditions</h3><div>array</div></div>

@description@
A set of named conditions describing the current state of the
resource.


- Configured
- Running
Expand Down
4 changes: 4 additions & 0 deletions python/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ def generate_attribute_fields(attr):
if attr.platforms:
rows.append(f"<tr><th>Platforms</th><td>{', '.join(attr.platforms)}</td>")

if attr.updatable:
rows.append(f"<tr><th>Updatable</th><td>{attr.updatable}</td>")

links = generate_attribute_links(attr)

if links:
Expand Down Expand Up @@ -230,6 +233,7 @@ class ModelObjectAttribute:
name = object_property("name", required=True)
description = object_property("description")
platforms = object_property("platforms", default=["Kubernetes", "Docker", "Podman", "Linux"])
updatable = object_property("updatable")
links = object_property("links", default=[])
notes = object_property("notes")

Expand Down

0 comments on commit 55681d0

Please sign in to comment.