Skip to content

Commit

Permalink
Merge branch 'master' into nitish/argocd-plugin-support
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishfy authored Dec 2, 2024
2 parents a3667f8 + f4d1e0f commit cb95476
Show file tree
Hide file tree
Showing 30 changed files with 230 additions and 126 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/image-reuse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ jobs:

- name: Build and push container image
id: image
uses: docker/build-push-action@4f58ea79222b3b9dc2c8bbdd6debcef730109a75 #v6.9.0
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 #v6.10.0
with:
context: .
platforms: ${{ inputs.platforms }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
name: Validate PR Title
runs-on: ubuntu-latest
steps:
- uses: thehanimo/pr-title-checker@1d8cd483a2b73118406a187f54dca8a9415f1375 # v1.4.2
- uses: thehanimo/pr-title-checker@7fbfe05602bdd86f926d3fb3bccb6f3aed43bc70 # v1.4.3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
configuration_path: ".github/pr-title-checker-config.json"
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ the desired application state. Kubernetes manifests can be specified in several
* Any custom config management tool configured as a config management plugin

Argo CD automates the deployment of the desired application states in the specified target environments.
Application deployments can track updates to branches, tags, or pinned to a specific version of
Application deployments can track updates to branches, tags, or be pinned to a specific version of
manifests at a Git commit. See [tracking strategies](user-guide/tracking_strategies.md) for additional
details about the different tracking strategies available.

Expand Down
12 changes: 6 additions & 6 deletions docs/operator-manual/applicationset/Generators-Post-Selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ spec:
- cluster: engineering-prod
url: https://kubernetes.default.svc
env: prod
selector:
matchExpressions:
- key: env
operator: In
values:
- staging
selector:
matchExpressions:
- key: env
operator: In
values:
- staging
```

Valid `operators` include `In`, `NotIn`, `Exists`, and `DoesNotExist`. The `values` set must be non-empty in the case of `In` and `NotIn`.
Expand Down
8 changes: 4 additions & 4 deletions docs/operator-manual/argocd-cmd-params-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ data:
server.tls.minversion: "1.2"
# The maximum SSL/TLS version that is acceptable (one of: 1.0|1.1|1.2|1.3) (default "1.3")
server.tls.maxversion: "1.3"
# The list of acceptable ciphers to be used when establishing TLS connections. Use 'list' to list available ciphers. (default "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_GCM_SHA384")
server.tls.ciphers: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_GCM_SHA384"
# The list of acceptable ciphers to be used when establishing TLS connections. Use 'list' to list available ciphers. (default "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384")
server.tls.ciphers: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
# Cache expiration for cluster/repo connection status (default 1h0m0s)
server.connection.status.cache.expiration: "1h0m0s"
# Cache expiration for OIDC state (default 3m0s)
Expand Down Expand Up @@ -161,8 +161,8 @@ data:
reposerver.tls.minversion: "1.2"
# The maximum SSL/TLS version that is acceptable (one of: 1.0|1.1|1.2|1.3) (default "1.3")
reposerver.tls.maxversion: "1.3"
# The list of acceptable ciphers to be used when establishing TLS connections. Use 'list' to list available ciphers. (default "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_GCM_SHA384")
reposerver.tls.ciphers: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384:TLS_RSA_WITH_AES_256_GCM_SHA384"
# The list of acceptable ciphers to be used when establishing TLS connections. Use 'list' to list available ciphers. (default "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384")
reposerver.tls.ciphers: "TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384"
# Cache expiration for repo state, incl. app lists, app details, manifest generation, revision meta-data (default 24h0m0s)
reposerver.repo.cache.expiration: "24h0m0s"
# Cache expiration default (default 24h0m0s)
Expand Down
8 changes: 5 additions & 3 deletions docs/user-guide/multiple_sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ spec:
ref: values
```

In the above example, the `prometheus` chart will use the value file from `git.example.gom/org/value-files.git`.
`$values` resolves to the root of the `value-files` repository. The `$values` variable may only be specified at the
beginning of the value file path.
In the above example, the `prometheus` chart will use the value file from `git.example.com/org/value-files.git`.
For Argo to reference the external Git repository containing the value files, you must set the `ref` parameter on
the repository. In the above example, the parameter `ref: values` maps to the variable `$values`, which resolves
to the root of the `value-files` repository.
Note that the `$values` variable can only be used at the beginning of the value file path.

If the `path` field is set in the `$values` source, Argo CD will attempt to generate resources from the git repository
at that URL. If the `path` field is not set, Argo CD will use the repository solely as a source of value files.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require (
github.com/bmatcuk/doublestar/v4 v4.7.1
github.com/bombsimon/logrusr/v2 v2.0.1
github.com/bradleyfalzon/ghinstallation/v2 v2.12.0
github.com/casbin/casbin/v2 v2.101.0
github.com/casbin/casbin/v2 v2.102.0
github.com/casbin/govaluate v1.2.0
github.com/cespare/xxhash/v2 v2.3.0
github.com/chainguard-dev/git-urls v1.0.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ github.com/bsm/gomega v1.27.10/go.mod h1:JyEr/xRbxbtgWNi8tIEVPUYZ5Dzef52k01W3YH0
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
github.com/bwmarrin/discordgo v0.19.0/go.mod h1:O9S4p+ofTFwB02em7jkpkV8M3R0/PUVOwN61zSZ0r4Q=
github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ=
github.com/casbin/casbin/v2 v2.101.0 h1:y8qZRXcgv5omd3k/7kpaP03Hov82sXzCC5FAfm17lkw=
github.com/casbin/casbin/v2 v2.101.0/go.mod h1:LO7YPez4dX3LgoTCqSQAleQDo0S0BeZBDxYnPUl95Ng=
github.com/casbin/casbin/v2 v2.102.0 h1:weq9iSThUSL21SH3VrwoKa2DgRsaYMfjRNX/yOU3Foo=
github.com/casbin/casbin/v2 v2.102.0/go.mod h1:LO7YPez4dX3LgoTCqSQAleQDo0S0BeZBDxYnPUl95Ng=
github.com/casbin/govaluate v1.2.0 h1:wXCXFmqyY+1RwiKfYo3jMKyrtZmOL3kHwaqDyCPOYak=
github.com/casbin/govaluate v1.2.0/go.mod h1:G/UnbIjZk/0uMNaLwZZmFQrR72tYRZWQkO70si/iR7A=
github.com/cenkalti/backoff v2.1.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM=
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/app_management_ns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ func TestNamespacedPermissionWithScopedRepo(t *testing.T) {
When().
Create()

repoFixture.Given(t, true).
repoFixture.GivenWithSameState(t).
When().
Path(RepoURL(RepoURLTypeFile)).
Project(projName).
Expand Down Expand Up @@ -1291,7 +1291,7 @@ func TestNamespacedPermissionDeniedWithScopedRepo(t *testing.T) {
When().
Create()

repoFixture.Given(t, true).
repoFixture.GivenWithSameState(t).
When().
Path(RepoURL(RepoURLTypeFile)).
Create()
Expand Down
12 changes: 6 additions & 6 deletions test/e2e/app_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func TestGetLogsAllowSwitchOff(t *testing.T) {
},
}, "app-creator")

Given(t).
GivenWithSameState(t).
Path("guestbook-logs").
When().
CreateApp().
Expand Down Expand Up @@ -1519,7 +1519,7 @@ func TestPermissions(t *testing.T) {
appCtx := Given(t)
projName := "argo-project"
projActions := projectFixture.
Given(t).
GivenWithSameState(t).
Name(projName).
When().
Create()
Expand Down Expand Up @@ -1603,7 +1603,7 @@ func TestPermissionWithScopedRepo(t *testing.T) {
Create().
AddSource("*")

repoFixture.Given(t, true).
repoFixture.GivenWithSameState(t).
When().
Path(RepoURL(RepoURLTypeFile)).
Project(projName).
Expand Down Expand Up @@ -1640,7 +1640,7 @@ func TestPermissionDeniedWithScopedRepo(t *testing.T) {
When().
Create()

repoFixture.Given(t, true).
repoFixture.GivenWithSameState(t).
When().
Path(RepoURL(RepoURLTypeFile)).
Create()
Expand All @@ -1666,7 +1666,7 @@ func TestPermissionDeniedWithNegatedNamespace(t *testing.T) {
When().
Create()

repoFixture.Given(t, true).
repoFixture.GivenWithSameState(t).
When().
Path(RepoURL(RepoURLTypeFile)).
Project(projName).
Expand All @@ -1693,7 +1693,7 @@ func TestPermissionDeniedWithNegatedServer(t *testing.T) {
When().
Create()

repoFixture.Given(t, true).
repoFixture.GivenWithSameState(t).
When().
Path(RepoURL(RepoURLTypeFile)).
Project(projName).
Expand Down
3 changes: 0 additions & 3 deletions test/e2e/applicationset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,6 @@ func TestSimpleGitDirectoryGeneratorGPGEnabledUnsignedCommits(t *testing.T) {
}
project := "gpg"

fixture.EnsureCleanState(t)
Given(t).
Project(project).
When().
Expand Down Expand Up @@ -1724,7 +1723,6 @@ func TestSimpleGitFilesGeneratorGPGEnabledUnsignedCommits(t *testing.T) {
generateExpectedApp("engineering-prod-guestbook"),
}

fixture.EnsureCleanState(t)
Given(t).
Project(project).
When().
Expand Down Expand Up @@ -1826,7 +1824,6 @@ func TestSimpleGitFilesGeneratorGPGEnabledWithoutKnownKeys(t *testing.T) {
generateExpectedApp("engineering-prod-guestbook"),
}

fixture.EnsureCleanState(t)
Given(t).
Project(project).
Path(guestbookPath).
Expand Down
3 changes: 0 additions & 3 deletions test/e2e/fixture/account/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package project

import (
"testing"
"time"

"github.com/argoproj/argo-cd/v2/test/e2e/fixture"
"github.com/argoproj/argo-cd/v2/util/env"
Expand Down Expand Up @@ -46,7 +45,5 @@ func (c *Context) And(block func()) *Context {
}

func (c *Context) When() *Actions {
// in case any settings have changed, pause for 1s, not great, but fine
time.Sleep(1 * time.Second)
return &Actions{context: c}
}
2 changes: 0 additions & 2 deletions test/e2e/fixture/app/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,6 @@ func (c *Context) And(block func()) *Context {
}

func (c *Context) When() *Actions {
// in case any settings have changed, pause for 1s, not great, but fine
time.Sleep(1 * time.Second)
return &Actions{context: c}
}

Expand Down
2 changes: 0 additions & 2 deletions test/e2e/fixture/applicationsets/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ func Given(t *testing.T) *Context {
}

func (c *Context) When() *Actions {
// in case any settings have changed, pause for 1s, not great, but fine
time.Sleep(1 * time.Second)
return &Actions{context: c}
}

Expand Down
3 changes: 0 additions & 3 deletions test/e2e/fixture/cluster/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cluster

import (
"testing"
"time"

"github.com/argoproj/argo-cd/v2/test/e2e/fixture"
"github.com/argoproj/argo-cd/v2/util/env"
Expand Down Expand Up @@ -60,8 +59,6 @@ func (c *Context) And(block func()) *Context {
}

func (c *Context) When() *Actions {
// in case any settings have changed, pause for 1s, not great, but fine
time.Sleep(1 * time.Second)
return &Actions{context: c}
}

Expand Down
Loading

0 comments on commit cb95476

Please sign in to comment.