resource_types:
- name: kubernetes-namespace
type: docker-image
source:
repository: fairfaxmedia/concourse-k8s-namespace-resource
resources:
- name: kubernetes-namespace
type: kubernetes-namespace
source:
cluster_url: https://hostname:port
cluster_ca: _base64 encoded CA pem_
admin_key: _base64 encoded key pem_
admin_cert: _base64 encoded certificate_
namespace: _namespace_
cluster_url
: Required. URL to Kubernetes Master API servicecluster_ca
: Optional. Base64 encoded PEM. Required ifcluster_url
is https.admin_key
: Optional. Base64 encoded PEM. Required ifcluster_url
is https.admin_cert
: Optional. Base64 encoded PEM. Required ifcluster_url
is https.namespace
: Optional. Kubernetes namespace to configuredebug
: Optional. Set to "true" to enable resource debugging.
Gets details about specific namespace
namespace
: Optional. Override source.namespace, required if source.namespace is not set.
Updates Kubernetes resource
namespace
: Optional. Override source.namespace, required if source.namespace is not set.namespace_file
: Optional. Read the namespace from a file, such as provided from an earlier task or resource. Replacesnamespace
.labels
: Optional. Key/Value of labels to apply to namespace.labels_file
: Optional.. Read the labels from a JSON formatted file. Replaceslabels
.annotations
: Optional. Key/Value of annotations to apply to namespaceannotations_file
: Optional.. Read the annotations from a JSON formatted file. Replacesannotations
.dry_run
: Optional. Do not make any changes.remove
: Optional. Instead of updating the namespace, remove it.
---
resources:
- name: k8s-namespace
type: kubernetes
source:
cluster_url: https://kube-master.domain.example
cluster_ca: _base64 encoded CA pem_
admin_key: _base64 encoded key pem_
admin_cert: _base64 encoded certificate pem_
- get: k8s-namespace
params:
namespace: my-awesome-namespace
- put: k8s-namespace
params:
namespace: my-awesome-namespace
labels:
app: my-awesome-appliction
annotations:
k8s.io/thing: plumbus