Skip to content

Commit

Permalink
bugfix: use unique name for static dependencies (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
aclevername authored May 30, 2024
1 parent 36b0515 commit 847bce0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/v1alpha1/work_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ limitations under the License.
package v1alpha1

import (
"fmt"

"github.com/syntasso/kratix/lib/hash"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -98,7 +100,7 @@ func NewPromiseDependenciesWork(promise *Promise, name string) (*Work, error) {
Workloads: []Workload{
{
Content: string(yamlBytes),
Filepath: "static/dependencies.yaml",
Filepath: fmt.Sprintf("static/%s-dependencies.yaml", promise.GetName()),
},
},
},
Expand Down

0 comments on commit 847bce0

Please sign in to comment.