sample-controller icon indicating copy to clipboard operation
sample-controller copied to clipboard

Documentation error: example CRD already exists while trying to apply manually

Open pravarag opened this issue 2 years ago • 1 comments

Following the documentation I've tried to apply the steps mentioned here: https://github.com/pravarag/sample-controller#running

For the step:

# create a CustomResourceDefinition
kubectl create -f artifacts/examples/crd-status-subresource.yaml

It throws below error upon applying as the crd already exists in the cluster (possibly due to the previous step):

Error from server (AlreadyExists): error when creating "artifacts/examples/crd-status-subresource.yaml": customresourcedefinitions.apiextensions.k8s.io "foos.samplecontroller.k8s.io" already exists

If this is the expected output, the document can be updated with the removal of the extra step mentioned. I'll be happy to submit a PR on same.

pravarag avatar Sep 06 '22 18:09 pravarag

Got a similar erro while trying to apply the below step as well:

# create a custom resource of type Foo
kubectl create -f artifacts/examples/example-foo.yaml

Error:

Error from server (AlreadyExists): error when creating "artifacts/examples/crd-status-subresource.yaml": customresourcedefinitions.apiextensions.k8s.io "foos.samplecontroller.k8s.io" already exists

pravarag avatar Sep 06 '22 18:09 pravarag

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot avatar Dec 05 '22 19:12 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot avatar Jan 04 '23 20:01 k8s-triage-robot

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

k8s-triage-robot avatar Feb 03 '23 20:02 k8s-triage-robot

@k8s-triage-robot: Closing this issue, marking it as "Not Planned".

In response to this:

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Reopen this issue with /reopen
  • Mark this issue as fresh with /remove-lifecycle rotten
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/close not-planned

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

k8s-ci-robot avatar Feb 03 '23 20:02 k8s-ci-robot