Documentation
¶
Index ¶
- Constants
- Variables
- type Deployment
- func (d *Deployment) DefaultTemplate() ([]byte, error)
- func (d *Deployment) GenerateTemplateContext(execFlags workloads.ExecFlags) (any, error)
- func (d *Deployment) GetObject() client.Object
- func (d *Deployment) GetStatus() string
- func (d *Deployment) IgnoreFiles() []string
- func (d *Deployment) ListKnownPods() []workloads.WorkloadPod
- func (d *Deployment) ResolveStructure(ctx context.Context, k8sClient client.Client) error
- func (d *Deployment) SetFromObject(obj client.Object) error
- type DeploymentFlags
- type ReplicaSetReference
Constants ¶
View Source
const EntrypointFilename = "entrypoint"
Variables ¶
View Source
var DeploymentTemplate []byte
Functions ¶
This section is empty.
Types ¶
type Deployment ¶
type Deployment struct {
workloads.WorkloadBase
Deployment appsv1.Deployment
// ReplicaSets caches the replica sets linked to this deployment
ReplicaSets []ReplicaSetReference
}
Deployment is a workload wrapper around the basic Kubernetes Deployment
func (*Deployment) DefaultTemplate ¶
func (d *Deployment) DefaultTemplate() ([]byte, error)
func (*Deployment) GenerateTemplateContext ¶
func (d *Deployment) GenerateTemplateContext(execFlags workloads.ExecFlags) (any, error)
func (*Deployment) GetObject ¶
func (d *Deployment) GetObject() client.Object
func (*Deployment) GetStatus ¶
func (d *Deployment) GetStatus() string
func (*Deployment) IgnoreFiles ¶
func (d *Deployment) IgnoreFiles() []string
func (*Deployment) ListKnownPods ¶
func (d *Deployment) ListKnownPods() []workloads.WorkloadPod
func (*Deployment) ResolveStructure ¶
func (*Deployment) SetFromObject ¶
func (d *Deployment) SetFromObject(obj client.Object) error
type DeploymentFlags ¶
type DeploymentFlags struct {
Entrypoint string
}
type ReplicaSetReference ¶
type ReplicaSetReference struct {
ReplicaSet appsv1.ReplicaSet
// Pods caches the pods linked to this replica set
Pods []corev1.Pod
}
Click to show internal directories.
Click to hide internal directories.