-
Notifications
You must be signed in to change notification settings - Fork 88
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
Implement devEnvironments.workspacesPodAnnotations to provide annotations to all workspace pods #1862
Conversation
Skipping CI for Draft Pull Request. |
7ba6ad8
to
8fb52b8
Compare
dwoc := &controllerv1alpha1.DevWorkspaceOperatorConfig{} | ||
err = deployContext.ClusterAPI.Client.Get(context.TODO(), types.NamespacedName{Name: devWorkspaceConfigName, Namespace: testCase.cheCluster.Namespace}, dwoc) | ||
assert.NoError(t, err) | ||
assert.Equal(t, testCase.expectedOperatorConfig.Workspace.ImagePullPolicy, dwoc.Config.Workspace.ImagePullPolicy) |
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 think this was intended to check the config annotations?
assert.Equal(t, testCase.expectedOperatorConfig.Workspace.podAnnotations, dwoc.Config.Workspace.podAnnotations)
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.
Thank you, fixed
@@ -5,7 +5,7 @@ go 1.19 | |||
require ( | |||
github.com/che-incubator/kubernetes-image-puller-operator v0.0.0-20210929175054-0128446f5af7 | |||
github.com/devfile/api/v2 v2.2.2 | |||
github.com/devfile/devworkspace-operator v0.25.0 | |||
github.com/devfile/devworkspace-operator v0.29.0 |
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.
Please update DEPENDENCIES.md file with a new DWO version and link to https://clearlydefined.io/
@@ -14,7 +14,7 @@ require ( | |||
github.com/sirupsen/logrus v1.8.1 | |||
github.com/stretchr/testify v1.8.4 | |||
go.uber.org/zap v1.24.0 | |||
golang.org/x/net v0.19.0 | |||
golang.org/x/net v0.23.0 |
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.
Please update DEPENDENCIES.md file to update the version of the following libs (no links to https://clearlydefined.io/ are requested)
- golang.org/x/net v0.23.0
- golang.org/x/sys v0.18.0
- golang.org/x/term v0.18.0
api/v2/checluster_types.go
Outdated
@@ -189,6 +189,9 @@ type CheClusterDevEnvironments struct { | |||
// +optional | |||
// +kubebuilder:validation:Enum=Always;IfNotPresent;Never | |||
ImagePullPolicy corev1.PullPolicy `json:"imagePullPolicy,omitempty"` | |||
// Annotations defines additional annotations for workspace pods. | |||
// +optional | |||
Annotations map[string]string `json:"annotations,omitempty"` |
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.
What do you think?
Annotations map[string]string `json:"annotations,omitempty"` | |
WorkspacesPodAnnotations map[string]string `json:"workspacesPodAnnotations,omitempty"` |
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.
Sounds good, updated
Thank you for the review @tolusha , WDYT? |
/test v14-devworkspace-happy-path |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dkwon17, ibuziuk, tolusha The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: dkwon17 <[email protected]>
941d418
to
0a1cc70
Compare
New changes are detected. LGTM label has been removed. |
I've squashed the commits, merging soon |
@dkwon17: The following test 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-sigs/prow repository. I understand the commands that are listed here. |
Signed-off-by: dkwon17 <[email protected]>
0a1cc70
to
db792ec
Compare
Build 3.16 :: sync-to-downstream_3.x/6996: Console, Changes, Git Data |
Build 3.16 :: get-sources-rhpkg-container-build_3.x/6950: devspaces-operator-bundle : 3.x :: Failed in 62253699 : BREW:BUILD/STATUS:UNKNOWN |
Build 3.16 :: operator-bundle_3.x/3134: Console, Changes, Git Data |
Build 3.16 :: sync-to-downstream_3.x/6997: Console, Changes, Git Data |
Build 3.16 :: get-sources-rhpkg-container-build_3.x/6952: devspaces-operator-bundle : 3.x :: Failed in 62253993 : BREW:BUILD/STATUS:UNKNOWN |
Build 3.15 :: operator-bundle_3.15/11: Console, Changes, Git Data |
Build 3.15 :: sync-to-downstream_3.15/25: Console, Changes, Git Data |
Build 3.16 :: operator-bundle_3.x/3135: Console, Changes, Git Data |
Build 3.16 :: sync-to-downstream_3.x/6998: Console, Changes, Git Data |
Build 3.16 :: get-sources-rhpkg-container-build_3.x/6954: devspaces-operator-bundle : 3.x :: Failed in 62255856 : BREW:BUILD/STATUS:UNKNOWN |
Build 3.15 :: operator-bundle_3.15/12: Console, Changes, Git Data |
Build 3.15 :: sync-to-downstream_3.15/26: Console, Changes, Git Data |
Build 3.16 :: operator-bundle_3.x/3136: Console, Changes, Git Data |
Build 3.16 :: sync-to-downstream_3.x/7000: Console, Changes, Git Data |
Build 3.16 :: get-sources-rhpkg-container-build_3.x/6956: devspaces-operator-bundle : 3.x :: Failed in 62258212 : BREW:BUILD/STATUS:UNKNOWN |
Build 3.16 :: operator-bundle_3.x/3137: Console, Changes, Git Data |
Build 3.16 :: sync-to-downstream_3.x/7001: Console, Changes, Git Data |
Build 3.16 :: get-sources-rhpkg-container-build_3.x/6957: devspaces-operator-bundle : 3.x :: Failed in 62258381 : BREW:BUILD/STATUS:UNKNOWN |
Build 3.15 :: operator-bundle_3.15/13: Console, Changes, Git Data |
Build 3.15 :: sync-to-downstream_3.15/27: Console, Changes, Git Data |
Build 3.16 :: operator-bundle_3.x/3138: Console, Changes, Git Data |
Build 3.16 :: sync-to-downstream_3.x/7002: Console, Changes, Git Data |
Build 3.16 :: get-sources-rhpkg-container-build_3.x/6958: devspaces-operator-bundle : 3.x :: Failed in 62258967 : BREW:BUILD/STATUS:UNKNOWN |
This PR is a draft PR for now because it requires the latest unreleased version of the devworkspace-operator
What does this PR do?
This PR implements the
devEnvironments.workspacesPodAnnotations
field in the CheCluster CR to provide annotations to all workspace podsScreenshot/screencast of this PR
What issues does this PR fix or reference?
Related to:
https://issues.redhat.com/browse/CRW-6550
eclipse-che/che#22809
How to test this PR?
hello: world
:OpenShift
on Minikube
hello: world
annotationdevEnvironments.workspacesPodAnnotations
field in the CheCluster CR and restart the workspace.hello: world
annotation is removedPR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.