Hi, not Chris but Thomas, anyway, some more information

ansible 2.7.9
openshift-0.8.6

The task:
- name: create resource
  k8s:
    host: "{{ k8s_url }}"
    api_key: "{{ k8s_token }}"
    verify_ssl: no
    definition: "{{ lookup('template', 'my-cr.yaml') }}"
The Template:
apiVersion: someapi.org/v1alpha1
kind: MyCrd
metadata:
  name: example-obj
  namespace: "myproject"
spec:
  parallelity: 2

Thanks

Am Sonntag, 24. März 2019 23:52:26 UTC+1 schrieb Kylix3511:
>
> Hi Chris, 
>
> I think, I seen this error. How is your play looks like ?  Paste the play 
> or playbook … I will review it and let me know. 
>
> Thanks. 
>
> Regards,
> kylix3511 
>
>
> Email : [email protected] <javascript:> 
>
> Sent from  iPhone 
>
>
>
>
> On Mar 24, 2019, at 3:14 PM, Thms Hmm <[email protected] <javascript:>> 
> wrote:
>
> Hi,
>
> when I use the k8s module to patch a CRD object the task is always marked 
> as "changed: true" even if there are no changes to the object.
>
> ok: [localhost] => {
>     "msg": {
>         "changed": true,
>         "diff": [
>             [
>                 "change",
>                 "metadata.resourceVersion",
>                 [
>                     "124413",
>                     "124360"
>                 ]
>             ]
>         ],
>         "failed": false,
>         "method": "patch",
>         "result": { ... }
> ...
>
> From the output you can see that the resourceVersion is responsible for 
> the change.
>
> Any other non CRD objects work just fine. Did anyone experience the same?
>
> Thanks in advance.
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected] 
> <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/ea01c353-ff7d-48c7-80b3-2020a5ed8576%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ansible-project/ea01c353-ff7d-48c7-80b3-2020a5ed8576%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f2c784b5-23f1-4e2f-827c-6b4a82b6c114%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to