Kubernetes-plugin: Contradiction in containerTemplate inheritance









up vote
0
down vote

favorite












https://github.com/jenkinsci/kubernetes-plugin/blame/master/README.md#L214-L226



I'm not understanding the inheritance behavior. In the container templates section, it mentions that it inherits the parent template with the same name. But going down the readme, it mentions that overriding a previously created (I'm assuming that it is the parent?) container template image with the same name is possible.



Am I missing something?










share|improve this question



























    up vote
    0
    down vote

    favorite












    https://github.com/jenkinsci/kubernetes-plugin/blame/master/README.md#L214-L226



    I'm not understanding the inheritance behavior. In the container templates section, it mentions that it inherits the parent template with the same name. But going down the readme, it mentions that overriding a previously created (I'm assuming that it is the parent?) container template image with the same name is possible.



    Am I missing something?










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      https://github.com/jenkinsci/kubernetes-plugin/blame/master/README.md#L214-L226



      I'm not understanding the inheritance behavior. In the container templates section, it mentions that it inherits the parent template with the same name. But going down the readme, it mentions that overriding a previously created (I'm assuming that it is the parent?) container template image with the same name is possible.



      Am I missing something?










      share|improve this question















      https://github.com/jenkinsci/kubernetes-plugin/blame/master/README.md#L214-L226



      I'm not understanding the inheritance behavior. In the container templates section, it mentions that it inherits the parent template with the same name. But going down the readme, it mentions that overriding a previously created (I'm assuming that it is the parent?) container template image with the same name is possible.



      Am I missing something?







      jenkins kubernetes jenkins-plugins






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 9 at 0:46









      Rico

      24.4k94864




      24.4k94864










      asked Nov 8 at 23:26









      GinaDoug

      82




      82






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote



          accepted










          Sounds like 2 different things.



          • One is the inheritance from a parent of the same name. If no values for image, etc are specified then it will inherit from the parent.


          • The other is overriding an image name from a parent where it's inheriting from. So if the parent has image: mycontainer1 and the inheriting template has image: mycontainer2, then mycontainer2 will be used. If you are using exactly the same image with the same tag then the point of overring is moot.






          share|improve this answer




















          • sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
            – GinaDoug
            Nov 9 at 3:15










          • It could inherit other values that are not 'image' if you are not overriding those for example.
            – Rico
            Nov 9 at 3:23










          • Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
            – GinaDoug
            Nov 9 at 17:00






          • 1




            After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
            – GinaDoug
            Nov 9 at 18:37











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53217675%2fkubernetes-plugin-contradiction-in-containertemplate-inheritance%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          0
          down vote



          accepted










          Sounds like 2 different things.



          • One is the inheritance from a parent of the same name. If no values for image, etc are specified then it will inherit from the parent.


          • The other is overriding an image name from a parent where it's inheriting from. So if the parent has image: mycontainer1 and the inheriting template has image: mycontainer2, then mycontainer2 will be used. If you are using exactly the same image with the same tag then the point of overring is moot.






          share|improve this answer




















          • sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
            – GinaDoug
            Nov 9 at 3:15










          • It could inherit other values that are not 'image' if you are not overriding those for example.
            – Rico
            Nov 9 at 3:23










          • Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
            – GinaDoug
            Nov 9 at 17:00






          • 1




            After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
            – GinaDoug
            Nov 9 at 18:37















          up vote
          0
          down vote



          accepted










          Sounds like 2 different things.



          • One is the inheritance from a parent of the same name. If no values for image, etc are specified then it will inherit from the parent.


          • The other is overriding an image name from a parent where it's inheriting from. So if the parent has image: mycontainer1 and the inheriting template has image: mycontainer2, then mycontainer2 will be used. If you are using exactly the same image with the same tag then the point of overring is moot.






          share|improve this answer




















          • sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
            – GinaDoug
            Nov 9 at 3:15










          • It could inherit other values that are not 'image' if you are not overriding those for example.
            – Rico
            Nov 9 at 3:23










          • Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
            – GinaDoug
            Nov 9 at 17:00






          • 1




            After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
            – GinaDoug
            Nov 9 at 18:37













          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          Sounds like 2 different things.



          • One is the inheritance from a parent of the same name. If no values for image, etc are specified then it will inherit from the parent.


          • The other is overriding an image name from a parent where it's inheriting from. So if the parent has image: mycontainer1 and the inheriting template has image: mycontainer2, then mycontainer2 will be used. If you are using exactly the same image with the same tag then the point of overring is moot.






          share|improve this answer












          Sounds like 2 different things.



          • One is the inheritance from a parent of the same name. If no values for image, etc are specified then it will inherit from the parent.


          • The other is overriding an image name from a parent where it's inheriting from. So if the parent has image: mycontainer1 and the inheriting template has image: mycontainer2, then mycontainer2 will be used. If you are using exactly the same image with the same tag then the point of overring is moot.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 9 at 0:54









          Rico

          24.4k94864




          24.4k94864











          • sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
            – GinaDoug
            Nov 9 at 3:15










          • It could inherit other values that are not 'image' if you are not overriding those for example.
            – Rico
            Nov 9 at 3:23










          • Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
            – GinaDoug
            Nov 9 at 17:00






          • 1




            After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
            – GinaDoug
            Nov 9 at 18:37

















          • sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
            – GinaDoug
            Nov 9 at 3:15










          • It could inherit other values that are not 'image' if you are not overriding those for example.
            – Rico
            Nov 9 at 3:23










          • Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
            – GinaDoug
            Nov 9 at 17:00






          • 1




            After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
            – GinaDoug
            Nov 9 at 18:37
















          sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
          – GinaDoug
          Nov 9 at 3:15




          sorry as I'm new to this, so does that mean that a (child?) template will only inherit from the parent if there is not (etc image) value? And that if there is a value in the child, it would just override it?
          – GinaDoug
          Nov 9 at 3:15












          It could inherit other values that are not 'image' if you are not overriding those for example.
          – Rico
          Nov 9 at 3:23




          It could inherit other values that are not 'image' if you are not overriding those for example.
          – Rico
          Nov 9 at 3:23












          Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
          – GinaDoug
          Nov 9 at 17:00




          Got it. Thanks for the explanation, and this info confirms that our system is not working as expected. Our team is using the deprecated containerTemplate format and the values are not being overridden, do you happen to know if the deprecation might have caused the overriding behavior to be lost?
          – GinaDoug
          Nov 9 at 17:00




          1




          1




          After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
          – GinaDoug
          Nov 9 at 18:37





          After testing different ways of building, I am happy to report that it wasn't containerTemplate that was causing the overriding behavior to be lost, but the way our team is handling passing the variable to the podTemplate. Thanks again Rico! Your explanation cleared up some things for me.
          – GinaDoug
          Nov 9 at 18:37


















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53217675%2fkubernetes-plugin-contradiction-in-containertemplate-inheritance%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

          Crossroads (UK TV series)

          ữḛḳṊẴ ẋ,Ẩṙ,ỹḛẪẠứụỿṞṦ,Ṉẍừ,ứ Ị,Ḵ,ṏ ṇỪḎḰṰọửḊ ṾḨḮữẑỶṑỗḮṣṉẃ Ữẩụ,ṓ,ḹẕḪḫỞṿḭ ỒṱṨẁṋṜ ḅẈ ṉ ứṀḱṑỒḵ,ḏ,ḊḖỹẊ Ẻḷổ,ṥ ẔḲẪụḣể Ṱ ḭỏựẶ Ồ Ṩ,ẂḿṡḾồ ỗṗṡịṞẤḵṽẃ ṸḒẄẘ,ủẞẵṦṟầṓế