Skip to content

Commit

Permalink
New Version 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
disposab1e committed Nov 14, 2019
1 parent 1a5102c commit 05156c9
Show file tree
Hide file tree
Showing 45 changed files with 4,116 additions and 0 deletions.
10 changes: 10 additions & 0 deletions deploy/catalog-source.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: argocd-catalog
namespace: argocd
spec:
sourceType: grpc
image: quay.io/disposab1e/argocd-operator-helm-registry:0.0.2
displayName: Argo CD Operators
publisher: Argo CD

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
name: argocds.argoproj.io
spec:
group: argoproj.io
names:
kind: ArgoCD
listKind: ArgoCDList
plural: argocds
singular: argocd
scope: Namespaced
subresources:
status: {}
version: v1alpha1
versions:
- name: v1alpha1
served: true
storage: true
8 changes: 8 additions & 0 deletions deploy/operator-group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: operators.coreos.com/v1alpha2
kind: OperatorGroup
metadata:
name: argocd-operator-helm
namespace: argocd
spec:
targetNamespaces:
- argocd
10 changes: 10 additions & 0 deletions deploy/operator-subscription.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: argocd-operator-helm
namespace: argocd
spec:
channel: alpha
name: argocd-operator-helm
source: argocd-catalog
sourceNamespace: olm
31 changes: 31 additions & 0 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: argocd-operator-helm
namespace: argocd
spec:
replicas: 1
selector:
matchLabels:
name: argocd-operator-helm
template:
metadata:
labels:
name: argocd-operator-helm
spec:
serviceAccountName: argocd-operator-helm
containers:
- name: argocd-operator-helm
image: quay.io/disposab1e/argocd-operator-helm:v0.0.2
imagePullPolicy: Always
env:
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: "argocd-operator-helm"
81 changes: 81 additions & 0 deletions deploy/role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: argocd-operator-helm
rules:
- apiGroups:
- ""
resources:
- namespaces
- pods
- services
- services/finalizers
- endpoints
- events
- configmaps
- secrets
- serviceaccounts
verbs:
- '*'
- apiGroups:
- apps
resources:
- deployments
- replicasets
verbs:
- '*'
- apiGroups:
- apps
resourceNames:
- argocd-operator-helm
resources:
- deployments/finalizers
verbs:
- update
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- apiGroups:
- apps
resources:
- replicasets
verbs:
- get
- apiGroups:
- argoproj.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- route.openshift.io
resources:
- '*'
verbs:
- '*'
- apiGroups:
- monitoring.coreos.com
resources:
- prometheuses
- servicemonitors
verbs:
- '*'
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- '*'
- apiGroups:
- rbac.authorization.k8s.io
resources:
- clusterrolebindings
- clusterroles
- rolebindings
- roles
verbs:
- '*'
13 changes: 13 additions & 0 deletions deploy/role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: argocd-operator-helm
namespace: argocd
subjects:
- kind: ServiceAccount
name: argocd-operator-helm
namespace: argocd
roleRef:
kind: ClusterRole
name: argocd-operator-helm
apiGroup: rbac.authorization.k8s.io
4 changes: 4 additions & 0 deletions deploy/service_account.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: argocd-operator-helm
3 changes: 3 additions & 0 deletions docs/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
User-agent: *
Disallow: /en/0.0.1/
Disallow: /en/stable
9 changes: 9 additions & 0 deletions docs/source/_static/kubernetes_argocd_installation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. code-block:: bash

kubectl get ArgoCDs argocd -n argocd

kubectl rollout status -w deployment/argocd-application-controller -n argocd
kubectl rollout status -w deployment/argocd-dex-server -n argocd
kubectl rollout status -w deployment/argocd-redis -n argocd
kubectl rollout status -w deployment/argocd-repo-server -n argocd
kubectl rollout status -w deployment/argocd-server -n argocd
21 changes: 21 additions & 0 deletions docs/source/_static/kubernetes_operator_manual_installation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Manual
------

You can install the operator from local sources without having to install an OLM Catalog.

.. Note:: No channel subscription and automatic operator updates available with this method.

.. image:: https://img.shields.io/badge/git%20clone-https%3A%2F%2Fgithub.com%2Fdisposab1e%2Fargocd--operator--helm.git-9cf.svg
:target: https://github.com/disposab1e/argocd-operator-helm
:alt: git clone

.. code-block:: bash

kubectl apply -f guides/kubernetes/manual/namespace.yaml
kubectl apply -f guides/kubernetes/manual/service_account.yaml
kubectl apply -f guides/kubernetes/manual/role.yaml
kubectl apply -f guides/kubernetes/manual/role_binding.yaml
kubectl apply -f guides/kubernetes/manual/crd.yaml
kubectl apply -f guides/kubernetes/manual/deployment.yaml

kubectl rollout status -w deployment/argocd-operator-helm -n argocd
20 changes: 20 additions & 0 deletions docs/source/_static/kubernetes_operator_olm_installation.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Operator Lifecycle Manager
--------------------------

This installation method installs the operator using an `OLM Catalog`_.

.. _OLM Catalog: https://quay.io/repository/disposab1e/argocd-operator-helm-registry

.. image:: https://img.shields.io/badge/git%20clone-https%3A%2F%2Fgithub.com%2Fdisposab1e%2Fargocd--operator--helm.git-9cf.svg
:target: https://github.com/disposab1e/argocd-operator-helm
:alt: git clone

.. code-block:: bash

kubectl apply -f guides/kubernetes/olm/namespace.yaml
kubectl apply -f guides/kubernetes/olm/catalog-source.yaml
kubectl apply -f guides/kubernetes/olm/operator-group.yaml
kubectl apply -f guides/kubernetes/olm/subscription.yaml

kubectl rollout status -w deployment/argocd-operator-helm -n argocd

Loading

0 comments on commit 05156c9

Please sign in to comment.