-
Notifications
You must be signed in to change notification settings - Fork 138
Bug 1948714: IBM Cloud manifest profile patch #643
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,86 @@ | ||
| apiVersion: apps/v1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would you mind giving me some explanation on how this is going to work? I mean, with this extra manifest here isn't CVO going to create two distinct deployments (
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basically for any given installation of openshift only one cluster profile is active. The CVO will only apply manifests that contain an annotation for the active cluster profile. |
||
| kind: Deployment | ||
| metadata: | ||
| annotations: | ||
| config.openshift.io/inject-proxy: cluster-image-registry-operator | ||
| include.release.openshift.io/ibm-cloud-managed: "true" | ||
| name: cluster-image-registry-operator | ||
| namespace: openshift-image-registry | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| name: cluster-image-registry-operator | ||
| template: | ||
| metadata: | ||
| labels: | ||
| name: cluster-image-registry-operator | ||
| spec: | ||
| containers: | ||
| - args: | ||
| - --files=/var/run/configmaps/trusted-ca/tls-ca-bundle.pem | ||
| - --files=/etc/secrets/tls.crt | ||
| - --files=/etc/secrets/tls.key | ||
| env: | ||
| - name: RELEASE_VERSION | ||
| value: 0.0.1-snapshot | ||
| - name: WATCH_NAMESPACE | ||
| valueFrom: | ||
| fieldRef: | ||
| fieldPath: metadata.namespace | ||
| - name: OPERATOR_NAME | ||
| value: cluster-image-registry-operator | ||
| - name: IMAGE | ||
| value: docker.io/openshift/origin-docker-registry:latest | ||
| - name: IMAGE_PRUNER | ||
| value: quay.io/openshift/origin-cli:v4.0 | ||
| image: docker.io/openshift/origin-cluster-image-registry-operator:latest | ||
| imagePullPolicy: IfNotPresent | ||
| name: cluster-image-registry-operator | ||
| ports: | ||
| - containerPort: 60000 | ||
| name: metrics | ||
| resources: | ||
| requests: | ||
| cpu: 10m | ||
| memory: 50Mi | ||
| volumeMounts: | ||
| - mountPath: /var/run/configmaps/trusted-ca/ | ||
| name: trusted-ca | ||
| - mountPath: /etc/secrets | ||
| name: image-registry-operator-tls | ||
| - mountPath: /var/run/secrets/openshift/serviceaccount | ||
| name: bound-sa-token | ||
| readOnly: true | ||
| priorityClassName: system-cluster-critical | ||
| serviceAccountName: cluster-image-registry-operator | ||
| shareProcessNamespace: false | ||
| tolerations: | ||
| - effect: NoSchedule | ||
| key: node-role.kubernetes.io/master | ||
| operator: Exists | ||
| - effect: NoExecute | ||
| key: node.kubernetes.io/unreachable | ||
| operator: Exists | ||
| tolerationSeconds: 120 | ||
| - effect: NoExecute | ||
| key: node.kubernetes.io/not-ready | ||
| operator: Exists | ||
| tolerationSeconds: 120 | ||
| volumes: | ||
| - name: image-registry-operator-tls | ||
| secret: | ||
| secretName: image-registry-operator-tls | ||
| - configMap: | ||
| items: | ||
| - key: ca-bundle.crt | ||
| path: tls-ca-bundle.pem | ||
| name: trusted-ca | ||
| optional: true | ||
| name: trusted-ca | ||
| - name: bound-sa-token | ||
| projected: | ||
| sources: | ||
| - serviceAccountToken: | ||
| audience: openshift | ||
| path: token | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| - op: replace | ||
| path: /metadata/annotations | ||
| value: | ||
| config.openshift.io/inject-proxy: cluster-image-registry-operator | ||
| include.release.openshift.io/ibm-cloud-managed: "true" | ||
| - op: remove | ||
| path: /spec/template/spec/nodeSelector |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any special reason for not going with a newer version? I have noticed here that if it is not set we go for 1.15.2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason I added this here, is that verify previously failed (looks like your CI test is using an older go version):
https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_cluster-image-registry-operator/643/pull-ci-openshift-cluster-image-registry-operator-master-verify/1376950809396252672
Note that this is the minimum version. It's fine to use a newer release.