kubernetes-elastic-agents | Kubernetes Elastic agent plugin for GoCD | Continuous Deployment library
kandi X-RAY | kubernetes-elastic-agents Summary
kandi X-RAY | kubernetes-elastic-agents Summary
Kubernetes Elastic Agent Plugin provides production grade support to run GoCD Elastic Agents on Kubernetes Cluster.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handles a GET request
- Creates a GoCDContainerDetails object from a Container
- Returns status report for the given request
- Creates a KubernetesPodDetails from a pod
- Validates ElasticProfile
- Validates the yaml
- Add error to result
- Method to initiate the migration
- Migrates the plugin profile for a cluster profile
- Create a new pod for the specified job
- This method generates a hashcode of the parameters
- Generates a hash code for this node
- Compares if the specified object is equal to the specified agent object
- Run the task
- Fetch pods
- Validate the given input
- Assigns a job to an agent
- Validates the input
- This method generates a hashCode of the agent
- Validates input
- Returns readable size
- Compares two cluster profile values
- Validates the request
- Disables a job completion
- Compares two KubernetesPod
- Handles createAgent instance
kubernetes-elastic-agents Key Features
kubernetes-elastic-agents Examples and Code Snippets
Copyright 2020 ThoughtWorks, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.
Community Discussions
Trending Discussions on kubernetes-elastic-agents
QUESTION
I'm trying to get environment variables defined in the Kubernetes deployment (system) in my GoCD YAML config in order to pass the GitHub authentication when pulling the resource. I've confirmed that I'm able to call the repository using a personal access token. (via https://[TOKEN]@github.com/[COMPANY]/[REPO].git)
This, of course, also works if I do the same for the actual YAML git
field.
The GoCD secrets in K8s:
...ANSWER
Answered 2020-Jan-28 at 22:30The team and I researched this a little further and found a workaround. Most issues and articles explain what is written in the docs, that you really need access to bin\bash -c
in order to get the variables.
The YAML plugin creator also uses secure, encrypted variables to store sensitive data which is fine, but for our team it means that a lot of Kubernetes features are not utilised.
The workaround:
Use the GUI to create a pipeline in GoCD, enter the GitHub link, add a username and the personal access token for the user as the password, test the connection is OK. Once created, go to Admin -> Pipelines and click the Download pipeline configuration and select YAML.
The generated YAML has the token encrypted as with the GoCD servers private key.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install kubernetes-elastic-agents
You can use kubernetes-elastic-agents like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the kubernetes-elastic-agents component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page