Do not run pipeline after changing kustomization file #20725
-
I am using ArgoCD Image Updater, with the
With this, you can already imagine how the looping is caused. I found an 'easy' solution to my problem, which would be to run a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can create a custom overlay with specifying specific tags for ArgoCD components and update that. |
Beta Was this translation helpful? Give feedback.
-
Just to conclude this discussion, I return here with the solution I applied, this solution being to add the Note: All changes were made in the
// Push pushes local changes to the remote branch. If force is true, will force
// the remote to accept the push.
func (m *nativeGitClient) Push(remote string, branch string, force bool, ciskip bool) error {
args := []string{"push"}
if force {
args = append(args, "-f")
}
// Adding ciskip to push
if ciskip {
args = append(args, "-o", "ci.skip")
}
// End
args = append(args, remote, branch)
err := m.runCredentialedCmd(args...)
if err != nil {
return fmt.Errorf("could not push %s to %s: %v", branch, remote, err)
}
return nil
}
// Client is a generic git client interface
type Client interface {
Root() string
Init() error
Fetch(revision string) error
Submodule() error
Checkout(revision string, submoduleEnabled bool) error
LsRefs() (*Refs, error)
LsRemote(revision string) (string, error)
LsFiles(path string, enableNewGitFileGlobbing bool) ([]string, error)
LsLargeFiles() ([]string, error)
CommitSHA() (string, error)
RevisionMetadata(revision string) (*RevisionMetadata, error)
VerifyCommitSignature(string) (string, error)
IsAnnotatedTag(string) bool
ChangedFiles(revision string, targetRevision string) ([]string, error)
Commit(pathSpec string, opts *CommitOptions) error
Branch(sourceBranch string, targetBranch string) error
// Adding ciskip to the push method
Push(remote string, branch string, force bool, ciskip bool) error
// End
Add(path string) error
SymRefToBranch(symRef string) (string, error)
Config(username string, email string) error
}
// Push provides a mock function with given fields: remote, branch, force
// Adding the ci-skip function
func (_m *Client) Push(remote string, branch string, force bool, ciskip bool) error {
ret := _m.Called(remote, branch, force, ciskip)
// End
if len(ret) == 0 {
panic("no return value specified for Push")
}
var r0 error
// Adding the ci-skip
if rf, ok := ret.Get(0).(func(string, string, bool, bool) error); ok {
r0 = rf(remote, branch, force, ciskip)
// End
} else {
r0 = ret.Error(0)
}
return r0
}
// Adding ci-skip and setting it to true
err = gitC.Push("origin", pushBranch, false, true)
if err != nil {
return err
}
// End After that I built the image and defined it in the |
Beta Was this translation helpful? Give feedback.
Just to conclude this discussion, I return here with the solution I applied, this solution being to add the
-o ci.skip
option to the argocd-image-updater project code and create an image with the changesNote: All changes were made in the
v0.14.0
branchargocd-image-updater/ext/git/writer.go