Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Advanced Topics
linkTitle: Advanced Topics
weight: 50
weight: 70
---

### Manage CR status conditions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: CRD Scope
linkTitle: CRD Scope
weight: 30
weight: 60
---

## Overview
Expand All @@ -26,8 +26,7 @@ one namespace in a cluster.
**NOTE**: When a `Manager` instance is created in the `main.go` file, it receives the namespace(s) as Options.
These namespace(s) should be watched and cached for the Client which is provided by the Controllers. Only clients
provided by cluster-scoped projects where the `Namespace` attribute is `""` will be able to manage cluster-scoped CRD's.
For more information see the [Manager][manager_user_guide] topic in the user guide and the
[Manager Options][manager_options].
For more information over the [Manager][manager_go_doc] see the [Kubebuilder entrypoint doc][kubebuilder_entrypoint_doc].

## Example for changing the CRD scope from Namespaced to Cluster

Expand Down Expand Up @@ -97,5 +96,5 @@ spec:
```

[RBAC]: https://kubernetes.io/docs/reference/access-authn-authz/rbac/
[manager_user_guide]:/docs/building-operators/golang/quickstart/#manager
[kubebuilder_entrypoint_doc]:https://book.kubebuilder.io/cronjob-tutorial/empty-main.html
[manager_options]: https://godoc.org/github.com/kubernetes-sigs/controller-runtime/pkg/manager#Options
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Operators Scope
linkTitle: Operator Scope
weight: 20
weight: 50
---

## Overview
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ func (r *MemcachedReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
**Note**:
To update `config/rbac/role.yaml` after changing the markers, run `make manifests`.

The project can now be built, and the operator can be deployed on-cluster. For further steps regarding the deployment of the operator, creation of custom resources and cleaning up of resources, refer to the [quickstart guide][kb_quickstart].
The project can now be built, and the operator can be deployed on-cluster. For further steps regarding the deployment of the operator, creation of custom resources and cleaning up of resources, refer to the [quickstart guide][kb_tutorial].


[memcached-operator]:/docs/building-operators/golang/quickstart/
[memcached-operator]:/docs/building-operators/golang/tutorial/
[git_tool]: https://git-scm.com/downloads
[go_tool]: https://golang.org/dl/
[docker_tool]:https://docs.docker.com/install/
Expand All @@ -177,6 +177,6 @@ The project can now be built, and the operator can be deployed on-cluster. For f
[memcached_cr]: https://github.com/operator-framework/operator-sdk-samples/blob/master/go/memcached-operator/deploy/crds/cache.example.com_v1alpha1_memcached_cr.yaml
[memcached_types]: https://github.com/operator-framework/operator-sdk-samples/blob/master/go/memcached-operator/pkg/apis/cache/v1alpha1/memcached_types.go
[kb_memcached_controller]: https://github.com/operator-framework/operator-sdk/blob/master/example/memcached-operator/memcached_controller.go.tmpl
[kb_quickstart]: /docs/building-operators/golang/quickstart/
[kb_tutorial]: /docs/building-operators/golang/tutorial/
[install_guide]: /docs/installation/install-operator-sdk/
[env-test-setup]: /docs/building-operators/golang/references/env-test-setup
Loading