-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from stakater/docs-update
Updated docs and logo
- Loading branch information
Showing
17 changed files
with
133 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { HeadConfig } from '@vuepress/core' | ||
|
||
export const head: HeadConfig[] = [ | ||
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: `/favicon.png` }], | ||
['link', { rel: 'icon', type: 'image/png', sizes: '16x16', href: `/favicon.svg` }], | ||
['link', { rel: 'manifest', href: '/manifest.webmanifest' }], | ||
] |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+17.3 KB
(170%)
docs/content/sre/tenant-operator/images/to_installed_successful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-87.9 KB
(32%)
docs/content/sre/tenant-operator/images/to_sub_installation_successful.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,7 +163,7 @@ bluesky-prod Active 5d5h | |
|
||
### Distributing common labels and annotations to tenant namespaces via Tenant Custom Resource | ||
|
||
Bill now wants to add labels/annotations to all the namespaces for a tenant. To create those labels/annotations Bill will just add them into `namespaceLabels`/`namespaceAnnotations` field in the tenant CR. | ||
Bill now wants to add labels/annotations to all the namespaces for a tenant. To create those labels/annotations Bill will just add them into `commonMetadata.labels`/`commonMetadata.annotations` field in the tenant CR. | ||
|
||
```yaml | ||
kubectl apply -f - << EOF | ||
|
@@ -186,16 +186,81 @@ spec: | |
- dev | ||
- build | ||
- prod | ||
namespaceLabels: | ||
app.kubernetes.io/managed-by: tenant-operator | ||
app.kubernetes.io/part-of: tenant-alpha | ||
namespaceAnnotations: | ||
openshift.io/node-selector: node-role.kubernetes.io/infra= | ||
commonMetadata: | ||
labels: | ||
app.kubernetes.io/managed-by: tenant-operator | ||
app.kubernetes.io/part-of: tenant-alpha | ||
annotations: | ||
openshift.io/node-selector: node-role.kubernetes.io/infra= | ||
EOF | ||
``` | ||
|
||
With the above configuration all tenant namespaces will now contain the mentioned labels and annotations. | ||
|
||
### Distributing specific labels and annotations to tenant namespaces via Tenant Custom Resource | ||
|
||
Bill now wants to add labels/annotations to specific namespaces for a tenant. To create those labels/annotations Bill will just add them into `specificMetadata.labels`/`commonMetadata.annotations` and specific namespaces in `specificMetadata.namespaces` field in the tenant CR. | ||
|
||
```yaml | ||
kubectl apply -f - << EOF | ||
apiVersion: tenantoperator.stakater.com/v1beta1 | ||
kind: Tenant | ||
metadata: | ||
name: bluesky | ||
spec: | ||
owners: | ||
users: | ||
- [email protected] | ||
- [email protected] | ||
editors: | ||
users: | ||
- [email protected] | ||
groups: | ||
- alpha | ||
quota: small | ||
sandbox: true | ||
namespaces: | ||
- dev | ||
- build | ||
- prod | ||
specificMetadata: | ||
- namespaces: | ||
- bluesky-anna-aurora-sandbox | ||
labels: | ||
app.kubernetes.io/is-sandbox: true | ||
annotations: | ||
openshift.io/node-selector: node-role.kubernetes.io/worker= | ||
EOF | ||
``` | ||
|
||
With the above configuration all tenant namespaces will now contain the mentioned labels and annotations. | ||
|
||
### Retaining tenant namespaces when a tenant is being deleted | ||
|
||
Bill now wants to delete tenant `bluesky` and wants to retain all namespaces of the tenant. To retain the namespaces Bill will set `spec.onDelete.cleanNamespaces` to `false`. | ||
|
||
```yaml | ||
apiVersion: tenantoperator.stakater.com/v1beta1 | ||
kind: Tenant | ||
metadata: | ||
name: bluesky | ||
spec: | ||
owners: | ||
users: | ||
- [email protected] | ||
- [email protected] | ||
quota: small | ||
sandbox: true | ||
namespaces: | ||
- dev | ||
- build | ||
- prod | ||
onDelete: | ||
cleanNamespaces: false | ||
``` | ||
With the above configuration all tenant namespaces will not be deleted when tenant `bluesky` is deleted. By default the value of `spec.onDelete.cleanNamespaces` is also `false`. | ||
|
||
### What’s next | ||
|
||
See how Anna can create [namespaces](./namespace.html) |