Skip to content

Commit

Permalink
Merge pull request #54445 from crimsonfaith91/rem
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue (batch tested with PRs 53190, 54790, 54445, 52607, 54801). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

remove created-by annotation

**What this PR does / why we need it**:
This PR removes `CreatedByAnnotation`.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #50720

**Release note**:

```release-note
The `kubernetes.io/created-by` annotation is no longer added to controller-created objects. Use the  `metadata.ownerReferences` item that has `controller` set to `true` to determine which controller, if any, owns an object.
```

Kubernetes-commit: ed00d9c062abb6d3d0f99a280d9974cff026059d
  • Loading branch information
k8s-publish-robot committed Nov 28, 2017
2 parents f6011cd + 8a3c8bb commit b2c4d45
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/v1/annotation_key_constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ const (
// to one container of a pod.
SeccompContainerAnnotationKeyPrefix string = "container.seccomp.security.alpha.kubernetes.io/"

// CreatedByAnnotation represents the key used to store the spec(json)
// used to create the resource.
// This field is deprecated in favor of ControllerRef (see #44407).
// TODO(#50720): Remove this field in v1.9.
CreatedByAnnotation = "kubernetes.io/created-by"

// PreferAvoidPodsAnnotationKey represents the key of preferAvoidPods data (json serialized)
// in the Annotations of a Node.
PreferAvoidPodsAnnotationKey string = "scheduler.alpha.kubernetes.io/preferAvoidPods"
Expand Down

0 comments on commit b2c4d45

Please sign in to comment.