* fix: show revision in badge when param is true
Signed-off-by: Thijs van Tol <[email protected]>
* Update badge.go
Signed-off-by: Thijs van Tol <[email protected]>
* Update badge.go
Signed-off-by: Thijs van Tol <[email protected]>
* pr feedback
Signed-off-by: Thijs van Tol <[email protected]>
Signed-off-by: Thijs van Tol <[email protected]>
This commit adds a new flag, `permitOnlyProjectScopedClusters`, which
prevents any application from syncing to clusters which are not a part
of the same project. Fixes#10220.
Signed-off-by: Blake Pettersson <[email protected]>
Signed-off-by: Blake Pettersson <[email protected]>
* add notifications API
we allow to list triggers, templates and services
Signed-off-by: Pavel <[email protected]>
* fix: add notification manifest to tests
Signed-off-by: Pavel <[email protected]>
* fix: add sleep to fix integration tests
for some reason notification configmap has old data, trying to fix with
the sleep
Signed-off-by: Pavel <[email protected]>
* add proposal
Signed-off-by: Pavel <[email protected]>
* more info to proposal
Signed-off-by: Pavel <[email protected]>
* use struct for notifications objects instead of just strings
to be able easily extend API in the future return list of
trigger/template/service as list of structs
Signed-off-by: Pavel <[email protected]>
Signed-off-by: Pavel <[email protected]>
* Expand `ListResourceActions` to support the root App
Prior to this change, `ListResourceActions` could only be performed on
resources managed by the Application; this implicitly did not include
the Application itself, unless it was a self-referential Application.
This prevents the listing of actions on the Application itself.
This change detects when the requested resource is an Application with
the same name as the managing Application, thus bypassing the fetching
of the requested resource listing and simply retrieving the
Application. It then retrieves the resource details from the
Application itself, instead of any sub-resource.
Signed-off-by: David Monks <[email protected]>
* Expand `RunResourceAction` to support the root App
Prior to this change, similar to the `ListResourceActions` function
updated in the previous commit, the `RunResourceAction` function only
supports running actions on resources managed by the Application, rather
than the Application itself.
This change re-uses in the `RunResourceAction` function the new
behaviour introduced in the previous commit to make the Application a
valid target for resource actions.
Signed-off-by: David Monks <[email protected]>
* Extract App actions resource gathering to a private function
This abstracts the fetching of resources that can provide custom resource actions for a given Application via the CLI to a new private function next to the two Commands that do it.
This is a precursor to expanding this set of resources to include the Application itself.
Signed-off-by: David Monks <[email protected]>
* Include the Application in the `actions list` CLI command
Prior to this change, only resources managed by the Application (and not
the Application itself) were able to have actions associated with them
for running via the CLI.
This change includes the Application itself in the list of resources to
check for custom resource actions when listing or running them via the
CLI.
Signed-off-by: David Monks <[email protected]>
Signed-off-by: David Monks <[email protected]>
* chore: infer managed resources health from redis instead of storing it in CRD
Signed-off-by: Alexander Matyushentsev <[email protected]>
* apply reviewer notes
Signed-off-by: Alexander Matyushentsev <[email protected]>
Signed-off-by: Alexander Matyushentsev <[email protected]>
* chore: argocd app create output states whether app exists
Signed-off-by: Daniel Helfand <[email protected]>
* chore: determine if app has changed without server err
Signed-off-by: Daniel Helfand <[email protected]>
* chore: unchanged if app has not changed
Signed-off-by: Daniel Helfand <[email protected]>
* chore: add logic to tell user if app was updated
Signed-off-by: Daniel Helfand <[email protected]>
* chore: edit comments
Signed-off-by: Daniel Helfand <[email protected]>
* chore: check if get err is notfound
Signed-off-by: Daniel Helfand <[email protected]>
* feat: add HTTPS support to dex server (#9424)
Signed-off-by: notfromstatefarm <[email protected]>
* refactor transports, add v2.5 to docs, other small nits
Signed-off-by: notfromstatefarm <[email protected]>
* use OIDCTLSConfig in session manager
Signed-off-by: notfromstatefarm <[email protected]>
* update tls to use os instead of ioutil (but really this is just me trying to get CICD to work)
Signed-off-by: notfromstatefarm <[email protected]>
* cleanup and nits
Signed-off-by: notfromstatefarm <[email protected]>
* fix tests after merge
Signed-off-by: notfromstatefarm <[email protected]>
* fix tests
Signed-off-by: notfromstatefarm <[email protected]>
* nit
Signed-off-by: notfromstatefarm <[email protected]>
* fix: CMP manifest generation fails with ENHANCE_YOUR_CALM if over 40s
Signed-off-by: notfromstatefarm <[email protected]>
* fix timeouts across all gRPC servers
Signed-off-by: notfromstatefarm <[email protected]>
* use common consts
Signed-off-by: notfromstatefarm <[email protected]>
* fix: 'unexpected reserved bits' breaking web terminal (#9605)
Signed-off-by: Michael Crenshaw <[email protected]>
* make things more like they were originally, since the mutex fixes the problem
Signed-off-by: Michael Crenshaw <[email protected]>
* fix typo, don't pass around a pointer when it isn't necessary
Signed-off-by: Michael Crenshaw <[email protected]>
* apply suggestions
Signed-off-by: Michael Crenshaw <[email protected]>
* fix: avoid k8s API call before authorization in k8s endpoint
Signed-off-by: Michael Crenshaw <[email protected]>
* check for bad project
Signed-off-by: Michael Crenshaw <[email protected]>
* lint
Signed-off-by: Michael Crenshaw <[email protected]>
* more logging
Signed-off-by: Michael Crenshaw <[email protected]>
* handle 404, return 500 instead of 400 for other errors
Signed-off-by: Michael Crenshaw <[email protected]>
* use user input
Signed-off-by: Michael Crenshaw <[email protected]>
* refactor validation
Signed-off-by: Michael Crenshaw <[email protected]>
* fix tests
Signed-off-by: Michael Crenshaw <[email protected]>
* fixes, tests
Signed-off-by: Michael Crenshaw <[email protected]>
* chore: upgrade golangci-lint to v1.46.2
Because:
* Installation of golangci-lint v1.45.2 is currently broken and fails
silently due to a redacted dependency
(https://github.com/blizzy78/varnamelen/issues/13)
This commit:
* Upgrades golangci-lint to v1.46.2
Signed-off-by: Tommaso Sardelli <[email protected]>
* fix: lint
Signed-off-by: Michael Crenshaw <[email protected]>
* fix: lint
Signed-off-by: Tommaso Sardelli <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
* fix(ui): missing manifests and logs (#9231)
Signed-off-by: Michael Crenshaw <[email protected]>
* feat: make exec feature opt-in
Signed-off-by: Michael Crenshaw <[email protected]>
* fix codegen
Signed-off-by: Michael Crenshaw <[email protected]>
* use create instead of get for exec to match k8s
Signed-off-by: Michael Crenshaw <[email protected]>
* add RBAC instructions for exec
Signed-off-by: Michael Crenshaw <[email protected]>
* delete old line
Signed-off-by: Michael Crenshaw <[email protected]>
* remove unnecessary caveat
Signed-off-by: Michael Crenshaw <[email protected]>
* feat: add support for otel grpc tracing
Signed-off-by: Ben Ye <[email protected]>
* chore: rebase code to master
Signed-off-by: Ben Ye <[email protected]>
* feat: add otelgrpc to cmpserver
Signed-off-by: Ben Ye <[email protected]>
* feat: add util trace package
Signed-off-by: Ben Ye <[email protected]>
* fix: fix tracer context
Signed-off-by: Ben Ye <[email protected]>
* chore: move tracer initialization part to the loop
Signed-off-by: Ben Ye <[email protected]>
* feat: add caching to application js bundle since it has a unique name
Signed-off-by: Jonah Back <[email protected]>
* chore: simplify check and add tests
Signed-off-by: Michael Crenshaw <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
* fix: Add Content-Security-Policy configuration
This should finish up the work on issue #2706 by adding a configurable
Content-Security-Policy header which defaults to frame-ancestors 'self';
This matches what we do with X-Frame-Options=sameorigin some reference information found
here https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors
Signed-off-by: zachaller <[email protected]>
* Run codegen
Signed-off-by: zachaller <[email protected]>
* fix: add ARGOCD_SERVER_CONTENT_SECURITY_POLICY env var to be configured via configmap
Signed-off-by: zachaller <[email protected]>