Code Monkey home page Code Monkey logo

k8s-resource's Introduction

Kubernetes Resource

A Concourse resource to apply Kubernetes (k8s) resources.

Source Configuration

Field Required Type Description
url Y String Kubernetes URL
namespace N String Kubernetes Namespace, required unless set in params
username N String Kubernetes Username
password N String Kubernetes Password
token N String Kubernetes Token
debug N Boolean Show detailed execution
record N Boolean Kubectl --record option (defaults to false)
skip_tls_verify N Boolean Skip TLS certificates verification (defaults to false)
cert_data N String TLS certificate PEM-encoded bytes
key_data N String TLS certificate key PEM-encoded bytes
ca_data N String TLS root certificate PEM-encoded bytes

Behavior

check: Does nothing.

in: Does nothing.

out: Applies a kubernetes resource.

Given a kubernetes configuration file (both json and yaml formats are accepted), applies it to a kubernetes resource.

Parameters

Field Required Type Description
spec_path Y String Path to the resource spec file to apply
namespace N String Kubernetes Namespace, overwrites source namespace

Example Configuration

Resource Type

resource_types:
  - name: k8s-resource
    type: docker-image
    source:
      repository: frodenas/k8s-resource

Resource

resources:
  - name: my-kubernetes
    type: k8s-resource
    source:
      url: <KUBERNETES URL>
      username: <KUBERNETES USERNAME>
      password: <KUBERNETES PASSWORD>
      namespace: <KUBERNETES NAMESPACE>

Plan

- put: my-kubernetes
  params:
    spec_path: my-pod-spec.yml

Copyright

Copyright (c) 2016 Ferran Rodenas. See LICENSE for details.

k8s-resource's People

Contributors

frodenas avatar nkcraddock avatar rmmsr avatar snarlysodboxer avatar stevie- avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

k8s-resource's Issues

Version output of check operation

UPDATE Close because of Pull Request #6

Currently on concourse 3.4.1 follow error is logged for the check operation. It happens even if the resource is only used as put:

json: cannot unmarshal object into Go value of type []atc.Version

According to the resource documentation the output should be an array of versions. I assume an empty array should be sufiicient as dummy:

echo '[]' >&3

Thanks for the nice resource!

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.