Skip to content

Commit

Permalink
updated owner reference (#6409)
Browse files Browse the repository at this point in the history
Signed-off-by: Yash sharma <trooper0018080@gmail.com>
  • Loading branch information
wasup-yash committed Jul 17, 2023
1 parent 291e61b commit 1403d71
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions changelog/fragments/doc info.yaml
@@ -0,0 +1,15 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
Updated Reference from " to_be_owned.namespace" to " to_be_owned.metadata.namespace " at line 186.
# kind is one of:
# - addition
# - change
# - deprecation
# - removal
# - bugfix
kind: "change"
# Is this a breaking change?
breaking: false
Expand Up @@ -183,7 +183,7 @@ This file can be used as-is without user adjustments.
ownerReferences: "{{ (to_be_owned.metadata.ownerReferences | default([])) + [owner_reference] }}"

- name: Patch resource with owner annotation
when: to_be_owned.namespace is not defined or to_be_owned.namespace != owning_resource.namespace
when: to_be_owned.metadata.namespace is not defined or to_be_owned.metadata.namespace != owning_resource.namespace
kubernetes.core.k8s:
state: present
resource_definition:
Expand Down

0 comments on commit 1403d71

Please sign in to comment.