Skip to content

Commit

Permalink
Move customresourcedefinition.yaml back to templates dir (#304)
Browse files Browse the repository at this point in the history
* Move customresourcedefinition.yaml back to templates dir

* Bump to a WaitForDatacenter function with a longer timeout

* Revert a little more

* One more half revert

* Regenerated all-in-one manifests
  • Loading branch information
jimdickinson committed Nov 3, 2020
1 parent c7c159d commit f345931
Show file tree
Hide file tree
Showing 9 changed files with 31,450 additions and 5 deletions.
6,289 changes: 6,289 additions & 0 deletions docs/user/cass-operator-manifests-v1.15.yaml

Large diffs are not rendered by default.

6,289 changes: 6,289 additions & 0 deletions docs/user/cass-operator-manifests-v1.16.yaml

Large diffs are not rendered by default.

6,289 changes: 6,289 additions & 0 deletions docs/user/cass-operator-manifests-v1.17.yaml

Large diffs are not rendered by default.

6,289 changes: 6,289 additions & 0 deletions docs/user/cass-operator-manifests-v1.18.yaml

Large diffs are not rendered by default.

6,289 changes: 6,289 additions & 0 deletions docs/user/cass-operator-manifests-v1.19.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion hack/release/check-chart-sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ diff -u $opDeploy/webhook_configuration.yaml $chartTmpl/validatingwebhookconfig
diff -u $opDeploy/operator.yaml $chartTmpl/deployment.yaml | diff-so-fancy || true
diff -u $opDeploy/webhook_service.yaml $chartTmpl/service.yaml | diff-so-fancy || true
diff -u $opDeploy/webhook_secret.yaml $chartTmpl/secret.yaml | diff-so-fancy || true
diff -u $opDeploy/crds/$crdFilename $chartCrd/customresourcedefinition.yaml | diff-so-fancy || true
diff -u $opDeploy/crds/$crdFilename $chartTmpl/customresourcedefinition.yaml | diff-so-fancy || true
6 changes: 3 additions & 3 deletions mage/operator/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (
genClientImage = "operator-gen-client"
mermaidJsImage = "operator-mermaid-js"
generatedDseDataCentersCrd = "operator/deploy/crds/cassandra.datastax.com_cassandradatacenters_crd.yaml"
helmChartCrd = "charts/cass-operator-chart/crds/customresourcedefinition.yaml"
helmChartCrd = "charts/cass-operator-chart/templates/customresourcedefinition.yaml"
packagePath = "github.com/datastax/cass-operator/operator"
envGitBranch = "MO_BRANCH"
envVersionString = "MO_VERSION"
Expand Down Expand Up @@ -238,7 +238,7 @@ func doSdkGenerate() {

generateK8sAndOpenApi()
postProcessCrd()
patchCrd()
patchCrdToTemplate()
}

func cpCrdToChart() {
Expand All @@ -249,7 +249,7 @@ func cpCrdToChart() {
mageutil.PanicOnError(err)
}

func patchCrd() {
func patchCrdToTemplate() {
shutil.RunVPanic("patch", generatedDseDataCentersCrd, "mage/operator/crd.patch", "-o", helmChartCrd)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/upgrade_operator/upgrade_operator_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ var _ = Describe(testName, func() {
// give the operator a minute to reconcile and update the datacenter
time.Sleep(1 * time.Minute)

ns.WaitForDatacenterReady(dcName)
ns.WaitForDatacenterReadyWithTimeouts(dcName, 800, 60)

// check no longer using old managed-by value
step = "ensure no resources using defunct managed-by value after operator upgrade"
Expand Down

0 comments on commit f345931

Please sign in to comment.