Check if the contents of the service.yaml.digest are the same as those committed into git
Stop if there are no changes to the service.yaml.digest file
Stamp (replace placeholders) service.yaml
Commit and push the changes to service.yaml.digest and service.yaml
Related Issue
Motivation and Context
The existing GitOps PR process creates a new GitOps PR when a ConfigMap object that exposes a volatile file changes even if the deployment artifact doesn't change.
How Has This Been Tested?
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Description
Modify the
create_gitops_pr
utility to optionally implement the following algorithm:service.yaml
file is an output of theservice.gitops
targetservice.gitops
>service.yaml
service.yaml
digest >service.yaml.digest
service.yaml.digest
are the same as those committed into gitservice.yaml.digest
fileservice.yaml
service.yaml.digest
andservice.yaml
Related Issue
Motivation and Context
The existing GitOps PR process creates a new GitOps PR when a ConfigMap object that exposes a volatile file changes even if the deployment artifact doesn't change.
How Has This Been Tested?
Types of changes
Checklist: