Skip to content

Commit 98c653e

Browse files
authored
Merge pull request #238 from philbrookes/fix-channel-name
fix channel name
2 parents f8206bd + 2940401 commit 98c653e

File tree

7 files changed

+559
-11
lines changed

7 files changed

+559
-11
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ NAMESPACE=integreatly
55
PROJECT=integreatly-operator
66
REG=quay.io
77
SHELL=/bin/bash
8-
PREVIOUS_TAG=1.12.0
9-
TAG=1.13.0
8+
PREVIOUS_TAG=1.13.0
9+
TAG=1.13.1
1010
PKG=github.com/integr8ly/integreatly-operator
1111
TEST_DIRS?=$(shell sh -c "find $(TOP_SRC_DIRS) -name \\*_test.go -exec dirname {} \\; | sort | uniq")
1212
TEST_POD_NAME=integreatly-operator-test
@@ -207,8 +207,8 @@ deploy/integreatly-installation-cr.yml:
207207
gen/csv:
208208
@mv deploy/olm-catalog/integreatly-operator/integreatly-operator-$(PREVIOUS_TAG) deploy/olm-catalog/integreatly-operator/$(PREVIOUS_TAG)
209209
@rm -rf deploy/olm-catalog/integreatly-operator/integreatly-operator-$(TAG)
210-
sed -i 's/image:.*/image: quay\.io\/integreatly\/integreatly-operator:v$(TAG)/g' deploy/operator.yaml
211-
operator-sdk olm-catalog gen-csv --csv-version $(TAG) --update-crds --from-version $(PREVIOUS_TAG)
210+
@sed -i 's/image:.*/image: quay\.io\/integreatly\/integreatly-operator:v$(TAG)/g' deploy/operator.yaml
211+
operator-sdk olm-catalog gen-csv --csv-version $(TAG) --default-channel --csv-channel=integreatly --update-crds --from-version $(PREVIOUS_TAG)
212212
@echo Updating package file
213213
@sed -i 's/$(PREVIOUS_TAG)/$(TAG)/g' version/version.go
214214
@sed -i 's/$(PREVIOUS_TAG)/$(TAG)/g' deploy/olm-catalog/integreatly-operator/integreatly-operator.package.yaml

deploy/olm-catalog/integreatly-operator/integreatly-operator-1.13.1/integreatly-operator.v1.13.1.clusterserviceversion.yaml

Lines changed: 461 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
apiVersion: apiextensions.k8s.io/v1beta1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
name: installations.integreatly.org
5+
spec:
6+
group: integreatly.org
7+
names:
8+
kind: Installation
9+
listKind: InstallationList
10+
plural: installations
11+
singular: installation
12+
scope: Namespaced
13+
subresources:
14+
status: {}
15+
validation:
16+
openAPIV3Schema:
17+
description: Installation is the Schema for the installations API
18+
properties:
19+
apiVersion:
20+
description: 'APIVersion defines the versioned schema of this representation
21+
of an object. Servers should convert recognized schemas to the latest
22+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
23+
type: string
24+
kind:
25+
description: 'Kind is a string value representing the REST resource this
26+
object represents. Servers may infer this from the endpoint the client
27+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
28+
type: string
29+
metadata:
30+
type: object
31+
spec:
32+
description: InstallationSpec defines the desired state of Installation
33+
properties:
34+
masterURL:
35+
type: string
36+
namespacePrefix:
37+
type: string
38+
pullSecret:
39+
properties:
40+
name:
41+
type: string
42+
namespace:
43+
type: string
44+
required:
45+
- name
46+
- namespace
47+
type: object
48+
routingSubdomain:
49+
type: string
50+
selfSignedCerts:
51+
type: boolean
52+
type:
53+
description: 'INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
54+
Important: Run "operator-sdk generate k8s" to regenerate code after
55+
modifying this file Add custom validation using kubebuilder tags:
56+
https://book.kubebuilder.io/beyond_basics/generating_crd.html'
57+
type: string
58+
required:
59+
- namespacePrefix
60+
- selfSignedCerts
61+
- type
62+
type: object
63+
status:
64+
description: InstallationStatus defines the observed state of Installation
65+
properties:
66+
preflightMessage:
67+
type: string
68+
preflightStatus:
69+
type: string
70+
stages:
71+
description: 'INSERT ADDITIONAL STATUS FIELD - define observed state
72+
of cluster Important: Run "operator-sdk generate k8s" to regenerate
73+
code after modifying this file Add custom validation using kubebuilder
74+
tags: https://book.kubebuilder.io/beyond_basics/generating_crd.html'
75+
required:
76+
- stages
77+
type: object
78+
type: object
79+
version: v1alpha1
80+
versions:
81+
- name: v1alpha1
82+
served: true
83+
storage: true
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
channels:
2-
- currentCSV: integreatly-operator.v1.13.0
3-
name: alpha
4-
defaultChannel: alpha
5-
packageName: integreatly-operator
2+
- currentCSV: integreatly-operator.v1.13.1
3+
name: integreatly
4+
defaultChannel: integreatly
5+
packageName: integreatly

deploy/operator-subscription-template.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ objects:
1717
name: ${SUBSCRIPTION_NAME}
1818
namespace: ${NAMESPACE}
1919
spec:
20-
channel: integreatly
20+
channel: ${CHANNEL}
2121
installPlanApproval: Automatic
2222
name: integreatly
2323
source: ${CATALOG_SOURCE_CONFIG_NAME}
@@ -44,3 +44,7 @@ parameters:
4444
displayName: Subscription Name
4545
name: SUBSCRIPTION_NAME
4646
value: integreatly-operator
47+
- description: The name of the channel
48+
displayName: Channel Name
49+
name: CHANNEL
50+
value: integreatly

deploy/operator.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
containers:
1717
- name: integreatly-operator
1818
# Replace this with the built image name
19-
image: quay.io/integreatly/integreatly-operator:v1.13.0
19+
image: quay.io/integreatly/integreatly-operator:v1.13.1
2020
command:
2121
- integreatly-operator
2222
imagePullPolicy: Always

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package version
22

33
var (
4-
Version = "1.13.0"
4+
Version = "1.13.1"
55
)

0 commit comments

Comments
 (0)