Skip to content

Commit

Permalink
policy: allow the editing of dns names for workloads
Browse files Browse the repository at this point in the history
  • Loading branch information
3u13r committed Jan 23, 2024
1 parent da8f250 commit cb9dfb9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cli/policies.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,10 @@ func checkPoliciesMatchManifest(policies map[string]deployment, policyHashes map
len(policies), len(policyHashes))
}
for name, deployment := range policies {
existingNames, ok := policyHashes[deployment.policy.Hash()]
_, ok := policyHashes[deployment.policy.Hash()]
if !ok {
return fmt.Errorf("policy %s not found in manifest", name)
}

if !slices.Equal(existingNames, deployment.DNSNames()) {
return fmt.Errorf("policy %s with hash %s exists in manifest, but with different names %v",
name, deployment.policy.Hash(), existingNames,
)
}
}
return nil
}
Expand Down

0 comments on commit cb9dfb9

Please sign in to comment.