-
Notifications
You must be signed in to change notification settings - Fork 38
OCPBUGS-36364: [release-4.17] Add support for using hardcoded global pull secret for bundle images #201
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
openshift-merge-bot
merged 2 commits into
openshift:release-4.17
from
ankitathomas:pull-secret-hardcoded
Dec 17, 2024
Merged
OCPBUGS-36364: [release-4.17] Add support for using hardcoded global pull secret for bundle images #201
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,16 +1,5 @@ | ||
| # Adds namespace to all resources. | ||
| namespace: openshift-operator-controller | ||
|
|
||
| namePrefix: operator-controller- | ||
|
|
||
| resources: | ||
| - resources/ca_configmap.yaml | ||
| - ../../../../config/base/crd | ||
| - ../../../../config/base/rbac | ||
| - ../../../../config/base/manager | ||
|
|
||
| patches: | ||
| - target: | ||
| kind: Deployment | ||
| name: controller-manager | ||
| path: patches/manager_deployment_ca.yaml | ||
| - olmv1-ns | ||
| - openshift-config |
14 changes: 14 additions & 0 deletions
14
openshift/kustomize/overlays/openshift/olmv1-ns/kustomization.yaml
This file contains hidden or 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,14 @@ | ||
| # Adds namespace to all resources. | ||
| namespace: OPENSHIFT-NAMESPACE | ||
|
|
||
| resources: | ||
| - resources/ca_configmap.yaml | ||
| - ../../../../../config/base/crd | ||
| - ../../../../../config/base/rbac | ||
| - ../../../../../config/base/manager | ||
|
|
||
| patches: | ||
| - target: | ||
| kind: Deployment | ||
| name: controller-manager | ||
| path: patches/manager_deployment_ca.yaml |
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
openshift/kustomize/overlays/openshift/openshift-config/kustomization.yaml
This file contains hidden or 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,6 @@ | ||
| # Adds namespace to all resources. | ||
| namespace: openshift-config | ||
|
|
||
| resources: | ||
| - rbac/operator-controller_manager_role.yaml | ||
| - rbac/operator-controller_manager_role_binding.yaml |
17 changes: 17 additions & 0 deletions
17
.../kustomize/overlays/openshift/openshift-config/rbac/operator-controller_manager_role.yaml
This file contains hidden or 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,17 @@ | ||
| # permissions to do leader election. | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/part-of: olm | ||
| app.kubernetes.io/name: catalogd | ||
| name: manager-role | ||
| rules: | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - secrets | ||
| verbs: | ||
| - get | ||
| - list | ||
| - watch |
15 changes: 15 additions & 0 deletions
15
...ze/overlays/openshift/openshift-config/rbac/operator-controller_manager_role_binding.yaml
This file contains hidden or 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,15 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/part-of: olm | ||
| app.kubernetes.io/name: catalogd | ||
| name: manager-rolebinding | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: Role | ||
| name: manager-role | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: controller-manager | ||
| namespace: OPENSHIFT-NAMESPACE |
18 changes: 18 additions & 0 deletions
18
openshift/manifests/03-role-openshift-config-operator-controller-manager-role.yml
This file contains hidden or 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,18 @@ | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: Role | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/name: catalogd | ||
| app.kubernetes.io/part-of: olm | ||
| name: operator-controller-manager-role | ||
| namespace: openshift-config | ||
| rules: | ||
| - apiGroups: | ||
| - "" | ||
| resources: | ||
| - secrets | ||
| verbs: | ||
| - get | ||
| - list | ||
| - watch |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
...ift/manifests/13-rolebinding-openshift-config-operator-controller-manager-rolebinding.yml
This file contains hidden or 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,17 @@ | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: RoleBinding | ||
| metadata: | ||
| labels: | ||
| app.kubernetes.io/name: catalogd | ||
| app.kubernetes.io/part-of: olm | ||
| name: operator-controller-manager-rolebinding | ||
| namespace: openshift-config | ||
| roleRef: | ||
| apiGroup: rbac.authorization.k8s.io | ||
| kind: Role | ||
| name: operator-controller-manager-role | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| name: operator-controller-controller-manager | ||
| namespace: openshift-operator-controller |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
mainalso hasDefaultLabelSelector: k8slabels.Nothing(),in the cache options. IIRC, that was an important detail.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.
@ankitathomas looks like this needs to fixed?
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.
Yea I'm confused by this configuration here too. @joelanford @ankitathomas could you elaborate on this configuration? Will help in resolving this issue.
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.
I've already pushed the fix on line 145
Besides the DefaultLabelSelector @joelanford pointed out, this is exactly the same as the cacheOptions in use prior to this PR