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

Testkube Agent /secrets operations

Testkube API (1.0.0)

Download OpenAPI specification:Download

E-mail: testkube@kubeshop.io License: MIT

Testkube provides a Kubernetes-native framework for test definition, execution and results

List secrets

List secrets available in cluster

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

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": [
    ]
}

Delete secret

Delete secret in the cluster

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

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": [
    ]
}

Get secret

Get secret in the cluster

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": [
    ]
}