mirror of https://github.com/alibaba/SREWorks.git
fix: plugin add runtime
This commit is contained in:
parent
b0bb7ad458
commit
c11890bbb7
|
@ -4,7 +4,7 @@ metadata:
|
||||||
name: node-selector.trait.sreworks.io/v1beta1
|
name: node-selector.trait.sreworks.io/v1beta1
|
||||||
annotations:
|
annotations:
|
||||||
definition.oam.dev/description: "The Node Selector"
|
definition.oam.dev/description: "The Node Selector"
|
||||||
definition.oam.dev/version: "1.0.1"
|
definition.oam.dev/version: "1.0.3"
|
||||||
definition.oam.dev/tags: "key=value"
|
definition.oam.dev/tags: "key=value"
|
||||||
spec:
|
spec:
|
||||||
appliesToWorkloads:
|
appliesToWorkloads:
|
||||||
|
@ -16,7 +16,7 @@ spec:
|
||||||
path: dynamicscripts/TraitNodeSelectorCommon.groovy
|
path: dynamicscripts/TraitNodeSelectorCommon.groovy
|
||||||
name: "node-selector.trait.sreworks.io/v1beta1"
|
name: "node-selector.trait.sreworks.io/v1beta1"
|
||||||
properties:
|
properties:
|
||||||
runtime: post
|
runtime: pre
|
||||||
definitionSchema:
|
definitionSchema:
|
||||||
name: "node-selector.trait.schema.sreworks.io"
|
name: "node-selector.trait.schema.sreworks.io"
|
||||||
jsonSchema: {}
|
jsonSchema: {}
|
||||||
|
|
|
@ -35,6 +35,6 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"toFieldPath": "spec.selector"
|
"toFieldPath": "spec.nodeSelector"
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue