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
STOR-1037: Add cluster-storage-operator to mgmt. cluster #1748
Conversation
d633962
to
8189970
Compare
✅ Deploy Preview for hypershift-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
- name: POWERVS_BLOCK_CSI_DRIVER_IMAGE | ||
value: quay.io/openshift/origin-powervs-block-csi-driver:latest | ||
- name: HYPERSHIFT_IMAGE | ||
value: tbd |
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 thought we had this - quay.io/openshift/origin-control-plane:latest ?
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.
Fixed
0a5226e
to
8dfc9b6
Compare
/hold |
@@ -802,7 +802,7 @@ func (o HyperShiftOperatorClusterRole) Build() *rbacv1.ClusterRole { | |||
}, | |||
{ | |||
APIGroups: []string{"apps"}, | |||
Resources: []string{"deployments", "statefulsets"}, | |||
Resources: []string{"deployments", "replicasets", "statefulsets"}, |
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.
Note for myself: this will likely require refresh the HO CI role.
|
||
func ClusterStorageOperatorRole(ns string) *rbacv1.Role { | ||
role := &rbacv1.Role{} | ||
role.Name = "cluster-storage-operator-role" |
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.
name is redundant with type "cluster-storage-operator-role" -> "cluster-storage-operator"
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.
Renamed
|
||
func ClusterStorageOperatorRoleBinding(ns string) *rbacv1.RoleBinding { | ||
roleBinding := &rbacv1.RoleBinding{} | ||
roleBinding.Name = "cluster-storage-operator-role" |
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.
cluster-storage-operator-role-> cluster-storage-operator?
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.
Renamed
@@ -0,0 +1,137 @@ | |||
# *** AUTOMATICALLY GENERATED FILE - DO NOT EDIT *** |
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.
can you ref the source? automatically generated by what/how?
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.
Added a README.md
kind: RoleBinding | ||
metadata: | ||
labels: | ||
name: cluster-storage-operator-role |
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.
cluster-storage-operator-role-> cluster-storage-operator?
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.
Renamed
) | ||
|
||
var ( | ||
// map env. variable in CSO Deployment -> key in `images` map (= name of the image in payload). |
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.
Do we have any programatic guarantee that we don't end up with the operator referencing an image as hardcoded in the yaml, e.g. if it's missing here?
Can we unit test it somehow?
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 reworked the env. var replacement into its own file + added an unit test
/label tide/merge-method-squash |
/label px-approved |
/retest |
/test e2e-aws |
/retest |
1 similar comment
/retest |
/retest-required |
/test e2e-aws |
@jsafrane failure is legit.
|
99cf0ab
to
99a5e90
Compare
It will be installed by control-plane-operator in the mgmt cluster.
Right now, the operator needs more permissions that would be necessary, but we need to fix cluster-storage-operator and aws-ebs-csi-driver-operators first.
From guest clusters:
I don't see any nodes created for the guest clusters. |
/retest-required |
@jsafrane: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/approve |
/retest-required |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, jsafrane The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
woot! |
What this PR does / why we need it:
Move cluster-storage-operator + its operands (aws-ebs-csi-driver-operator + AWS EBS CSI driver control plane pods) to HyperShift mgmt. cluster.
cluster-storage-operator must be updated first!
Testing
Update control-plane-operator RBACs:
./hypershift install --hypershift-image=quay.io/jsafrane/hypershift:latest ...
Install a guest cluster:
build openshift/hypershift#1698,openshift/aws-ebs-csi-driver-operator#159,openshift/cluster-storage-operator#XXX
./hypershift create cluster aws --release-image=registry.build02.ci.openshift.org/ci-ln-ww5ihgt/release:latest ...
Checklist