Skip to main content

Namespace

Provides a Kubernetes Namespace

Examples

Create a namespace

const namespace = provider.makeNamespace({
properties: () => ({
metadata: {
name: "myNamespace",
},
}),
});

Source Code Examples

Listing

The following commands list the Namespace type:

gc list --types Namespace

Short version:

gc l -t Nam
List Summary:
Provider: k8s
┌─────────────────────────────────────────────────────────────┐
│ k8s │
├────────────────────┬────────────────────────────────────────┤
│ Namespace │ cert-manager │
│ │ default │
│ │ kube-node-lease │
│ │ kube-public │
│ │ kube-system │
└────────────────────┴────────────────────────────────────────┘
5 resources, 1 type, 1 provider
Command "gc list --types Namespace" executed in 1s

UsedBy