Skip to content

Commit cbbdbef

Browse files
committed
UPSTREAM: <carry>: Add OpenShift tooling, images, configs and docs
1 parent a9e78a0 commit cbbdbef

File tree

4 files changed

+37
-6
lines changed

4 files changed

+37
-6
lines changed

hack/make-rules/test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ kube::test::find_go_packages() {
5252
-e '^k8s.io/kubernetes/test/e2e$' \
5353
-e '^k8s.io/kubernetes/test/e2e_node(/.*)?$' \
5454
-e '^k8s.io/kubernetes/test/e2e_kubeadm(/.*)?$' \
55-
-e '^k8s.io/.*/test/integration(/.*)?$'
55+
-e '^k8s.io/.*/test/integration(/.*)?$' \
56+
-e '^k8s.io/kubernetes/openshift-hack/e2e(/.*)?$'
5657
)
5758
}
5859

openshift-hack/e2e/annotate/rules.go

+31-5
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,22 @@ var (
1111
"[Disabled:Alpha]": {
1212
`\[Feature:StorageVersionAPI\]`,
1313
`\[Feature:InPlacePodVerticalScaling\]`,
14-
`\[Feature:RecoverVolumeExpansionFailure\]`,
15-
`\[Feature:WatchList\]`,
1614
`\[Feature:ServiceCIDRs\]`,
1715
`\[Feature:ClusterTrustBundle\]`,
1816
`\[Feature:SELinuxMount\]`,
1917
`\[FeatureGate:SELinuxMount\]`,
20-
`\[Feature:RelaxedEnvironmentVariableValidation\]`,
2118
`\[Feature:UserNamespacesPodSecurityStandards\]`,
2219
`\[Feature:UserNamespacesSupport\]`, // disabled Beta
2320
`\[Feature:DynamicResourceAllocation\]`,
2421
`\[Feature:VolumeAttributesClass\]`, // disabled Beta
22+
`\[sig-cli\] Kubectl client Kubectl prune with applyset should apply and prune objects`, // Alpha feature since k8s 1.27
23+
// 4.19
24+
`\[Feature:PodLevelResources\]`,
25+
`\[Feature:SchedulerAsyncPreemption\]`,
26+
`\[Feature:RelaxedDNSSearchValidation\]`,
27+
`\[Feature:PodLogsQuerySplitStreams\]`,
28+
`\[Feature:PodLifecycleSleepActionAllowZero\]`,
29+
`\[Feature:volumegroupsnapshot\]`,
2530
},
2631
// tests for features that are not implemented in openshift
2732
"[Disabled:Unimplemented]": {
@@ -158,11 +163,32 @@ var (
158163
"[Disabled:RebaseInProgress]": {
159164
// https://issues.redhat.com/browse/OCPBUGS-7297
160165
`DNS HostNetwork should resolve DNS of partial qualified names for services on hostNetwork pods with dnsPolicy`,
161-
`\[sig-network\] Connectivity Pod Lifecycle should be able to connect to other Pod from a terminating Pod`, // TODO(network): simple test in k8s 1.27, needs investigation
162-
`\[sig-cli\] Kubectl client Kubectl prune with applyset should apply and prune objects`, // TODO(workloads): alpha feature in k8s 1.27. It's failing with `error: unknown flag: --applyset`. Needs investigation
166+
167+
// https://issues.redhat.com/browse/OCPBUGS-45275
168+
`\[sig-network\] Connectivity Pod Lifecycle should be able to connect to other Pod from a terminating Pod`,
163169

164170
// https://issues.redhat.com/browse/OCPBUGS-17194
165171
`\[sig-node\] ImageCredentialProvider \[Feature:KubeletCredentialProviders\] should be able to create pod with image credentials fetched from external credential provider`,
172+
173+
// https://issues.redhat.com/browse/OCPBUGS-45214
174+
// Even though this feature is not GA in k/k, it will be GA in OCP 4.19, so we should fix it and unskip this test
175+
`\[Feature:volumegroupsnapshot\] VolumeGroupSnapshottable should create snapshots for multiple volumes in a pod`,
176+
177+
// https://issues.redhat.com/browse/OCPBUGS-45220
178+
// `\[sig-api-machinery\] API Streaming`,
179+
180+
// https://issues.redhat.com/browse/OCPBUGS-45273
181+
`\[sig-network\] Services should implement NodePort and HealthCheckNodePort correctly when ExternalTrafficPolicy changes`,
182+
183+
// https://issues.redhat.com/browse/OCPBUGS-45273
184+
`\[sig-cli\] Kubectl Port forwarding Shutdown client connection while the remote stream is writing data to the port-forward connection port-forward should keep working after detect broken connection`,
185+
186+
// https://issues.redhat.com/browse/OCPBUGS-45274
187+
// https://github.com/kubernetes/kubernetes/issues/129056
188+
`\[sig-node\] PodRejectionStatus Kubelet should reject pod when the node didn't have enough resource`,
189+
190+
// https://issues.redhat.com/browse/OCPBUGS-45359
191+
`\[Feature:RecoverVolumeExpansionFailure\]`,
166192
},
167193
// tests that may work, but we don't support them
168194
"[Disabled:Unsupported]": {

staging/src/k8s.io/code-generator/examples/hack/verify-codegen.sh

+2
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ else
4343
exit 1
4444
fi
4545

46+
GOFLAGS=-mod=readonly
47+
4648
# smoke test
4749
echo "Smoke testing examples by compiling..."
4850
pushd "${SCRIPT_ROOT}"

staging/src/k8s.io/code-generator/kube_codegen.sh

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ set -o pipefail
2727

2828
KUBE_CODEGEN_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd -P)"
2929

30+
GOFLAGS=-mod=readonly
31+
3032
function kube::codegen::internal::findz() {
3133
# We use `find` rather than `git ls-files` because sometimes external
3234
# projects use this across repos. This is an imperfect wrapper of find,

0 commit comments

Comments
 (0)