// Apply implements plan.Resource.
Apply implements plan.Resource.
// Apply implements plan . Resource .
func (ks *KubeSecret) Apply(runner plan.Runner, diff plan.Diff) (bool, error) {
	for fname, contents := range ks.SecretData {
		err := scripts.WriteFile(contents, filepath.Join(ks.DestinationDirectory, ks.FileNameTransform(fname)), 0600, runner)
		if err != nil {
			return false, err
		}
	}
	return true, nil
}
func ( ks * KubeSecret ) Apply ( runner plan . Runner , diff plan . Diff ) ( bool , error ) { for fname , contents := range ks . SecretData { err := scripts . WriteFile ( contents , filepath . Join ( ks . DestinationDirectory , ks . FileNameTransform ( fname ) ) , 0600 , runner ) if err != nil { return false , err } } return true , nil }
Apply implements plan.Resource.
Apply implements plan . Resource .