Skip to content

Commit

Permalink
fix(gvk): update group from metacontroller.io to mayadata.io (#108)
Browse files Browse the repository at this point in the history
Signed-off-by: AmitKumarDas <[email protected]>
  • Loading branch information
Amit Kumar Das authored Jul 29, 2020
1 parent 7d2d038 commit ebd8afa
Show file tree
Hide file tree
Showing 17 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions config/metac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions controller/recipe/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
}
}

Expand All @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
26 changes: 13 additions & 13 deletions test/e2e/inference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions test/experiments/assert-deprecated-daemonset.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/experiments/assert-github-search-invalid-method.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/experiments/assert-github-search-neg.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/experiments/assert-github-search.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions test/experiments/assert-job-teardown.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
Loading

0 comments on commit ebd8afa

Please sign in to comment.