GitOps for k8s
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

daemonset.go 453B

1234567891011121314151617181920212223
  1. package resource
  2. import (
  3. "github.com/fluxcd/flux/image"
  4. "github.com/fluxcd/flux/resource"
  5. )
  6. type DaemonSet struct {
  7. baseObject
  8. Spec struct {
  9. Template PodTemplate
  10. }
  11. }
  12. func (ds DaemonSet) Containers() []resource.Container {
  13. return ds.Spec.Template.Containers()
  14. }
  15. func (ds DaemonSet) SetContainerImage(container string, ref image.Ref) error {
  16. return ds.Spec.Template.SetContainerImage(container, ref)
  17. }
  18. var _ resource.Workload = DaemonSet{}