Skip to main content
New to Testkube? Unleash the power of cloud native testing in Kubernetes with Testkube. Get Started >

Testkube Control Plane ../secrets operations

Testkube Pro API (cloud-api/1.10.51)

Download OpenAPI specification:Download

API for Testkube Pro

List secrets

List secrets available in cluster

path Parameters
id
required
string

organizationId

environmentId
required
string

environmentID

query Parameters
all
boolean
Default: false

flag to request all resources

namespace
string
Default: "testkube"

Namespace of the object

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create secret

Create secret in the cluster

path Parameters
id
required
string

organizationId

environmentId
required
string

environmentID

Request Body schema: application/json
required

secret data

name
required
string

secret name

type
string
Default: "Opaque"

secret type

namespace
string

secret namespace

object (SecretOwner)

Resource that owns the secret

object

labels associated with the secret

required
object

data to store in the secret

Responses

Request samples

Content type
application/json
{
  • "name": "git-secret",
  • "type": "Opaque",
  • "namespace": "string",
  • "owner": {
    },
  • "labels": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "name": "git-secret",
  • "namespace": "string",
  • "type": "Opaque",
  • "createdAt": "2022-07-30T06:54:15Z",
  • "updatedAt": "2022-07-30T06:54:15Z",
  • "controlled": true,
  • "owner": {
    },
  • "labels": {
    },
  • "keys": [
    ]
}

Get secret

Get secret in the cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Responses

Response samples

Content type
application/json
{
  • "name": "git-secret",
  • "namespace": "string",
  • "type": "Opaque",
  • "createdAt": "2022-07-30T06:54:15Z",
  • "updatedAt": "2022-07-30T06:54:15Z",
  • "controlled": true,
  • "owner": {
    },
  • "labels": {
    },
  • "keys": [
    ]
}

Delete secret

Delete secret in the cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

query Parameters
namespace
string
Default: "testkube"

Namespace of the object

Responses

Response samples

Content type
application/problem+json
[]

Update secret

Update secret in the cluster

path Parameters
environmentId
required
string

environmentID

id
required
string

unique id of the object

Request Body schema: application/json
required

secret data

name
string

secret name

object (SecretOwner)

Resource that owns the secret

object

labels associated with the secret

object

data to store in the secret

Responses

Request samples

Content type
application/json
{
  • "name": "git-secret",
  • "owner": {
    },
  • "labels": {
    },
  • "data": {
    }
}

Response samples

Content type
application/json
{
  • "name": "git-secret",
  • "namespace": "string",
  • "type": "Opaque",
  • "createdAt": "2022-07-30T06:54:15Z",
  • "updatedAt": "2022-07-30T06:54:15Z",
  • "controlled": true,
  • "owner": {
    },
  • "labels": {
    },
  • "keys": [
    ]
}