diff --git a/config/metac.yaml b/config/metac.yaml index b26488a..74158e9 100644 --- a/config/metac.yaml +++ b/config/metac.yaml @@ -6,7 +6,7 @@ metadata: spec: watch: # kind: Recipe custom resource is watched - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 resource: recipes hooks: sync: @@ -21,7 +21,7 @@ metadata: spec: watch: # kind: HTTP custom resource is watched - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 resource: https hooks: sync: diff --git a/controller/recipe/reconciler.go b/controller/recipe/reconciler.go index 39ff24e..7d9bb3b 100644 --- a/controller/recipe/reconciler.go +++ b/controller/recipe/reconciler.go @@ -80,7 +80,7 @@ func (r *Reconciler) setRecipeStatusAsError() { "reason": r.Err.Error(), } r.HookResponse.Labels = map[string]*string{ - "recipe.dope.metacontroller.io/phase": k8s.StringPtr("Error"), + "recipe.dope.mayadata.io/phase": k8s.StringPtr("Error"), } } @@ -94,7 +94,7 @@ func (r *Reconciler) setRecipeStatus() { "taskListStatus": r.RecipeStatus.TaskListStatus, } r.HookResponse.Labels = map[string]*string{ - "recipe.dope.metacontroller.io/phase": pointer.StringPtr(string(r.RecipeStatus.Phase)), + "recipe.dope.mayadata.io/phase": pointer.StringPtr(string(r.RecipeStatus.Phase)), } if r.ObservedRecipe != nil && r.ObservedRecipe.Spec.Refresh.ResyncAfterSeconds != nil { diff --git a/manifests/crd.yaml b/manifests/crd.yaml index 4bce412..7b1933b 100644 --- a/manifests/crd.yaml +++ b/manifests/crd.yaml @@ -3,9 +3,9 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: annotations: - name: recipes.dope.metacontroller.io + name: recipes.dope.mayadata.io spec: - group: dope.metacontroller.io + group: dope.mayadata.io names: kind: Recipe listKind: RecipeList @@ -26,9 +26,9 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: annotations: - name: https.dope.metacontroller.io + name: https.dope.mayadata.io spec: - group: dope.metacontroller.io + group: dope.mayadata.io names: kind: HTTP listKind: HTTPList diff --git a/test/e2e/ci.yaml b/test/e2e/ci.yaml index 69b62f9..6aa865d 100644 --- a/test/e2e/ci.yaml +++ b/test/e2e/ci.yaml @@ -24,9 +24,9 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: annotations: - name: recipes.dope.metacontroller.io + name: recipes.dope.mayadata.io spec: - group: dope.metacontroller.io + group: dope.mayadata.io names: kind: Recipe listKind: RecipeList @@ -49,9 +49,9 @@ apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: annotations: - name: https.dope.metacontroller.io + name: https.dope.mayadata.io spec: - group: dope.metacontroller.io + group: dope.mayadata.io names: kind: HTTP listKind: HTTPList diff --git a/test/e2e/inference.yaml b/test/e2e/inference.yaml index 1b0d0de..17ebd47 100644 --- a/test/e2e/inference.yaml +++ b/test/e2e/inference.yaml @@ -5,13 +5,13 @@ # NOTE: # This Recipe evaluates number of successful, failed & # errored Recipes -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: inference namespace: d-testing labels: - d-testing.dope.metacontroller.io/internal: "true" + d-testing.dope.mayadata.io/internal: "true" spec: # This will delay the start of execution of this Recipe based # on the specified time @@ -41,9 +41,9 @@ spec: checks: - labelSelector: matchLabels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" matchLabelExpressions: - - key: recipe.dope.metacontroller.io/phase + - key: recipe.dope.mayadata.io/phase operator: Exists when: ListCountEquals count: 10 @@ -54,12 +54,12 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" - recipe.dope.metacontroller.io/phase: Completed + d-testing.dope.mayadata.io/inference: "true" + recipe.dope.mayadata.io/phase: Completed stateCheck: stateCheckOperator: ListCountEquals # These many Recipes should succeed @@ -69,12 +69,12 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" - recipe.dope.metacontroller.io/phase: Failed + d-testing.dope.mayadata.io/inference: "true" + recipe.dope.mayadata.io/phase: Failed stateCheck: stateCheckOperator: ListCountEquals # These many Recipes should fail @@ -84,12 +84,12 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" - recipe.dope.metacontroller.io/phase: Error + d-testing.dope.mayadata.io/inference: "true" + recipe.dope.mayadata.io/phase: Error stateCheck: stateCheckOperator: ListCountEquals # These many Recipes should error out diff --git a/test/e2e/suite.sh b/test/e2e/suite.sh index 01594d5..23162e2 100755 --- a/test/e2e/suite.sh +++ b/test/e2e/suite.sh @@ -42,7 +42,7 @@ echo "--------------------------" ctrlbin="dope" # group that defines the Recipe custom resource -group="recipes.dope.metacontroller.io" +group="recipes.dope.mayadata.io" # Namespace used by inference Recipe custom resource ns="d-testing" diff --git a/test/experiments/assert-deprecated-daemonset.yaml b/test/experiments/assert-deprecated-daemonset.yaml index 8fa57bb..ca3fce9 100644 --- a/test/experiments/assert-deprecated-daemonset.yaml +++ b/test/experiments/assert-deprecated-daemonset.yaml @@ -1,10 +1,10 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-absence-of-deprecated-daemonsets namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: - name: assert-daemonset-with-extensions-v1beta1 diff --git a/test/experiments/assert-github-search-invalid-method-negative.yaml b/test/experiments/assert-github-search-invalid-method-negative.yaml index 1db2c14..fd6b5df 100644 --- a/test/experiments/assert-github-search-invalid-method-negative.yaml +++ b/test/experiments/assert-github-search-invalid-method-negative.yaml @@ -1,17 +1,17 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-github-search-with-invalid-method-neg namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: # Start by applying this HTTP resource - name: apply-github-search-with-invalid-method-neg apply: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search-with-invalid-method-neg @@ -24,7 +24,7 @@ spec: - name: assert-github-search-with-invalid-method-neg assert: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search-with-invalid-method-neg diff --git a/test/experiments/assert-github-search-invalid-method.yaml b/test/experiments/assert-github-search-invalid-method.yaml index 1db7586..30fcf2a 100644 --- a/test/experiments/assert-github-search-invalid-method.yaml +++ b/test/experiments/assert-github-search-invalid-method.yaml @@ -1,17 +1,17 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-github-search-with-invalid-method namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: # Start by applying this HTTP custom resource - name: apply-github-search-with-invalid-method apply: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search-with-invalid-method @@ -24,7 +24,7 @@ spec: - name: assert-github-search-with-invalid-method assert: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search-with-invalid-method diff --git a/test/experiments/assert-github-search-neg.yaml b/test/experiments/assert-github-search-neg.yaml index 98466e5..7fcea94 100644 --- a/test/experiments/assert-github-search-neg.yaml +++ b/test/experiments/assert-github-search-neg.yaml @@ -1,10 +1,10 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-github-search-neg namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: # Start by applying this HTTP custom resource @@ -16,7 +16,7 @@ spec: - name: apply-github-search-neg apply: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search-neg @@ -30,7 +30,7 @@ spec: - name: assert-github-search-neg assert: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search-neg diff --git a/test/experiments/assert-github-search.yaml b/test/experiments/assert-github-search.yaml index 3a7bcb0..7d42ddb 100644 --- a/test/experiments/assert-github-search.yaml +++ b/test/experiments/assert-github-search.yaml @@ -1,10 +1,10 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-github-search namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: # Start by applying this HTTP custom resource @@ -16,7 +16,7 @@ spec: - name: apply-github-search apply: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search @@ -29,7 +29,7 @@ spec: - name: assert-github-search assert: state: - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 kind: HTTP metadata: name: github-search diff --git a/test/experiments/assert-job-teardown.yaml b/test/experiments/assert-job-teardown.yaml index 9b1e435..41b791f 100644 --- a/test/experiments/assert-job-teardown.yaml +++ b/test/experiments/assert-job-teardown.yaml @@ -1,17 +1,17 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-recipe-teardown namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: - name: create-a-recipe-with-teardown-enabled create: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: name: recipe-with-teardown-enabled namespace: d-testing @@ -38,7 +38,7 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: name: recipe-with-teardown-enabled namespace: d-testing diff --git a/test/experiments/assert-lock-persists-for-job-that-runs-once.yaml b/test/experiments/assert-lock-persists-for-job-that-runs-once.yaml index 5d802a4..eaf8bca 100644 --- a/test/experiments/assert-lock-persists-for-job-that-runs-once.yaml +++ b/test/experiments/assert-lock-persists-for-job-that-runs-once.yaml @@ -1,17 +1,17 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-lock-persists-for-recipe-that-runs-once namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: - name: create-a-recipe-that-runs-only-once create: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: name: recipe-that-runs-only-once namespace: d-testing @@ -28,7 +28,7 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: name: recipe-that-runs-only-once namespace: d-testing diff --git a/test/experiments/create-assert-fifty-configmaps-elapsedtime.yaml b/test/experiments/create-assert-fifty-configmaps-elapsedtime.yaml index fde9f4e..be4cfe2 100644 --- a/test/experiments/create-assert-fifty-configmaps-elapsedtime.yaml +++ b/test/experiments/create-assert-fifty-configmaps-elapsedtime.yaml @@ -1,4 +1,4 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: create-fifty-configmaps-in-time @@ -33,13 +33,13 @@ spec: namespace: d-testing replicas: 50 --- -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: assert-creation-of-fifty-configmaps-in-time namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: # This will delay the start of execution of this Recipe based # on the specified time @@ -68,7 +68,7 @@ spec: i-create-50-configs: "true" i-am-tested-if-creation-of-configs-happen-in-time: "true" matchLabelExpressions: - - key: recipe.dope.metacontroller.io/phase + - key: recipe.dope.mayadata.io/phase operator: Exists when: ListCountEquals count: 1 @@ -77,7 +77,7 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: name: create-fifty-configmaps-in-time namespace: d-testing @@ -87,7 +87,7 @@ spec: assert: state: kind: Recipe - apiVersion: dope.metacontroller.io/v1 + apiVersion: dope.mayadata.io/v1 metadata: name: create-fifty-configmaps-in-time namespace: d-testing diff --git a/test/experiments/create-assert-fifty-configmaps.yaml b/test/experiments/create-assert-fifty-configmaps.yaml index f47650d..d640e7c 100644 --- a/test/experiments/create-assert-fifty-configmaps.yaml +++ b/test/experiments/create-assert-fifty-configmaps.yaml @@ -1,10 +1,10 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: create-and-assert-fifty-configmaps namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: - name: create-fifty-configmaps diff --git a/test/experiments/crud-ops-on-pod.yaml b/test/experiments/crud-ops-on-pod.yaml index d95610f..5eb0535 100644 --- a/test/experiments/crud-ops-on-pod.yaml +++ b/test/experiments/crud-ops-on-pod.yaml @@ -1,10 +1,10 @@ -apiVersion: dope.metacontroller.io/v1 +apiVersion: dope.mayadata.io/v1 kind: Recipe metadata: name: crud-ops-on-pod namespace: d-testing labels: - d-testing.dope.metacontroller.io/inference: "true" + d-testing.dope.mayadata.io/inference: "true" spec: tasks: - name: apply-a-namespace diff --git a/types/gvk/gvk.go b/types/gvk/gvk.go index 838e3bb..8b14250 100644 --- a/types/gvk/gvk.go +++ b/types/gvk/gvk.go @@ -32,7 +32,7 @@ const ( KindRecipe string = "Recipe" // APIVersionRecipe represent Recipe custom resource's api version - APIVersionRecipe string = "dope.metacontroller.io/v1" + APIVersionRecipe string = "dope.mayadata.io/v1" ) const (