Skip to content

Commit

Permalink
argocd: add knative-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Login Victor <batazor@evrone.com>
  • Loading branch information
batazor committed Sep 1, 2022
1 parent 629350c commit 7314612
Show file tree
Hide file tree
Showing 23 changed files with 27 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
{{- if and (.Capabilities.APIVersions.Has "argoproj.io/v1alpha1") -}}
apiVersion: argoproj.io/v1alpha1
kind: Application
kind: ApplicationSet
metadata:
name: sync-kafka-to-elasticsearch
spec:
project: shortlink
destination:
name: ''
namespace: shortlink
server: 'https://kubernetes.default.svc'
source:
repoURL: 'https://github.com/batazor/shortlink'
targetRevision: HEAD
path: ops/Helm/knative/sync-kafka-to-elasticsearch
generators:
- list:
elements:
- cluster: in-cluster
url: https://kubernetes.default.svc
template:
metadata:
name: knative
spec:
project: shortlink
source:
repoURL: 'https://github.com/batazor/shortlink'
targetRevision: HEAD
path: ops/Helm/knative
directory:
recurse: true
destination:
name: ''
namespace: knative
server: 'https://kubernetes.default.svc'
syncPolicy:
automated:
prune: true
selfHeal: true
syncPolicy:
automated:
prune: true
selfHeal: true
{{- end}}
preserveResourcesOnDeletion: true

This file was deleted.

2 changes: 0 additions & 2 deletions ops/Helm/addons/argocd/templates/shortlink/project.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if and (.Capabilities.APIVersions.Has "argoproj.io/v1alpha1") -}}
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
Expand All @@ -22,4 +21,3 @@ spec:
kind: '*'
orphanedResources:
warn: true
{{- end}}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if and (.Capabilities.APIVersions.Has "operator.knative.dev/v1beta1") -}}
---
apiVersion: v1
kind: ConfigMap
Expand All @@ -20,4 +19,4 @@ metadata:
grafana_dashboard: "true"
data:
{{ (.Files.Glob "config/grafana/knative-infra/*").AsConfig | indent 2 }}
{{- end }}

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if and (.Capabilities.APIVersions.Has "operator.knative.dev/v1beta1") -}}
apiVersion: v1
kind: Namespace
metadata:
Expand All @@ -21,4 +20,3 @@ spec:
enabled: true
github:
enabled: true
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if and (.Capabilities.APIVersions.Has "operator.knative.dev/v1beta1") -}}
apiVersion: v1
kind: Namespace
metadata:
Expand All @@ -13,4 +12,3 @@ spec:
config:
istio:
local-gateway.knative-serving.knative-local-gateway: "knative-local-gateway.istio-ingress.svc.cluster.local"
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{- if and (.Capabilities.APIVersions.Has "operator.knative.dev/v1beta1") -}}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
Expand Down Expand Up @@ -168,4 +167,3 @@ spec:
eventing.knative.dev/source: apiserver-source-controller
podMetricsEndpoints:
- port: metrics
{{- end }}
15 changes: 0 additions & 15 deletions ops/gitlab/pipelines/addons/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,18 +58,3 @@ flagger:
needs: []
rules:
- when: manual

knative-operator:
stage: deploy
variables:
RELEASE_NAME: knative-operator
HELM_PATH: ops/Helm/addons/knative-operator
HELM_NAMESPACE: knative-operator
ENVIRONMENT_URL: $ENVIRONMENT_URL/knative-operator
trigger:
include:
- local: 'ops/gitlab/pipelines/helm_deploy.yml'
strategy: depend
needs: [ ]
rules:
- when: manual

0 comments on commit 7314612

Please sign in to comment.