# apply

Create the Secret in Kubernetes.

```rhai
secret.apply() -> string
```

## Returns

Returns a string with the result of the Secret creation.

## Examples

```rhai
let result = namespace.secret("db-credentials")
    .set("username", "admin")
    .set("password", "secretpass")
    .apply();

print("Secret created: " + result);
```

## Notes

- This is a terminal method (executes the Secret creation)
- Secret is created with all configured key-value pairs
- Values are base64 encoded automatically
- Throws error if creation fails
- Can be mounted as files or environment variables in pods
