Skip to content

Commit

Permalink
feat(space-tpl): fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
smileisak committed Nov 16, 2023
1 parent 75263eb commit 28392c4
Show file tree
Hide file tree
Showing 9 changed files with 1,127 additions and 11 deletions.
544 changes: 544 additions & 0 deletions charts/nauticus/crds/nauticus_crds.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/crd/patches/cainjection_in_spacetemplates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ kind: CustomResourceDefinition
metadata:
annotations:
cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME)
name: spacetemplates.nauticus.io.nauticus.io
name: spacetemplates.nauticus.io
578 changes: 574 additions & 4 deletions config/install.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ rules:
verbs:
- update
- apiGroups:
- nauticus.io.nauticus.io
- nauticus.io
resources:
- spacetemplates/status
verbs:
Expand Down
6 changes: 3 additions & 3 deletions controllers/spacetemplate/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ type Reconciler struct {
shared.Reconciler
}

//+kubebuilder:rbac:groups=nauticus.io.nauticus.io,resources=spacetemplates,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=nauticus.io.nauticus.io,resources=spacetemplates/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=nauticus.io.nauticus.io,resources=spacetemplates/finalizers,verbs=update
//+kubebuilder:rbac:groups=nauticus.io,resources=spacetemplates,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=nauticus.io,resources=spacetemplates/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=nauticus.io,resources=spacetemplates/finalizers,verbs=update

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions docs/tutorials/space-templates-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In this example, a Space named `space-tpl-ref-override` references a SpaceTempla
* This demonstrates the flexibility of SpaceTemplates, allowing Spaces to maintain standard configurations while adjusting specific settings as needed.

```yaml title="config/samples/space_wth_tpl_ref_overrides.yaml"
{% include "../../config/samples/space_wth_tpl_ref_overrides.yaml" %}
{% include "../../config/samples/space_with_tpl_ref_overrides.yaml" %}
```
#### Example: Merging Additional Role Bindings

Expand All @@ -42,5 +42,5 @@ In this example, a Space named `space-tpl-ref-merge` references a Space Template
* The Space includes additional role bindings for both `viewer` and `editor` roles, with specific subjects.
* The merged role bindings enrich the Space's access control settings, ensuring flexibility and control.
```yaml title="config/samples/space_wth_tpl_merge.yaml"
{% include "../../config/samples/space_wth_tpl_merge.yaml" %}
{% include "../../config/samples/space_with_tpl_merge.yaml" %}
```
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ nav:

- Tutorials:
- Space Tutorial: tutorials/space-tutorial.md
- Space Template Tutorial: tutorials/space-templates-tutorial.md

- Ignore Underlying Deletion: tutorials/ignore-underlying-deletion.md
- Reference:
- API Specification: crds-apis.md
Expand Down

0 comments on commit 28392c4

Please sign in to comment.