forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca3a6a1
commit 1e76193
Showing
8 changed files
with
162 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
manifests/base/acr-controller/acr-controller-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: acr-controller | ||
app.kubernetes.io/part-of: argocd | ||
app.kubernetes.io/component: acr-controller | ||
name: acr-controller | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: acr-controller | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: acr-controller | ||
spec: | ||
serviceAccountName: acr-controller | ||
containers: | ||
- name: acr-controller | ||
image: quay.io/argoproj/argocd:latest | ||
imagePullPolicy: Always | ||
args: | ||
- /usr/local/bin/argocd-application-change-revision-controller | ||
env: | ||
- name: ARGOCD_SERVER | ||
value: "http://argocd-server:80" | ||
- name: ARGOCD_TOKEN | ||
valueFrom: | ||
secretKeyRef: | ||
key: token | ||
name: argocd-token | ||
- name: ARGOCD_APPLICATION_NAMESPACES | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: application.namespaces | ||
optional: true | ||
- name: ACR_CONTROLLER_LOGFORMAT | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: acr.log.format | ||
optional: true | ||
- name: ACR_CONTROLLER_LOG_LEVEL | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: acr.log.level | ||
optional: true | ||
- name: ACR_CONTROLLER_LISTEN_ADDRESS | ||
valueFrom: | ||
configMapKeyRef: | ||
name: argocd-cmd-params-cm | ||
key: acr.listen.address | ||
optional: true | ||
ports: | ||
- containerPort: 8090 | ||
name: health | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz?full=true | ||
port: health | ||
initialDelaySeconds: 3 | ||
periodSeconds: 30 | ||
timeoutSeconds: 5 | ||
readinessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: health | ||
initialDelaySeconds: 3 | ||
periodSeconds: 30 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
capabilities: | ||
drop: | ||
- ALL | ||
seccompProfile: | ||
type: RuntimeDefault |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: acr-controller | ||
app.kubernetes.io/part-of: argocd | ||
app.kubernetes.io/component: acr-controller | ||
name: acr-controller | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- secrets | ||
- configmaps | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- applications | ||
- appprojects | ||
- applicationsets | ||
verbs: | ||
- create | ||
- get | ||
- list | ||
- watch | ||
- update | ||
- delete | ||
- patch | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- list |
15 changes: 15 additions & 0 deletions
15
manifests/base/acr-controller/acr-controller-rolebinding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: acr-controller | ||
app.kubernetes.io/part-of: argocd | ||
app.kubernetes.io/component: acr-controller | ||
name: acr-controller | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: acr-controller | ||
subjects: | ||
- kind: ServiceAccount | ||
name: acr-controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: acr-controller | ||
app.kubernetes.io/part-of: argocd | ||
app.kubernetes.io/component: acr-controller | ||
name: acr-controller |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
|
||
resources: | ||
- acr-controller-deployment.yaml | ||
- acr-controller-role.yaml | ||
- acr-controller-rolebinding.yaml | ||
- acr-controller-sa.yaml |