Skip to content

Commit

Permalink
consistent creation
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Abro <[email protected]>
  • Loading branch information
AustinAbro321 committed Oct 24, 2024
1 parent e825432 commit aa8c22b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/pkg/cluster/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,10 @@ func (c *Cluster) SaveZarfState(ctx context.Context, state *types.ZarfState) err
if err != nil {
return err
}
zarfStateLabels := map[string]string{
ZarfManagedByLabel: "zarf",
}
secret := v1ac.Secret(ZarfStateSecretName, ZarfNamespaceName).
WithLabels(zarfStateLabels).
WithLabels(map[string]string{
ZarfManagedByLabel: "zarf",
}).
WithType(corev1.SecretTypeOpaque).
WithData(map[string][]byte{
ZarfStateDataKey: data,
Expand Down

0 comments on commit aa8c22b

Please sign in to comment.