github.com/koderover/helm@v2.17.0+incompatible/_proto/hapi/release/hook.proto (about)

     1  // Copyright The Helm Authors.
     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          CRD_INSTALL = 11;
    38  	}
    39  	enum DeletePolicy {
    40  	    SUCCEEDED = 0;
    41  	    FAILED = 1;
    42  	    BEFORE_HOOK_CREATION = 2;
    43  	}
    44  	string name = 1;
    45  	// Kind is the Kubernetes kind.
    46  	string kind = 2;
    47  	// Path is the chart-relative path to the template.
    48  	string path = 3;
    49  	// Manifest is the manifest contents.
    50  	string manifest = 4;
    51  	// Events are the events that this hook fires on.
    52  	repeated Event events = 5;
    53  	// LastRun indicates the date/time this was last run.
    54  	google.protobuf.Timestamp last_run = 6;
    55  	// Weight indicates the sort order for execution among similar Hook type
    56  	int32 weight = 7;
    57  	// DeletePolicies are the policies that indicate when to delete the hook
    58  	repeated DeletePolicy delete_policies = 8;
    59  	// DeleteTimeout indicates how long to wait for a resource to be deleted before timing out
    60  	int64 delete_timeout = 9;
    61  }