diff --git a/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-all-namespaces.yaml b/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-all-namespaces.yaml new file mode 100644 index 00000000..4c99571d --- /dev/null +++ b/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-all-namespaces.yaml @@ -0,0 +1,69 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: websphere-liberty-operator + namespace: openshift-gitops +spec: + sourceRepos: + - 'https://github.com/WASdev/websphere-liberty-operator' + destinations: + - namespace: '!kube-*' + server: '*' + - namespace: '!openshift-[!o][!p][!e][!r][!a][!t][!o][!r][!s]*' + server: '*' + - namespace: '!openshift-apiserver' + server: '*' + - namespace: '!openshift-kni-infra' + server: '*' + - namespace: '!openshift-[a-z][a-z][a-z][a-z][a-z][a-z][a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z][a-z][a-z][a-z][a-z][a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z][a-z][a-z][a-z][a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z][a-z][a-z][a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z][a-z][a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z][a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z][a-z]' + server: '*' + - namespace: '!openshift-[a-z]' + server: '*' + - namespace: '*' + server: '*' + clusterResourceWhitelist: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + - group: rbac.authorization.k8s.io + kind: ClusterRole + - group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + - group: '' + kind: Namespace +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: websphere-liberty-operator + namespace: openshift-gitops +spec: + project: websphere-liberty-operator + source: + path: deploy/releases/1.4.3/kustomize/overlays/watch-all-namespaces + repoURL: 'https://github.com/WASdev/websphere-liberty-operator' + targetRevision: HEAD + kustomize: + namespace: websphere-liberty + destination: + namespace: websphere-liberty + server: 'https://kubernetes.default.svc' + ignoreDifferences: + - group: '' + kind: ConfigMap + name: websphere-liberty-operator + syncPolicy: + syncOptions: + - ServerSideApply=true + - CreateNamespace=true \ No newline at end of file diff --git a/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-another-namespace.yaml b/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-another-namespace.yaml new file mode 100644 index 00000000..f7ec69d7 --- /dev/null +++ b/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-another-namespace.yaml @@ -0,0 +1,70 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: websphere-liberty-operator + namespace: openshift-gitops +spec: + sourceRepos: + - 'https://github.com/WASdev/websphere-liberty-operator' + destinations: + - namespace: '!kube-*' + server: '*' + - namespace: '!openshift-*' + server: '*' + - namespace: '*' + server: '*' + clusterResourceWhitelist: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + - group: '' + kind: Namespace +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: websphere-liberty-operator + namespace: openshift-gitops +spec: + project: websphere-liberty-operator + source: + path: deploy/releases/1.4.3/kustomize/overlays/watch-another-namespace/wlo-ns + repoURL: 'https://github.com/WASdev/websphere-liberty-operator' + targetRevision: HEAD + kustomize: + namespace: wlo-ns + destination: + namespace: wlo-ns + server: 'https://kubernetes.default.svc' + ignoreDifferences: + - group: '' + kind: ConfigMap + name: websphere-liberty-operator + syncPolicy: + syncOptions: + - ServerSideApply=true + - CreateNamespace=true +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: websphere-liberty-operator-watched-namespace + namespace: openshift-gitops +spec: + project: websphere-liberty-operator + source: + path: deploy/releases/1.4.3/kustomize/overlays/watch-another-namespace/wlo-watched-ns + repoURL: 'https://github.com/WASdev/websphere-liberty-operator' + targetRevision: HEAD + kustomize: + namespace: wlo-watched-ns + destination: + namespace: wlo-watched-ns + server: 'https://kubernetes.default.svc' + ignoreDifferences: + - group: '' + kind: ConfigMap + name: websphere-liberty-operator + syncPolicy: + syncOptions: + - ServerSideApply=true + - CreateNamespace=true \ No newline at end of file diff --git a/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-own-namespace.yaml b/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-own-namespace.yaml new file mode 100644 index 00000000..61d358a4 --- /dev/null +++ b/deploy/releases/1.4.3/kustomize-argo-cd/kustomize-wlo-own-namespace.yaml @@ -0,0 +1,45 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: websphere-liberty-operator + namespace: openshift-gitops +spec: + sourceRepos: + - 'https://github.com/WASdev/websphere-liberty-operator' + destinations: + - namespace: '!kube-*' + server: '*' + - namespace: '!openshift-*' + server: '*' + - namespace: '*' + server: '*' + clusterResourceWhitelist: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + - group: '' + kind: Namespace +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: websphere-liberty-operator + namespace: openshift-gitops +spec: + project: websphere-liberty-operator + source: + path: deploy/releases/1.4.3/kustomize/base + repoURL: 'https://github.com/WASdev/websphere-liberty-operator' + targetRevision: HEAD + kustomize: + namespace: websphere-liberty + destination: + namespace: websphere-liberty + server: 'https://kubernetes.default.svc' + ignoreDifferences: + - group: '' + kind: ConfigMap + name: websphere-liberty-operator + syncPolicy: + syncOptions: + - ServerSideApply=true + - CreateNamespace=true \ No newline at end of file diff --git a/deploy/releases/1.4.3/kustomize-argo-cd/readme.adoc b/deploy/releases/1.4.3/kustomize-argo-cd/readme.adoc new file mode 100644 index 00000000..105ec8e0 --- /dev/null +++ b/deploy/releases/1.4.3/kustomize-argo-cd/readme.adoc @@ -0,0 +1,9 @@ += Installing the WebSphere Liberty Operator using kustomize with Argo CD + +The WebSphere Liberty Operator can be installed using kustomize with Argo CD to: + +* watch own namespace +* watch another namespace +* watch all namespaces in the cluster + +Follow the instructions in the link:++https://ibm.biz/wlo-install-kustomize-argo-cd++[documentation].