Skip to content

Commit b8e5ae8

Browse files
committed
Merge branch 'application-detail-view-extension-docs' of ssh://github.com/jwinters01/argo-cd into application-detail-view-extension-docs
2 parents 2b3b61c + 32bb7d1 commit b8e5ae8

File tree

91 files changed

+3083
-4030
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+3083
-4030
lines changed

.github/workflows/cherry-pick-single.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,18 +91,25 @@ jobs:
9191
- name: Create Pull Request
9292
run: |
9393
# Create cherry-pick PR
94-
gh pr create \
95-
--title "${{ inputs.pr_title }} (cherry-pick #${{ inputs.pr_number }} for ${{ inputs.version_number }})" \
96-
--body "Cherry-picked ${{ inputs.pr_title }} (#${{ inputs.pr_number }})
94+
TITLE="${PR_TITLE} (cherry-pick #${{ inputs.pr_number }} for ${{ inputs.version_number }})"
95+
BODY=$(cat <<EOF
96+
Cherry-picked ${PR_TITLE} (#${{ inputs.pr_number }})
97+
98+
${{ steps.cherry-pick.outputs.signoff }}
99+
EOF
100+
)
97101
98-
${{ steps.cherry-pick.outputs.signoff }}" \
102+
gh pr create \
103+
--title "$TITLE" \
104+
--body "$BODY" \
99105
--base "${{ steps.cherry-pick.outputs.target_branch }}" \
100106
--head "${{ steps.cherry-pick.outputs.branch_name }}"
101107
102108
# Comment on original PR
103109
gh pr comment ${{ inputs.pr_number }} \
104110
--body "🍒 Cherry-pick PR created for ${{ inputs.version_number }}: #$(gh pr list --head ${{ steps.cherry-pick.outputs.branch_name }} --json number --jq '.[0].number')"
105111
env:
112+
PR_TITLE: ${{ inputs.pr_title }}
106113
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
107114

108115
- name: Comment on failure
@@ -111,4 +118,4 @@ jobs:
111118
gh pr comment ${{ inputs.pr_number }} \
112119
--body "❌ Cherry-pick failed for ${{ inputs.version_number }}. Please check the [workflow logs](https://github.com/argoproj/argo-cd/actions/runs/${{ github.run_id }}) for details."
113120
env:
114-
GH_TOKEN: ${{ steps.generate-token.outputs.token }}
121+
GH_TOKEN: ${{ steps.generate-token.outputs.token }}

.github/workflows/ci-build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
env:
1515
# Golang version to use across CI steps
1616
# renovate: datasource=golang-version packageName=golang
17-
GOLANG_VERSION: '1.25.1'
17+
GOLANG_VERSION: '1.25.3'
1818

1919
concurrency:
2020
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/image-reuse.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
cache: false
7474

7575
- name: Install cosign
76-
uses: sigstore/cosign-installer@d7543c93d881b35a8faa02e8e3605f69b7a1ce62 # v3.10.0
76+
uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad # v4.0.0
7777

7878
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
7979
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1

.github/workflows/image.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
# Note: cannot use env variables to set go-version (https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations)
5555
# renovate: datasource=golang-version packageName=golang
56-
go-version: 1.25.1
56+
go-version: 1.25.3
5757
platforms: ${{ needs.set-vars.outputs.platforms }}
5858
push: false
5959

@@ -70,7 +70,7 @@ jobs:
7070
ghcr_image_name: ghcr.io/argoproj/argo-cd/argocd:${{ needs.set-vars.outputs.image-tag }}
7171
# Note: cannot use env variables to set go-version (https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations)
7272
# renovate: datasource=golang-version packageName=golang
73-
go-version: 1.25.1
73+
go-version: 1.25.3
7474
platforms: ${{ needs.set-vars.outputs.platforms }}
7575
push: true
7676
secrets:

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions: {}
1111

1212
env:
1313
# renovate: datasource=golang-version packageName=golang
14-
GOLANG_VERSION: '1.25.1' # Note: go-version must also be set in job argocd-image.with.go-version
14+
GOLANG_VERSION: '1.25.3' # Note: go-version must also be set in job argocd-image.with.go-version
1515

1616
jobs:
1717
argocd-image:
@@ -25,7 +25,7 @@ jobs:
2525
quay_image_name: quay.io/argoproj/argocd:${{ github.ref_name }}
2626
# Note: cannot use env variables to set go-version (https://docs.github.com/en/actions/using-workflows/reusing-workflows#limitations)
2727
# renovate: datasource=golang-version packageName=golang
28-
go-version: 1.25.1
28+
go-version: 1.25.3
2929
platforms: linux/amd64,linux/arm64,linux/s390x,linux/ppc64le
3030
push: true
3131
secrets:

.github/workflows/renovate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ jobs:
2727
uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0
2828
with:
2929
# renovate: datasource=golang-version packageName=golang
30-
go-version: 1.25.1
30+
go-version: 1.25.3
3131

3232
- name: Self-hosted Renovate
33-
uses: renovatebot/github-action@70ea19f1b0dc8a9cc7af1b4278f8d3fd9778b577 #43.0.17
33+
uses: renovatebot/github-action@aec779d4f7845f8431ddf403cf9659d4702ddde0 #43.0.18
3434
with:
3535
configurationFile: .github/configs/renovate-config.js
3636
token: '${{ steps.get_token.outputs.token }}'

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
ARG BASE_IMAGE=docker.io/library/ubuntu:25.04@sha256:103c7471649a4fd9996fe73dff20f46082e4e0f0f6240c91954b8b09c38b6faf
1+
ARG BASE_IMAGE=docker.io/library/ubuntu:25.04@sha256:27771fb7b40a58237c98e8d3e6b9ecdd9289cec69a857fccfb85ff36294dac20
22
####################################################################################################
33
# Builder image
44
# Initial stage which pulls prepares build dependencies and CLI tooling we need for our final image
55
# Also used as the image in CI jobs so needs all dependencies
66
####################################################################################################
7-
FROM docker.io/library/golang:1.25.1@sha256:3c9619997c330b7e48c1dd3280444fccaf1d3b68c10c63fbba7d3461a6b61b3f AS builder
7+
FROM docker.io/library/golang:1.25.3@sha256:8c945d3e25320e771326dafc6fb72ecae5f87b0f29328cbbd87c4dff506c9135 AS builder
88

99
WORKDIR /tmp
1010

@@ -103,7 +103,7 @@ RUN HOST_ARCH=$TARGETARCH NODE_ENV='production' NODE_ONLINE_ENV='online' NODE_OP
103103
####################################################################################################
104104
# Argo CD Build stage which performs the actual build of Argo CD binaries
105105
####################################################################################################
106-
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.25.1@sha256:3c9619997c330b7e48c1dd3280444fccaf1d3b68c10c63fbba7d3461a6b61b3f AS argocd-build
106+
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.25.3@sha256:8c945d3e25320e771326dafc6fb72ecae5f87b0f29328cbbd87c4dff506c9135 AS argocd-build
107107

108108
WORKDIR /go/src/github.com/argoproj/argo-cd
109109

Dockerfile.tilt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM docker.io/library/golang:1.25.1@sha256:3c9619997c330b7e48c1dd3280444fccaf1d3b68c10c63fbba7d3461a6b61b3f
1+
FROM docker.io/library/golang:1.25.3@sha256:8c945d3e25320e771326dafc6fb72ecae5f87b0f29328cbbd87c4dff506c9135
22

33
ENV DEBIAN_FRONTEND=noninteractive
44

cmd/argocd-applicationset-controller/commands/applicationset_controller.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414

1515
"github.com/argoproj/argo-cd/v3/reposerver/apiclient"
1616
logutils "github.com/argoproj/argo-cd/v3/util/log"
17+
"github.com/argoproj/argo-cd/v3/util/profile"
1718
"github.com/argoproj/argo-cd/v3/util/tls"
1819

1920
"github.com/argoproj/argo-cd/v3/applicationset/controllers"
@@ -170,6 +171,15 @@ func NewCommand() *cobra.Command {
170171
log.Error(err, "unable to start manager")
171172
os.Exit(1)
172173
}
174+
175+
pprofMux := http.NewServeMux()
176+
profile.RegisterProfiler(pprofMux)
177+
// This looks a little strange. Eg, not using ctrl.Options PprofBindAddress and then adding the pprof mux
178+
// to the metrics server. However, it allows for the controller to dynamically expose the pprof endpoints
179+
// and use the existing metrics server, the same pattern that the application controller and api-server follow.
180+
if err = mgr.AddMetricsServerExtraHandler("/debug/pprof/", pprofMux); err != nil {
181+
log.Error(err, "failed to register pprof handlers")
182+
}
173183
dynamicClient, err := dynamic.NewForConfig(mgr.GetConfig())
174184
errors.CheckError(err)
175185
k8sClient, err := kubernetes.NewForConfig(mgr.GetConfig())

controller/cache/cache_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,17 +172,14 @@ func TestHandleDeleteEvent_CacheDeadlock(t *testing.T) {
172172
db.On("GetApplicationControllerReplicas").Return(1)
173173
fakeClient := fake.NewClientset()
174174
settingsMgr := argosettings.NewSettingsManager(t.Context(), fakeClient, "argocd")
175-
liveStateCacheLock := sync.RWMutex{}
176175
gitopsEngineClusterCache := &mocks.ClusterCache{}
177176
clustersCache := liveStateCache{
178177
clusters: map[string]cache.ClusterCache{
179178
testCluster.Server: gitopsEngineClusterCache,
180179
},
181180
clusterSharding: sharding.NewClusterSharding(db, 0, 1, common.DefaultShardingAlgorithm),
182181
settingsMgr: settingsMgr,
183-
// Set the lock here so we can reference it later
184-
//nolint:govet // We need to overwrite here to have access to the lock
185-
lock: liveStateCacheLock,
182+
lock: sync.RWMutex{},
186183
}
187184
channel := make(chan string)
188185
// Mocked lock held by the gitops-engine cluster cache

0 commit comments

Comments
 (0)