-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: fix broken links (CI) #3514
Merged
joelanford
merged 3 commits into
operator-framework:master
from
camilamacedo86:remove-leader
Jul 24, 2020
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,14 @@ type MyAppStatus struct { | |
} | ||
``` | ||
|
||
<!-- todo(camilamacedo) | ||
the following link was comment for do no broke the CI | ||
this impl probably will came from operator-lib | ||
however, we also need to check if we would not like to just let them use | ||
https://github.com/kubernetes/kubernetes/pull/92717/files | ||
|
||
Then, in your controller, you can use [`Conditions`][godoc-conditions] methods to make it easier to set and remove conditions or check their current values. | ||
--> | ||
|
||
### Adding 3rd Party Resources To Your Operator | ||
|
||
|
@@ -287,14 +294,21 @@ func main() { | |
When the operator is not running in a cluster, the Manager will return an error on starting since it can't detect the operator's namespace in order to create the configmap for leader election. You can override this namespace by setting the Manager's `LeaderElectionNamespace` option. | ||
|
||
[typical-status-properties]: https://github.com/kubernetes/community/blob/master/contributors/devel/sig-architecture/api-conventions.md#typical-status-properties | ||
|
||
<!-- todo(camilamacedo) | ||
the following link was comment for do no broke the CI | ||
this impl probably will came from operator-lib | ||
however, we also need to check if we would not like to just let them use | ||
https://github.com/kubernetes/kubernetes/pull/92717/files | ||
[godoc-conditions]: https://godoc.org/github.com/operator-framework/operator-sdk/pkg/status#Conditions | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this one is falling now. I am not sure if we will still providing or not the helper in via operator-lib so just comment and raised : #3515 |
||
--> | ||
[scheme_package]:https://github.com/kubernetes/client-go/blob/master/kubernetes/scheme/register.go | ||
[deployments_register]: https://github.com/kubernetes/api/blob/master/apps/v1/register.go#L41 | ||
[runtime_package]: https://godoc.org/k8s.io/apimachinery/pkg/runtime | ||
[scheme_builder]: https://godoc.org/sigs.k8s.io/controller-runtime/pkg/scheme#Builder | ||
[metrics_doc]: https://book.kubebuilder.io/reference/metrics.html | ||
[lease_split_brain]: https://github.com/kubernetes/client-go/blob/30b06a83d67458700a5378239df6b96948cb9160/tools/leaderelection/leaderelection.go#L21-L24 | ||
[leader_for_life]: https://godoc.org/github.com/operator-framework/operator-sdk/pkg/leader | ||
[leader_for_life]: https://godoc.org/github.com/operator-framework/operator-lib/leader | ||
[leader_with_lease]: https://godoc.org/github.com/kubernetes-sigs/controller-runtime/pkg/leaderelection | ||
[pod_eviction_timeout]: https://kubernetes.io/docs/reference/command-line-tools-reference/kube-controller-manager/#options | ||
[manager_options]: https://godoc.org/github.com/kubernetes-sigs/controller-runtime/pkg/manager#Options |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkg/status
was also moved tooperator-lib
. Let's just update that link as well.And I don't think this is the appropriate place for a comment about the choice of implementations to use.
I think a better choice would be to open an issue in
operator-lib
asking whether it makes sense to deprecatestatus
and point users tok8s.io/apimachinery
's implementation.