mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-02-20 01:28:45 +01:00
prepare repo for migration to ArgoCD repo
Signed-off-by: Leonardo Luz Almeida <leonardo_almeida@intuit.com>
This commit is contained in:
10
.github/CODEOWNERS
vendored
10
.github/CODEOWNERS
vendored
@@ -1,10 +0,0 @@
|
|||||||
# All
|
|
||||||
** @argoproj/argocd-approvers
|
|
||||||
|
|
||||||
# Docs
|
|
||||||
/docs/** @argoproj/argocd-approvers @argoproj/argocd-approvers-docs
|
|
||||||
/README.md @argoproj/argocd-approvers @argoproj/argocd-approvers-docs
|
|
||||||
|
|
||||||
# CI
|
|
||||||
/.codecov.yml @argoproj/argocd-approvers @argoproj/argocd-approvers-ci
|
|
||||||
/.github/** @argoproj/argocd-approvers @argoproj/argocd-approvers-ci
|
|
||||||
26
.github/dependabot.yml
vendored
26
.github/dependabot.yml
vendored
@@ -1,26 +0,0 @@
|
|||||||
version: 2
|
|
||||||
updates:
|
|
||||||
- package-ecosystem: "gomod"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
commit-message:
|
|
||||||
prefix: "chore(deps)"
|
|
||||||
groups:
|
|
||||||
dependencies:
|
|
||||||
applies-to: version-updates
|
|
||||||
update-types:
|
|
||||||
- "minor"
|
|
||||||
- "patch"
|
|
||||||
- package-ecosystem: "github-actions"
|
|
||||||
directory: "/"
|
|
||||||
schedule:
|
|
||||||
interval: "daily"
|
|
||||||
commit-message:
|
|
||||||
prefix: "chore(deps)"
|
|
||||||
groups:
|
|
||||||
dependencies:
|
|
||||||
applies-to: version-updates
|
|
||||||
update-types:
|
|
||||||
- "minor"
|
|
||||||
- "patch"
|
|
||||||
30
.github/workflows/ci.yaml
vendored
30
.github/workflows/ci.yaml
vendored
@@ -1,30 +0,0 @@
|
|||||||
name: CI
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
- 'release-*'
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- 'master'
|
|
||||||
- 'release-*'
|
|
||||||
jobs:
|
|
||||||
test:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
||||||
- uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
- run: go mod tidy
|
|
||||||
- run: make test
|
|
||||||
- name: Run golangci-lint
|
|
||||||
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
|
|
||||||
with:
|
|
||||||
version: v2.1.6
|
|
||||||
args: --verbose
|
|
||||||
- uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.CODECOV_TOKEN }} #required
|
|
||||||
files: ./coverage.out
|
|
||||||
7
.gitignore
vendored
7
.gitignore
vendored
@@ -1,7 +0,0 @@
|
|||||||
*.swp
|
|
||||||
*~
|
|
||||||
.vscode
|
|
||||||
.idea
|
|
||||||
coverage.out
|
|
||||||
vendor/
|
|
||||||
.tool-versions
|
|
||||||
129
.golangci.yaml
129
.golangci.yaml
@@ -1,129 +0,0 @@
|
|||||||
version: "2"
|
|
||||||
linters:
|
|
||||||
enable:
|
|
||||||
- errorlint
|
|
||||||
- gocritic
|
|
||||||
- gomodguard
|
|
||||||
- importas
|
|
||||||
- misspell
|
|
||||||
- perfsprint
|
|
||||||
- revive
|
|
||||||
- testifylint
|
|
||||||
- thelper
|
|
||||||
- unparam
|
|
||||||
- usestdlibvars
|
|
||||||
- whitespace
|
|
||||||
- wrapcheck
|
|
||||||
settings:
|
|
||||||
gocritic:
|
|
||||||
disabled-checks:
|
|
||||||
- appendAssign
|
|
||||||
- assignOp
|
|
||||||
- exitAfterDefer
|
|
||||||
- typeSwitchVar
|
|
||||||
importas:
|
|
||||||
alias:
|
|
||||||
- pkg: k8s.io/api/apps/v1
|
|
||||||
alias: appsv1
|
|
||||||
- pkg: k8s.io/api/core/v1
|
|
||||||
alias: corev1
|
|
||||||
- pkg: k8s.io/apimachinery/pkg/api/errors
|
|
||||||
alias: apierrors
|
|
||||||
- pkg: k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1
|
|
||||||
alias: apiextensionsv1
|
|
||||||
- pkg: k8s.io/apimachinery/pkg/apis/meta/v1
|
|
||||||
alias: metav1
|
|
||||||
- pkg: github.com/argoproj/gitops-engine/pkg/utils/testing
|
|
||||||
alias: testingutils
|
|
||||||
perfsprint:
|
|
||||||
int-conversion: true
|
|
||||||
err-error: true
|
|
||||||
errorf: true
|
|
||||||
sprintf1: true
|
|
||||||
strconcat: true
|
|
||||||
revive:
|
|
||||||
rules:
|
|
||||||
- name: bool-literal-in-expr
|
|
||||||
- name: blank-imports
|
|
||||||
disabled: true
|
|
||||||
- name: context-as-argument
|
|
||||||
arguments:
|
|
||||||
- allowTypesBefore: '*testing.T,testing.TB'
|
|
||||||
- name: context-keys-type
|
|
||||||
disabled: true
|
|
||||||
- name: dot-imports
|
|
||||||
- name: duplicated-imports
|
|
||||||
- name: early-return
|
|
||||||
arguments:
|
|
||||||
- preserveScope
|
|
||||||
- name: empty-block
|
|
||||||
disabled: true
|
|
||||||
- name: error-naming
|
|
||||||
disabled: true
|
|
||||||
- name: error-return
|
|
||||||
- name: error-strings
|
|
||||||
disabled: true
|
|
||||||
- name: errorf
|
|
||||||
- name: identical-branches
|
|
||||||
- name: if-return
|
|
||||||
- name: increment-decrement
|
|
||||||
- name: indent-error-flow
|
|
||||||
arguments:
|
|
||||||
- preserveScope
|
|
||||||
- name: modifies-parameter
|
|
||||||
- name: optimize-operands-order
|
|
||||||
- name: range
|
|
||||||
- name: receiver-naming
|
|
||||||
- name: redefines-builtin-id
|
|
||||||
disabled: true
|
|
||||||
- name: redundant-import-alias
|
|
||||||
- name: superfluous-else
|
|
||||||
arguments:
|
|
||||||
- preserveScope
|
|
||||||
- name: time-equal
|
|
||||||
- name: time-naming
|
|
||||||
disabled: true
|
|
||||||
- name: unexported-return
|
|
||||||
disabled: true
|
|
||||||
- name: unnecessary-stmt
|
|
||||||
- name: unreachable-code
|
|
||||||
- name: unused-parameter
|
|
||||||
- name: use-any
|
|
||||||
- name: useless-break
|
|
||||||
- name: var-declaration
|
|
||||||
- name: var-naming
|
|
||||||
disabled: true
|
|
||||||
testifylint:
|
|
||||||
enable-all: true
|
|
||||||
disable:
|
|
||||||
- go-require
|
|
||||||
exclusions:
|
|
||||||
presets:
|
|
||||||
- comments
|
|
||||||
- common-false-positives
|
|
||||||
- legacy
|
|
||||||
- std-error-handling
|
|
||||||
paths:
|
|
||||||
- pkg/diff/internal/fieldmanager/borrowed_.*\.go$
|
|
||||||
- internal/kubernetes_vendor
|
|
||||||
- third_party$
|
|
||||||
- builtin$
|
|
||||||
- examples$
|
|
||||||
issues:
|
|
||||||
max-issues-per-linter: 0
|
|
||||||
max-same-issues: 0
|
|
||||||
formatters:
|
|
||||||
enable:
|
|
||||||
- gofumpt
|
|
||||||
- goimports
|
|
||||||
settings:
|
|
||||||
goimports:
|
|
||||||
local-prefixes:
|
|
||||||
- github.com/argoproj/gitops-engine
|
|
||||||
exclusions:
|
|
||||||
paths:
|
|
||||||
- pkg/diff/internal/fieldmanager/borrowed_.*\.go$
|
|
||||||
- internal/kubernetes_vendor
|
|
||||||
- third_party$
|
|
||||||
- builtin$
|
|
||||||
- examples$
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
coverage:
|
|
||||||
status:
|
|
||||||
patch: off
|
|
||||||
project:
|
|
||||||
default:
|
|
||||||
threshold: 2
|
|
||||||
32
gitops-engine/Makefile
Normal file
32
gitops-engine/Makefile
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# docker image publishing options
|
||||||
|
DOCKER_PUSH?=false
|
||||||
|
IMAGE_NAMESPACE?=
|
||||||
|
IMAGE_TAG?=latest
|
||||||
|
ifdef IMAGE_NAMESPACE
|
||||||
|
IMAGE_PREFIX=${IMAGE_NAMESPACE}/
|
||||||
|
endif
|
||||||
|
|
||||||
|
.PHONY: generate
|
||||||
|
generate: agent-manifests
|
||||||
|
|
||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
go test -race ./... -coverprofile=coverage.out
|
||||||
|
|
||||||
|
.PHONY: lint
|
||||||
|
lint:
|
||||||
|
golangci-lint run
|
||||||
|
|
||||||
|
.PHONY: agent-image
|
||||||
|
agent-image:
|
||||||
|
docker build -t $(IMAGE_PREFIX)gitops-agent . -f Dockerfile
|
||||||
|
@if [ "$(DOCKER_PUSH)" = "true" ] ; then docker push $(IMAGE_PREFIX)gitops-agent:$(IMAGE_TAG) ; fi
|
||||||
|
|
||||||
|
.PHONY: agent-manifests
|
||||||
|
agent-manifests:
|
||||||
|
kustomize build ./agent/manifests/cluster-install > ./agent/manifests/install.yaml
|
||||||
|
kustomize build ./agent/manifests/namespace-install > ./agent/manifests/install-namespaced.yaml
|
||||||
|
|
||||||
|
.PHONY: generate-mocks
|
||||||
|
generate-mocks:
|
||||||
|
go generate -x -v "github.com/argoproj/gitops-engine/pkg/utils/tracing/tracer_testing"
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user