openstack-helm-infra/daemonjob-controller/templates/composite-controller.yaml
Luna Das 1cfa619097 Remove updateStrategy of childresources of DaemonJobController.
change updateStrategy from Inplace to default onDelete.

Change-Id: Ie85e2ba116ab399c65844e0bb66eecc66f6d9c90
2020-07-31 00:19:16 +05:30

34 lines
1.1 KiB
YAML

{{/*
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{ $groupName := .Values.crds.group_name }}
{{ $groupVersion := .Values.crds.group_version }}
{{ $groupVersionFormat := printf "%s/%s" $groupName $groupVersion }}
apiVersion: metacontroller.k8s.io/v1alpha1
kind: CompositeController
metadata:
name: daemonjob-controller
spec:
generateSelector: true
parentResource:
apiVersion: {{ $groupVersionFormat }}
resource: daemonjobs
childResources:
- apiVersion: apps/v1
resource: daemonsets
hooks:
sync:
webhook:
url: http://daemonjob-controller.metacontroller/sync