Home

Awesome

Kops Concourse Resource Type

Docker Repository on Quay

A Concourse resource to fetch Kops credentials

Source Configuration

Example Usage

Resource type definition

resource_types:
- name: kops
  type: registry-image
  source:
    repository: quay.io/coralogix/eng-concourse-resource-kops
    tag: v1.20.1

Resource definition

resources:
- name: kops-validate
  type: kops
  source:
    state_bucket: s3://some-state-bucket/kube-cluster
    cluster: some.cluster.k8s.local
    aws_access_key_id: "((aws_access_key_id))"
    aws_secret_access_key: "((aws_secret_access_key))"
    aws_region: "((aws_region))"

Behavior

check : Check for a valid Kubernetes cluster using Kops

The check script uses the Kops binary to check if the cluster is valid (i.e. nodes are Ready, and no Pending pods in the kube-system namespace). Depending on whether the cluster is valid, the script will either return status true, or else it will return an error. The intention is to not return a version until the cluster is ready, so that the pipeline will not start until the cluster is ready.

in : Fetch cluster access credentials

The in script uses the kops export kubecfg command to fetch a kubeconfig file with credentials to access the cluster. This file will be saved in the directory as kubecfg.yaml. There are no parameters.

out : Not supported

Maintainers

Ari Becker Shauli Solomovich

License

Apache License 2.0 © Coralogix, Inc.