-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Registering Annotation depends-on #49404
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
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/sig docs |
✅ Pull request preview available for checkingBuilt without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
||
Used On: All Objects | ||
|
||
This annotation is used to specify dependencies between objects. It ensures that the they are applied and deleted in correct order. For example, If a MongoDB should be up and running before a WordPress deployment , this annotation can be used to ensure that task. To learn more, see the [Explicit Dependency Ordering](https://github.com/kubernetes-sigs/cli-utils/blob/8c2dae2da75c87b7c9567f5aa3186dedff1a5d68/README.md?plain=1#L110). |
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.
Fixing some minor grammatical errors
This annotation is used to specify dependencies between objects. It ensures that the they are applied and deleted in correct order. For example, If a MongoDB should be up and running before a WordPress deployment , this annotation can be used to ensure that task. To learn more, see the [Explicit Dependency Ordering](https://github.com/kubernetes-sigs/cli-utils/blob/8c2dae2da75c87b7c9567f5aa3186dedff1a5d68/README.md?plain=1#L110). | |
This annotation is used to specify dependencies between objects. It ensures that they are applied and deleted in the correct order. For example, if MongoDB should be up and running before a WordPress deployment, this annotation can be used to ensure that task. To learn more, see the [Explicit Dependency Ordering](https://github.com/kubernetes-sigs/cli-utils/blob/8c2dae2da75c87b7c9567f5aa3186dedff1a5d68/README.md?plain=1#L110). |
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.
sure, i'll update it.
Hi I have added the changes mentioned @katcosgrove . PTAL. |
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.
I'm not entirely comfortable linking to a random branch on GitHub. Is there a specific reason we've not opted for the master branch?
This annotation is used to specify dependencies between objects. It ensures | ||
that they are applied and deleted in the correct order. For example, if MongoDB should | ||
be up and running before a WordPress deployment, this annotation can be used to ensure that task. | ||
To learn more, see the [Explicit Dependency Ordering](https://github.com/kubernetes-sigs/cli-utils/blob/8c2dae2da75c87b7c9567f5aa3186dedff1a5d68/README.md?plain=1#L110). |
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.
Nit.
To learn more, see the [Explicit Dependency Ordering](https://github.com/kubernetes-sigs/cli-utils/blob/8c2dae2da75c87b7c9567f5aa3186dedff1a5d68/README.md?plain=1#L110). | |
To learn more, see [Explicit Dependency Ordering](https://github.com/kubernetes-sigs/cli-utils/blob/master/README.md?plain=1#L110). |
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.
Yes, i missed this. Will update this and recommit.
Oh yes, thats understandable. I might have missed that, thank you for pointing out. |
Signed-off-by: Ritikaa96 <[email protected]>
8663d25
to
b0531f9
Compare
Hi @divya-mohan0209 , I updated the PR |
|
||
Type: Annotation | ||
|
||
Example: `config.kubernetes.io/depends-on: /namespaces/default/Pod/pod-c` |
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.
I'm not sure pod is the right example unless the pod is statefulsets.
Typically on new deployment or rolling restart pod name will change with some random string.
e.g.
mongodb-d47d5c8f9-abcd2
mongodb-d47d5c8f9-zrqd2
may be deployment is better example?
config.kubernetes.io/depends-on: /namespaces/default/Deployment/mongodb-a
Description
Adding annotation config.kubernetes.io/depends-on in the Well known annotation & labels page.
Closes: #42150