github.com/darkowlzz/helm@v2.5.1-0.20171213183701-6707fe0468d4+incompatible/_proto/hapi/release/hook.proto (about) 1 // Copyright 2016 The Kubernetes Authors All rights reserved. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 syntax = "proto3"; 16 17 package hapi.release; 18 19 import "google/protobuf/timestamp.proto"; 20 21 option go_package = "release"; 22 23 // Hook defines a hook object. 24 message Hook { 25 enum Event { 26 UNKNOWN = 0; 27 PRE_INSTALL = 1; 28 POST_INSTALL = 2; 29 PRE_DELETE = 3; 30 POST_DELETE = 4; 31 PRE_UPGRADE = 5; 32 POST_UPGRADE = 6; 33 PRE_ROLLBACK = 7; 34 POST_ROLLBACK = 8; 35 RELEASE_TEST_SUCCESS = 9; 36 RELEASE_TEST_FAILURE = 10; 37 } 38 enum DeletePolicy { 39 SUCCEEDED = 0; 40 FAILED = 1; 41 } 42 string name = 1; 43 // Kind is the Kubernetes kind. 44 string kind = 2; 45 // Path is the chart-relative path to the template. 46 string path = 3; 47 // Manifest is the manifest contents. 48 string manifest = 4; 49 // Events are the events that this hook fires on. 50 repeated Event events = 5; 51 // LastRun indicates the date/time this was last run. 52 google.protobuf.Timestamp last_run = 6; 53 // Weight indicates the sort order for execution among similar Hook type 54 int32 weight = 7; 55 // DeletePolicies are the policies that indicate when to delete the hook 56 repeated DeletePolicy delete_policies = 8; 57 }