Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@
{{ include "gitops-operator.resources.restricted_git_source_rbac" . }}
---
{{ include "gitops-operator.resources.sa" .}}
---
{{- include "gitops-operator.crds.restricted-gitsource" . }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
---
{{- define "gitops-operator.crds.restricted-gitsource" }}
{{- if .Values.crds.install }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: restrictedgitsources.csdp.codefresh.io
annotations:
{{- if .Values.crds.keep }}
"helm.sh/resource-policy": keep
{{- end }}
{{- with .Values.crds.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
labels:
app.kubernetes.io/name: restrictedgitsources.csdp.codefresh.io
app.kubernetes.io/part-of: gitops-operator
{{- with .Values.crds.additionalLabels }}
{{- toYaml . | nindent 4}}
{{- end }}
spec:
group: csdp.codefresh.io
names:
Expand Down Expand Up @@ -507,3 +521,5 @@ spec:
storage: true
subresources:
status: {}
{{- end }}
{{- end }}
13 changes: 12 additions & 1 deletion charts/gitops-runtime/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,17 @@ app-proxy:
gitops-operator:
replicaCount: 1

# -- Codefresh gitops operator crds
crds:
# -- Whether or not to install CRDs
install: true
# -- Keep CRDs if gitops runtime release is uninstalled
keep: false
# -- Annotations on gitops operator CRDs
annotations: {}
# -- Additional labels for gitops operator CRDs
additionalLabels: {}

image:
repository: quay.io/codefresh/codefresh-gitops-operator
tag: v0.1.0-alpha.3
Expand All @@ -475,7 +486,7 @@ gitops-operator:
serviceAccount:
create: true
annotations: {}
name: "controller-manager"
name: "gitops-operator-controller-manager"

readinessProbe:
failureThreshold: 3
Expand Down