Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-57828

podTemplate does not work well in Snippet Generator

    Details

    • Similar Issues:
    • Released As:
      kubernetes 1.25.1

      Description

      Way too many fields are emitted, even if you did not customize them, because the structs here do not follow guidelines.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

            Currently prints this mess:

            podTemplate(inheritFrom: '', instanceCap: 0, namespace: '', nodeSelector: '', podRetention: always(), serviceAccount: '', workspaceVolume: dynamicPVC(accessModes: 'ReadWriteOnce', requestsSize: '', storageClassName: ''), yaml: '') {
                // some block
            }
            

            Cleaned-up behavior should be verified with SnippetizerTester.

            Show
            jglick Jesse Glick added a comment - Currently prints this mess: podTemplate(inheritFrom: '', instanceCap: 0, namespace: ' ', nodeSelector: ' ', podRetention: always(), serviceAccount: ' ', workspaceVolume: dynamicPVC(accessModes: ' ReadWriteOnce ', requestsSize: ' ', storageClassName: ' '), yaml: ' ') { // some block } Cleaned-up behavior should be verified with SnippetizerTester .

              People

              • Assignee:
                kerogers Kenneth Rogers
                Reporter:
                jglick Jesse Glick
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: