Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/v1alpha1/sandbox_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ type SandboxStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced,shortName=sbx
// +kubebuilder:resource:scope=Namespaced,shortName={sb,sbx}
// +kubebuilder:subresource:status
// +kubebuilder:printcolumn:name="Phase",type=string,JSONPath=`.status.phase`
// +kubebuilder:printcolumn:name="Pool",type=string,JSONPath=`.spec.nodePoolRef`
Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/sandboxset_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ type SandboxSetStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced,shortName=sbxs
// +kubebuilder:resource:scope=Namespaced,shortName={sbs,sbxs}
// +kubebuilder:subresource:status
// +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath=.status.selector
// +kubebuilder:printcolumn:name="Desired",type=integer,JSONPath=`.spec.replicas`
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/nebula.inftyai.com_sandboxes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
listKind: SandboxList
plural: sandboxes
shortNames:
- sb
- sbx
singular: sandbox
scope: Namespaced
Expand Down
1 change: 1 addition & 0 deletions config/crd/bases/nebula.inftyai.com_sandboxsets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ spec:
listKind: SandboxSetList
plural: sandboxsets
shortNames:
- sbs
- sbxs
singular: sandboxset
scope: Namespaced
Expand Down
4 changes: 2 additions & 2 deletions config/samples/sandboxset.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintains N Sandboxes. Provisioning an instance takes MINUTES while an agent's
# exec call wants sub-second, so boxes are kept ready ahead of demand:
#
# kubectl get sandboxes -l nebula.inftyai.com/sandboxset=sample
# kubectl scale sandboxset/sample --replicas=5
# kubectl get sb -l nebula.inftyai.com/sandboxset=sample
# kubectl scale sbs/sample --replicas=5
#
# Boxes get generated names (sample-a4f2x), not ordinals, because an ordinal would
# imply a slot that gets refilled — a replacement box wearing a dead box's name is
Expand Down
Loading