-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initialize release * Update argocd templates from upstream (#100) * added applicationconfigurations crd (#99) * fixed crd define (#102) * Remove syncwave from eventbus (#101) * remove default annotation and move to values - eventbus * add missing separator (#103) * CR-21441 -- event reporter chart (#108) --------- Co-authored-by: Noam Gal <noam.gal@codefresh.io> Co-authored-by: Yaroslav Drachenko <yaroslav@codefresh.io>
- Loading branch information
1 parent
578ccfc
commit 54437da
Showing
7 changed files
with
171 additions
and
9 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
135 changes: 135 additions & 0 deletions
135
.../gitops-runtime/templates/_components/gitops-operator/crds/applicationconfigurations.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,135 @@ | ||
{{- define "gitops-operator.crds.application-configuration" }} | ||
{{- if .Values.crds.install }} | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: applicationconfigurations.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: applicationconfigurations.csdp.codefresh.io | ||
app.kubernetes.io/part-of: gitops-operator | ||
{{- with .Values.crds.additionalLabels }} | ||
{{- toYaml . | nindent 4}} | ||
{{- end }} | ||
spec: | ||
group: csdp.codefresh.io | ||
names: | ||
kind: ApplicationConfiguration | ||
listKind: ApplicationConfigurationList | ||
plural: applicationconfigurations | ||
singular: applicationconfiguration | ||
scope: Namespaced | ||
versions: | ||
- name: v1 | ||
schema: | ||
openAPIV3Schema: | ||
description: ApplicationConfiguration is the Schema for the applicationconfiguration | ||
API | ||
properties: | ||
apiVersion: | ||
description: 'APIVersion defines the versioned schema of this representation | ||
of an object. Servers should convert recognized schemas to the latest | ||
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' | ||
type: string | ||
kind: | ||
description: 'Kind is a string value representing the REST resource this | ||
object represents. Servers may infer this from the endpoint the client | ||
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: ApplicationConfigurationSpec defines the desired state of | ||
ApplicationConfiguration | ||
properties: | ||
applicationSourceSelector: | ||
description: ApplicationSourceSelector is a selector to select the | ||
application source | ||
properties: | ||
matchExpressions: | ||
description: matchExpressions is a list of label selector requirements. | ||
The requirements are ANDed. | ||
items: | ||
description: A label selector requirement is a selector that | ||
contains values, a key, and an operator that relates the key | ||
and values. | ||
properties: | ||
key: | ||
description: key is the label key that the selector applies | ||
to. | ||
type: string | ||
operator: | ||
description: operator represents a key's relationship to | ||
a set of values. Valid operators are In, NotIn, Exists | ||
and DoesNotExist. | ||
type: string | ||
values: | ||
description: values is an array of string values. If the | ||
operator is In or NotIn, the values array must be non-empty. | ||
If the operator is Exists or DoesNotExist, the values | ||
array must be empty. This array is replaced during a strategic | ||
merge patch. | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- key | ||
- operator | ||
type: object | ||
type: array | ||
matchLabels: | ||
additionalProperties: | ||
type: string | ||
description: matchLabels is a map of {key,value} pairs. A single | ||
{key,value} in the matchLabels map is equivalent to an element | ||
of matchExpressions, whose key field is "key", the operator | ||
is "In", and the values array contains only "value". The requirements | ||
are ANDed. | ||
type: object | ||
type: object | ||
x-kubernetes-map-type: atomic | ||
priority: | ||
type: integer | ||
promotion: | ||
additionalProperties: | ||
properties: | ||
jsonPaths: | ||
description: JsonPaths is an array of json paths inside the | ||
file, | ||
items: | ||
type: string | ||
type: array | ||
required: | ||
- jsonPaths | ||
type: object | ||
description: Promotion is the definition on how to promote this application | ||
type: object | ||
versionSource: | ||
description: VersionSource is the source of the application version | ||
properties: | ||
file: | ||
description: File is the file name of the source | ||
type: string | ||
jsonPath: | ||
description: JsonPath is the json path inside the file, to the | ||
version information | ||
type: string | ||
required: | ||
- file | ||
- jsonPath | ||
type: object | ||
required: | ||
- applicationSourceSelector | ||
- priority | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
{{- end }} | ||
{{- end }} |
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