Skip to content

Upstream sync #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
a0c7885
declcfg: improve and fix model tests to eliminate possibility of fals…
joelanford Jul 11, 2021
246e0ce
Remove pin of etcd and grpc (resolved in etcd v3.5.0).
benluddy Jul 12, 2021
1e5aef2
move DC opm commands out of alpha
ankitathomas Jul 12, 2021
1529be4
Translate legacy "bundle dependencies" to properties.
benluddy Jul 13, 2021
0745028
Use one HTTP server for healthz, metrics, and profiling.
benluddy Jun 18, 2021
0d1d1f2
Remove unused trace log from LegacySyncHandler.
benluddy Jul 14, 2021
cb9cb9f
Add a catalog-operator flag to set opmImage
zcahana Jul 13, 2021
83eb1ce
Enable gzip compression when unpacking bundles to ConfigMap
zcahana Jul 7, 2021
3626e03
Bump operator-registry to v1.17.5
zcahana Jul 15, 2021
ba29f0f
Regenerate mocks
zcahana Jul 15, 2021
e95915d
Update test-scripts check to use go1.16
zcahana Jul 15, 2021
7d0d572
Explain unique replaces chain requirement in channel sort errors.
benluddy Jul 16, 2021
aad1cb2
Correctly omit skipped channel entries during resolution.
benluddy Jul 16, 2021
9951b95
Fix ClusterOperator selector for excluding copied CSVs.
benluddy Jul 16, 2021
d8e537e
Don't cache copied CSVs in the controller-runtime-based controllers.
benluddy Jul 16, 2021
92abe27
feat(sub): Include IP failure condition message in sub status condition
anik120 Jul 16, 2021
c23e5ec
add a resolver test for completely disjoint graphs within a channel
ecordell Jul 19, 2021
0a07b46
Add list subcommands for packages, channels, and bundles
joelanford Jul 6, 2021
0a118aa
improve tests
joelanford Jul 19, 2021
62bd80f
Update extractMessage func
awgreene Jul 19, 2021
cf30b9f
Use metadata-only watches when possible for Operator component APIs.
benluddy Jul 19, 2021
56a5579
fix(openshift): handle unquoted short max versions
njhale Jul 20, 2021
a18a155
remove unused scripts
ecordell Jul 20, 2021
327d247
Temporarily use controller-runtime fork with data race patch.
benluddy Jul 20, 2021
aa687ed
Update olm and catalog deployment templates
awgreene Jul 21, 2021
6eb4891
type(sub): Add ResolutionFailed condition type for subscription (#138)
anik120 Jul 21, 2021
a85c642
feat: add GVK existence check for OLM supported resources by querying…
exdx Jun 29, 2021
b049064
Update OLM Deployment template
awgreene Jul 21, 2021
b77c2c0
Add optional opm image argument to chart template
kevinrizza Jul 21, 2021
ec51a3d
Update getMetricsFromPort to infer port number
awgreene Jul 21, 2021
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
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ require (
github.com/openshift/api v0.0.0-20200331152225-585af27e34fd
github.com/operator-framework/api v0.10.1
github.com/operator-framework/operator-lifecycle-manager v0.0.0-00010101000000-000000000000
github.com/operator-framework/operator-registry v1.13.6
github.com/operator-framework/operator-registry v1.17.5
github.com/spf13/cobra v1.1.3
github.com/stretchr/testify v1.7.0
google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0
Expand Down
8 changes: 4 additions & 4 deletions manifests/0000_50_olm_02-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ spec:
type: ClusterIP
ports:
- name: https-metrics
port: 8081
port: 8443
protocol: TCP
targetPort: metrics
targetPort: 8443
selector:
app: olm-operator
---
Expand All @@ -36,8 +36,8 @@ spec:
type: ClusterIP
ports:
- name: https-metrics
port: 8081
port: 8443
protocol: TCP
targetPort: metrics
targetPort: 8443
selector:
app: catalog-operator
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,27 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
spec:
serviceAccountName: olm-operator-serviceaccount
volumes:
- name: srv-cert
secret:
secretName: olm-operator-serving-cert
- name: profile-collector-cert
secret:
secretName: olm-operator-serving-cert
- name: serving-cert
secret:
secretName: olm-operator-serving-cert
containers:
- name: olm-operator
volumeMounts:
- name: srv-cert
mountPath: "/srv-cert"
readOnly: true
- name: profile-collector-cert
mountPath: "/profile-collector-cert"
readOnly: true
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
command:
- /bin/olm
args:
Expand All @@ -34,24 +53,26 @@ spec:
- --writePackageServerStatusName
- operator-lifecycle-manager-packageserver
- --tls-cert
- /var/run/secrets/serving-cert/tls.crt
- /srv-cert/tls.crt
- --tls-key
- /var/run/secrets/serving-cert/tls.key
- /srv-cert/tls.key
- --client-ca
- /profile-collector-cert/tls.crt
image: quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
- containerPort: 8081
- containerPort: 8443
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
readinessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
terminationMessagePolicy: FallbackToLogsOnError
env:
- name: OPERATOR_NAMESPACE
Expand All @@ -66,9 +87,6 @@ spec:
requests:
cpu: 10m
memory: 160Mi
volumeMounts:
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
nodeSelector:
kubernetes.io/os: linux
tolerations:
Expand All @@ -84,7 +102,3 @@ spec:
operator: Exists
tolerationSeconds: 120
priorityClassName: system-cluster-critical
volumes:
- name: serving-cert
secret:
secretName: olm-operator-serving-cert
42 changes: 28 additions & 14 deletions manifests/0000_50_olm_07-olm-operator.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,27 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
spec:
serviceAccountName: olm-operator-serviceaccount
volumes:
- name: srv-cert
secret:
secretName: olm-operator-serving-cert
- name: profile-collector-cert
secret:
secretName: olm-operator-serving-cert
- name: serving-cert
secret:
secretName: olm-operator-serving-cert
containers:
- name: olm-operator
volumeMounts:
- name: srv-cert
mountPath: "/srv-cert"
readOnly: true
- name: profile-collector-cert
mountPath: "/profile-collector-cert"
readOnly: true
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
command:
- /bin/olm
args:
Expand All @@ -35,24 +54,26 @@ spec:
- --writePackageServerStatusName
- operator-lifecycle-manager-packageserver
- --tls-cert
- /var/run/secrets/serving-cert/tls.crt
- /srv-cert/tls.crt
- --tls-key
- /var/run/secrets/serving-cert/tls.key
- /srv-cert/tls.key
- --client-ca
- /profile-collector-cert/tls.crt
image: quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
- containerPort: 8081
- containerPort: 8443
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
readinessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
terminationMessagePolicy: FallbackToLogsOnError
env:
- name: OPERATOR_NAMESPACE
Expand All @@ -67,9 +88,6 @@ spec:
requests:
cpu: 10m
memory: 160Mi
volumeMounts:
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
nodeSelector:
kubernetes.io/os: linux
node-role.kubernetes.io/master: ""
Expand All @@ -86,7 +104,3 @@ spec:
operator: Exists
tolerationSeconds: 120
priorityClassName: system-cluster-critical
volumes:
- name: serving-cert
secret:
secretName: olm-operator-serving-cert
Original file line number Diff line number Diff line change
Expand Up @@ -22,37 +22,59 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
spec:
serviceAccountName: olm-operator-serviceaccount
volumes:
- name: srv-cert
secret:
secretName: catalog-operator-serving-cert
- name: profile-collector-cert
secret:
secretName: catalog-operator-serving-cert
- name: serving-cert
secret:
secretName: catalog-operator-serving-cert
containers:
- name: catalog-operator
volumeMounts:
- name: srv-cert
mountPath: "/srv-cert"
readOnly: true
- name: profile-collector-cert
mountPath: "/profile-collector-cert"
readOnly: true
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
command:
- /bin/catalog
args:
- '-namespace'
- openshift-marketplace
- -configmapServerImage=quay.io/operator-framework/configmap-operator-registry:latest
- -opmImage=quay.io/operator-framework/configmap-operator-registry:latest
- -util-image
- quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
- -writeStatusName
- operator-lifecycle-manager-catalog
- -tls-cert
- /var/run/secrets/serving-cert/tls.crt
- -tls-key
- /var/run/secrets/serving-cert/tls.key
- --tls-cert
- /srv-cert/tls.crt
- --tls-key
- /srv-cert/tls.key
- --client-ca
- /profile-collector-cert/tls.crt
image: quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
- containerPort: 8081
- containerPort: 8443
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
readinessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
terminationMessagePolicy: FallbackToLogsOnError
resources:
requests:
Expand All @@ -61,9 +83,6 @@ spec:
env:
- name: RELEASE_VERSION
value: "0.0.1-snapshot"
volumeMounts:
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
nodeSelector:
kubernetes.io/os: linux
tolerations:
Expand All @@ -79,7 +98,3 @@ spec:
operator: Exists
tolerationSeconds: 120
priorityClassName: system-cluster-critical
volumes:
- name: serving-cert
secret:
secretName: catalog-operator-serving-cert
47 changes: 31 additions & 16 deletions manifests/0000_50_olm_08-catalog-operator.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,59 @@ spec:
target.workload.openshift.io/management: '{"effect": "PreferredDuringScheduling"}'
spec:
serviceAccountName: olm-operator-serviceaccount
volumes:
- name: srv-cert
secret:
secretName: catalog-operator-serving-cert
- name: profile-collector-cert
secret:
secretName: catalog-operator-serving-cert
- name: serving-cert
secret:
secretName: catalog-operator-serving-cert
containers:
- name: catalog-operator
volumeMounts:
- name: srv-cert
mountPath: "/srv-cert"
readOnly: true
- name: profile-collector-cert
mountPath: "/profile-collector-cert"
readOnly: true
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
command:
- /bin/catalog
args:
- '-namespace'
- openshift-marketplace
- -configmapServerImage=quay.io/operator-framework/configmap-operator-registry:latest
- -opmImage=quay.io/operator-framework/configmap-operator-registry:latest
- -util-image
- quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
- -writeStatusName
- operator-lifecycle-manager-catalog
- -tls-cert
- /var/run/secrets/serving-cert/tls.crt
- -tls-key
- /var/run/secrets/serving-cert/tls.key
- --tls-cert
- /srv-cert/tls.crt
- --tls-key
- /srv-cert/tls.key
- --client-ca
- /profile-collector-cert/tls.crt
image: quay.io/operator-framework/olm@sha256:de396b540b82219812061d0d753440d5655250c621c753ed1dc67d6154741607
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
- containerPort: 8081
- containerPort: 8443
name: metrics
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
readinessProbe:
httpGet:
path: /healthz
port: 8080
port: 8443
scheme: HTTPS
terminationMessagePolicy: FallbackToLogsOnError
resources:
requests:
Expand All @@ -62,9 +84,6 @@ spec:
env:
- name: RELEASE_VERSION
value: "0.0.1-snapshot"
volumeMounts:
- mountPath: /var/run/secrets/serving-cert
name: serving-cert
nodeSelector:
kubernetes.io/os: linux
node-role.kubernetes.io/master: ""
Expand All @@ -81,7 +100,3 @@ spec:
operator: Exists
tolerationSeconds: 120
priorityClassName: system-cluster-critical
volumes:
- name: serving-cert
secret:
secretName: catalog-operator-serving-cert
3 changes: 3 additions & 0 deletions staging/api/pkg/operators/v1alpha1/subscription_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ const (

// SubscriptionInstallPlanFailed indicates that the installation of a Subscription's InstallPlan has failed.
SubscriptionInstallPlanFailed SubscriptionConditionType = "InstallPlanFailed"

// SubscriptionResolutionFailed indicates that the dependency resolution in the namespace in which the subscription is created has failed
SubscriptionResolutionFailed SubscriptionConditionType = "ResolutionFailed"
)

const (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '~1.16'
- run: |
sudo apt-get install conntrack
curl -sLo minikube "$(curl -sL https://api.github.com/repos/kubernetes/minikube/releases/latest | jq -r '[.assets[] | select(.name == "minikube-linux-amd64")] | first | .browser_download_url')"
Expand All @@ -34,6 +37,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '~1.16'
- run: |
curl -sLo kind "$(curl -sL https://api.github.com/repos/kubernetes-sigs/kind/releases/latest | jq -r '[.assets[] | select(.name == "kind-linux-amd64")] | first | .browser_download_url')"
chmod +x kind
Expand Down
Loading