Skip to content

Commit 0a3dad8

Browse files
authored
Merge pull request validatedpatterns#288 from mbaldessari/gitops-1.8
gitops 1.8
2 parents c34fc08 + 20bb833 commit 0a3dad8

15 files changed

+59
-24
lines changed

acm/templates/policies/ocp-gitops-policy.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ spec:
3535
labels:
3636
operators.coreos.com/openshift-gitops-operator.openshift-operators: ''
3737
spec:
38-
channel: stable
38+
channel: gitops-1.8
3939
installPlanApproval: Automatic
4040
name: openshift-gitops-operator
4141
source: redhat-operators

operator-install/crds/gitops.hybrid-cloud-patterns.io_patterns.yaml

Lines changed: 44 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
2-
---
31
apiVersion: apiextensions.k8s.io/v1
42
kind: CustomResourceDefinition
53
metadata:
@@ -84,7 +82,7 @@ spec:
8482
type: string
8583
operatorChannel:
8684
description: 'Channel to deploy openshift-gitops from. Default:
87-
stable'
85+
gitops-1.8'
8886
type: string
8987
operatorSource:
9088
description: 'Source to deploy openshift-gitops from. Default:
@@ -102,19 +100,24 @@ spec:
102100
from TargetRepo is broken
103101
type: string
104102
originRepo:
105-
description: Unused
103+
description: Upstream git repo containing the pattern to deploy.
104+
Used when in-cluster fork to point to the upstream pattern repository
106105
type: string
106+
originRevision:
107+
description: Branch, tag or commit in the upstream git repository.
108+
Does not support short-sha's. Default to HEAD
109+
type: string
110+
pollInterval:
111+
description: 'Interval in seconds to poll for drifts between origin
112+
and target repositories. Default: 180 seconds'
113+
type: integer
107114
targetRepo:
108115
description: Git repo containing the pattern to deploy. Must use
109116
https/http
110117
type: string
111118
targetRevision:
112119
description: 'Branch, tag, or commit to deploy. Does not support
113-
short-sha''s. Default: main'
114-
type: string
115-
valuesDirectoryURL:
116-
description: Optional. Alternate URL to obtain Helm values files
117-
from instead of this pattern.
120+
short-sha''s. Default: HEAD'
118121
type: string
119122
required:
120123
- targetRepo
@@ -126,6 +129,8 @@ spec:
126129
status:
127130
description: PatternStatus defines the observed state of Pattern
128131
properties:
132+
appClusterDomain:
133+
type: string
129134
clusterDomain:
130135
type: string
131136
clusterID:
@@ -134,6 +139,36 @@ spec:
134139
type: string
135140
clusterPlatform:
136141
type: string
142+
clusterVersion:
143+
type: string
144+
conditions:
145+
items:
146+
properties:
147+
lastTransitionTime:
148+
description: Last time the condition transitioned from one status
149+
to another.
150+
format: date-time
151+
type: string
152+
lastUpdateTime:
153+
description: The last time this condition was updated.
154+
format: date-time
155+
type: string
156+
message:
157+
description: A human readable message indicating details about
158+
the transition.
159+
type: string
160+
status:
161+
description: Status of the condition, one of True, False, Unknown.
162+
type: string
163+
type:
164+
description: Type of deployment condition.
165+
type: string
166+
required:
167+
- lastUpdateTime
168+
- status
169+
- type
170+
type: object
171+
type: array
137172
lastError:
138173
description: Last error encountered by the pattern
139174
type: string

operator-install/templates/pattern.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ spec:
99
targetRepo: {{ .Values.main.git.repoURL }}
1010
targetRevision: {{ .Values.main.git.revision }}
1111
gitOpsSpec:
12-
operatorChannel: {{ default "stable" .Values.main.gitops.channel }}
12+
operatorChannel: {{ default "gitops-1.8" .Values.main.gitops.channel }}
1313
{{- if .Values.main.extraParameters }}
1414
extraParameters:
1515
{{- range .Values.main.extraParameters }}
1616
- name: {{ .name }}
1717
value: {{ .value }}
1818
{{- end }}
19-
{{- end }}
19+
{{- end }}

operator-install/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ main:
44
revision: main
55

66
gitops:
7-
channel: "stable"
7+
channel: "gitops-1.8"
88

99
clusterGroupName: default

reference-output.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ metadata:
112112
labels:
113113
operators.coreos.com/openshift-gitops-operator.openshift-operators: ""
114114
spec:
115-
channel: stable
115+
channel: gitops-1.8
116116
installPlanApproval: Automatic
117117
name: openshift-gitops-operator
118118
source: redhat-operators

tests/acm-industrial-edge-factory.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ spec:
8787
labels:
8888
operators.coreos.com/openshift-gitops-operator.openshift-operators: ''
8989
spec:
90-
channel: stable
90+
channel: gitops-1.8
9191
installPlanApproval: Automatic
9292
name: openshift-gitops-operator
9393
source: redhat-operators

tests/acm-industrial-edge-hub.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ spec:
289289
labels:
290290
operators.coreos.com/openshift-gitops-operator.openshift-operators: ''
291291
spec:
292-
channel: stable
292+
channel: gitops-1.8
293293
installPlanApproval: Automatic
294294
name: openshift-gitops-operator
295295
source: redhat-operators

tests/acm-medical-diagnosis-hub.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ spec:
280280
labels:
281281
operators.coreos.com/openshift-gitops-operator.openshift-operators: ''
282282
spec:
283-
channel: stable
283+
channel: gitops-1.8
284284
installPlanApproval: Automatic
285285
name: openshift-gitops-operator
286286
source: redhat-operators

tests/acm-naked.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ spec:
8787
labels:
8888
operators.coreos.com/openshift-gitops-operator.openshift-operators: ''
8989
spec:
90-
channel: stable
90+
channel: gitops-1.8
9191
installPlanApproval: Automatic
9292
name: openshift-gitops-operator
9393
source: redhat-operators

tests/acm-normal.expected.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ spec:
790790
labels:
791791
operators.coreos.com/openshift-gitops-operator.openshift-operators: ''
792792
spec:
793-
channel: stable
793+
channel: gitops-1.8
794794
installPlanApproval: Automatic
795795
name: openshift-gitops-operator
796796
source: redhat-operators

0 commit comments

Comments
 (0)