agent

command module
v0.0.0-...-2f48117 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 1 Imported by: 0

README

Note: This is the development version of the Spaceship Agent, so there may be code here that is not running in your cluster.

Agent

The Spaceship Kubernetes Cluster Agent


The Spaceship Agent is a small program that runs inside a Kubernetes cluster to deliver software updates from the Spaceship platform.

Its design is intentionally minimal, so as to not interfere with other operational tasks in the cluster. At the moment, that is solely running Jobs, updating the image: field on Deployments, and watching those Deployments for their rollout status.

The Agent can also update itself as instructed by Spaceship, which allows us to keep the Agent up to date and safely roll out new versions. If there is ever any material change in functionality for the Agent, we will inform you ahead of rolling out those changes.

Installation

We build Spaceship using Spaceship, so container images of the Agent are always available here:

registry.onspaceship.com/spaceship/agent:master

That will be the latest version with the code you see here. You will also find tags available for every commit ID (SHA hash) on the repo as well, if you want a specific version.

Development

The Agent requires go 1.20 or higher to build.

We use Cobra for creating a CLI. The default command is to connect to the Spaceship platform and start watching for Deployment changes. We have a few sub-commands to access specific functionality during development. You can see those with go run . help.

Contributing

  1. Fork the repo
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request here on GitHub

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL