Code Monkey home page Code Monkey logo

jenkins-k8sagent-lib's People

Contributors

liejuntao001 avatar michaelpporter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jenkins-k8sagent-lib's Issues

remote pod template definition

Hello,

It will be very interesting to have a way to get the "pod template definition" from the repository which is going to be verified.

In my local, I am trying to check if it is possible, but the issue is that I can´t do a git checkout of a file without a workspace, that it must be provided by an agent.

So, maybe it will be not possible, ¿have you try to do this?

Thanks.

Support for adding volume mounts

Hi,

Thank you for this repo, very interesting and I think its great.

Just a thought to add support for adding a volume mount would be great, say if wanted to add an option for a docker socket volume to be created and have that mounted on all or selected containers.

Thank you

Problem merge yaml

Hello,
I am using you project to merge yamls and generate a dynamic kubernetes agent. I have an error in the generated agent when my yaml contains a command:
spec:
securityContext:
fsGroup: 1000
containers:

  • name: builder
    securityContext:
    allowPrivilegeEscalation: false
    runAsUser: 1000
    image: my_domain/fr/base/maven3.5.4-openjdk11-nodejs14.17.0:latest
    imagePullPolicy: Always
    tty: true
    command:
    • cat
      resources:
      requests:
      memory: "2Gi"
      cpu: "1000m"
      limits:
      memory: "10Gi"
      cpu: "3000m"
      volumeMounts:
      • name: repository-persistent-storage
        mountPath: /home/jenkins/repository

The generated json agent have the cammand in double:
{
"tty": true,
"securityContext": {
"allowPrivilegeEscalation": false,
"runAsUser": 1000
},
"name": "builder",
"image": "my_domain/fr/base/maven3.5.4-openjdk11-nodejs14.17.0:latest",
"volumeMounts": [
{
"mountPath": "/home/jenkins/repository",
"name": "repository-persistent-storage"
}
],
"command": [
"cat",
"cat"
],

"imagePullPolicy": "Always",
"resources": {
"requests": {
"cpu": "1000m",
"memory": "2Gi"
},
"limits": {
"cpu": "3000m",
"memory": "10Gi"
}
}
}
So my container can't start.
Can you help me to fix this problem please?
Thanks a lot.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.