Visitar URL original
hotfix: e2e test failure on master (#4427) · pulumi/pulumi-kubernetes@a03ff6b · GitHub
Skip to content

Commit a03ff6b

Browse files
hotfix: e2e test failure on master (#4427)
This PR uses a different CRD shape to avoid collision in CI on the prod CI cluster. Fixes #4421. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 27f2e0b commit a03ff6b

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

‎tests/sdk/yaml/helm_release_crd_scope_test.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ func TestHelmReleaseCRDScopeWritesToCache(t *testing.T) {
2020

2121
preview := test.Preview(t)
2222
assert.Contains(t, preview.StdOut, "default/my-crontab",
23-
"CronTab should resolve as namespaced at preview")
23+
"ScopedCronTab should resolve as namespaced at preview")
2424

2525
test.Up(t)
2626

2727
var deployment apitype.DeploymentV3
2828
require.NoError(t, json.Unmarshal(test.ExportStack(t).Deployment, &deployment))
2929
var found bool
3030
for _, r := range deployment.Resources {
31-
if r.Type != "kubernetes:stable.example.com/v1:CronTab" {
31+
if r.Type != "kubernetes:crd-scope.example.com/v1:ScopedCronTab" {
3232
continue
3333
}
3434
found = true
3535
assert.Contains(t, string(r.URN), "default/my-crontab",
36-
"CronTab should be namespaced in state")
36+
"ScopedCronTab should be namespaced in state")
3737
}
38-
assert.True(t, found, "expected a CronTab custom resource in the stack")
38+
assert.True(t, found, "expected a ScopedCronTab custom resource in the stack")
3939
}

‎tests/sdk/yaml/testdata/helm-release-crd-scope/Pulumi.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ resources:
1414
- ${operator}
1515
properties:
1616
objs:
17-
- apiVersion: stable.example.com/v1
18-
kind: CronTab
17+
- apiVersion: crd-scope.example.com/v1
18+
kind: ScopedCronTab
1919
metadata:
2020
name: my-crontab
2121
spec:

‎tests/sdk/yaml/testdata/helm-release-crd-scope/crontab-operator/crds/crontab.yaml‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
apiVersion: apiextensions.k8s.io/v1
22
kind: CustomResourceDefinition
33
metadata:
4-
name: crontabs.stable.example.com
4+
name: scopedcrontabs.crd-scope.example.com
55
spec:
6-
group: stable.example.com
6+
group: crd-scope.example.com
77
scope: Namespaced
88
names:
9-
plural: crontabs
10-
singular: crontab
11-
kind: CronTab
9+
plural: scopedcrontabs
10+
singular: scopedcrontab
11+
kind: ScopedCronTab
12+
listKind: ScopedCronTabList
1213
shortNames:
1314
- ct
1415
versions:

0 commit comments

Comments
 (0)