plans: Record private data bytes as part of resource change
This allows a provider to retain arbitrary extra data in the plan and make use of it during apply. The contents are not used by Terraform and never shown to the user.
This commit is contained in:
parent
fb57801dfe
commit
dfe0988f10
|
@ -79,6 +79,11 @@ type ResourceInstanceChange struct {
|
||||||
|
|
||||||
// Change is an embedded description of the change.
|
// Change is an embedded description of the change.
|
||||||
Change
|
Change
|
||||||
|
|
||||||
|
// Private allows a provider to stash any extra data that is opaque to
|
||||||
|
// Terraform that relates to this change. Terraform will save this
|
||||||
|
// byte-for-byte and return it to the provider in the apply call.
|
||||||
|
Private []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
// Encode produces a variant of the reciever that has its change values
|
// Encode produces a variant of the reciever that has its change values
|
||||||
|
@ -94,6 +99,7 @@ func (rc *ResourceInstanceChange) Encode(ty cty.Type) (*ResourceInstanceChangeSr
|
||||||
DeposedKey: rc.DeposedKey,
|
DeposedKey: rc.DeposedKey,
|
||||||
ProviderAddr: rc.ProviderAddr,
|
ProviderAddr: rc.ProviderAddr,
|
||||||
ChangeSrc: *cs,
|
ChangeSrc: *cs,
|
||||||
|
Private: rc.Private,
|
||||||
}, err
|
}, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,11 @@ type ResourceInstanceChangeSrc struct {
|
||||||
|
|
||||||
// ChangeSrc is an embedded description of the not-yet-decoded change.
|
// ChangeSrc is an embedded description of the not-yet-decoded change.
|
||||||
ChangeSrc
|
ChangeSrc
|
||||||
|
|
||||||
|
// Private allows a provider to stash any extra data that is opaque to
|
||||||
|
// Terraform that relates to this change. Terraform will save this
|
||||||
|
// byte-for-byte and return it to the provider in the apply call.
|
||||||
|
Private []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decode unmarshals the raw representation of the instance object being
|
// Decode unmarshals the raw representation of the instance object being
|
||||||
|
@ -48,6 +53,7 @@ func (rcs *ResourceInstanceChangeSrc) Decode(ty cty.Type) (*ResourceInstanceChan
|
||||||
DeposedKey: rcs.DeposedKey,
|
DeposedKey: rcs.DeposedKey,
|
||||||
ProviderAddr: rcs.ProviderAddr,
|
ProviderAddr: rcs.ProviderAddr,
|
||||||
Change: *change,
|
Change: *change,
|
||||||
|
Private: rcs.Private,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ func (x Action) String() string {
|
||||||
return proto.EnumName(Action_name, int32(x))
|
return proto.EnumName(Action_name, int32(x))
|
||||||
}
|
}
|
||||||
func (Action) EnumDescriptor() ([]byte, []int) {
|
func (Action) EnumDescriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{0}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResourceInstanceChange_ResourceMode int32
|
type ResourceInstanceChange_ResourceMode int32
|
||||||
|
@ -75,7 +75,7 @@ func (x ResourceInstanceChange_ResourceMode) String() string {
|
||||||
return proto.EnumName(ResourceInstanceChange_ResourceMode_name, int32(x))
|
return proto.EnumName(ResourceInstanceChange_ResourceMode_name, int32(x))
|
||||||
}
|
}
|
||||||
func (ResourceInstanceChange_ResourceMode) EnumDescriptor() ([]byte, []int) {
|
func (ResourceInstanceChange_ResourceMode) EnumDescriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{3, 0}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{3, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Plan is the root message type for the tfplan file
|
// Plan is the root message type for the tfplan file
|
||||||
|
@ -122,7 +122,7 @@ func (m *Plan) Reset() { *m = Plan{} }
|
||||||
func (m *Plan) String() string { return proto.CompactTextString(m) }
|
func (m *Plan) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Plan) ProtoMessage() {}
|
func (*Plan) ProtoMessage() {}
|
||||||
func (*Plan) Descriptor() ([]byte, []int) {
|
func (*Plan) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{0}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{0}
|
||||||
}
|
}
|
||||||
func (m *Plan) XXX_Unmarshal(b []byte) error {
|
func (m *Plan) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_Plan.Unmarshal(m, b)
|
return xxx_messageInfo_Plan.Unmarshal(m, b)
|
||||||
|
@ -212,7 +212,7 @@ func (m *Backend) Reset() { *m = Backend{} }
|
||||||
func (m *Backend) String() string { return proto.CompactTextString(m) }
|
func (m *Backend) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Backend) ProtoMessage() {}
|
func (*Backend) ProtoMessage() {}
|
||||||
func (*Backend) Descriptor() ([]byte, []int) {
|
func (*Backend) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{1}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{1}
|
||||||
}
|
}
|
||||||
func (m *Backend) XXX_Unmarshal(b []byte) error {
|
func (m *Backend) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_Backend.Unmarshal(m, b)
|
return xxx_messageInfo_Backend.Unmarshal(m, b)
|
||||||
|
@ -278,7 +278,7 @@ func (m *Change) Reset() { *m = Change{} }
|
||||||
func (m *Change) String() string { return proto.CompactTextString(m) }
|
func (m *Change) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Change) ProtoMessage() {}
|
func (*Change) ProtoMessage() {}
|
||||||
func (*Change) Descriptor() ([]byte, []int) {
|
func (*Change) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{2}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{2}
|
||||||
}
|
}
|
||||||
func (m *Change) XXX_Unmarshal(b []byte) error {
|
func (m *Change) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_Change.Unmarshal(m, b)
|
return xxx_messageInfo_Change.Unmarshal(m, b)
|
||||||
|
@ -346,11 +346,11 @@ type ResourceInstanceChange struct {
|
||||||
// "replace" and "delete" actions. "no-op" changes are not currently used here
|
// "replace" and "delete" actions. "no-op" changes are not currently used here
|
||||||
// but consumers must accept and discard them to allow for future expansion.
|
// but consumers must accept and discard them to allow for future expansion.
|
||||||
Change *Change `protobuf:"bytes,9,opt,name=change,proto3" json:"change,omitempty"`
|
Change *Change `protobuf:"bytes,9,opt,name=change,proto3" json:"change,omitempty"`
|
||||||
// msgpack representation of an arbitrary object value provided by
|
// raw blob value provided by the provider as additional context for the
|
||||||
// the resource provider as additional context for the change. Must
|
// change. Must be considered an opaque value for any consumer other than
|
||||||
// be considered an opaque value for any consumer other than the
|
// the provider that generated it, and will be returned verbatim to the
|
||||||
// provider that generated it.
|
// provider during the subsequent apply operation.
|
||||||
Private *DynamicValue `protobuf:"bytes,10,opt,name=private,proto3" json:"private,omitempty"`
|
Private []byte `protobuf:"bytes,10,opt,name=private,proto3" json:"private,omitempty"`
|
||||||
// An unordered set of paths that prompted the change action to be
|
// An unordered set of paths that prompted the change action to be
|
||||||
// "replace" rather than "update". Empty for any action other than
|
// "replace" rather than "update". Empty for any action other than
|
||||||
// "replace".
|
// "replace".
|
||||||
|
@ -364,7 +364,7 @@ func (m *ResourceInstanceChange) Reset() { *m = ResourceInstanceChange{}
|
||||||
func (m *ResourceInstanceChange) String() string { return proto.CompactTextString(m) }
|
func (m *ResourceInstanceChange) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ResourceInstanceChange) ProtoMessage() {}
|
func (*ResourceInstanceChange) ProtoMessage() {}
|
||||||
func (*ResourceInstanceChange) Descriptor() ([]byte, []int) {
|
func (*ResourceInstanceChange) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{3}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{3}
|
||||||
}
|
}
|
||||||
func (m *ResourceInstanceChange) XXX_Unmarshal(b []byte) error {
|
func (m *ResourceInstanceChange) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_ResourceInstanceChange.Unmarshal(m, b)
|
return xxx_messageInfo_ResourceInstanceChange.Unmarshal(m, b)
|
||||||
|
@ -468,7 +468,7 @@ func (m *ResourceInstanceChange) GetChange() *Change {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ResourceInstanceChange) GetPrivate() *DynamicValue {
|
func (m *ResourceInstanceChange) GetPrivate() []byte {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.Private
|
return m.Private
|
||||||
}
|
}
|
||||||
|
@ -566,7 +566,7 @@ func (m *OutputChange) Reset() { *m = OutputChange{} }
|
||||||
func (m *OutputChange) String() string { return proto.CompactTextString(m) }
|
func (m *OutputChange) String() string { return proto.CompactTextString(m) }
|
||||||
func (*OutputChange) ProtoMessage() {}
|
func (*OutputChange) ProtoMessage() {}
|
||||||
func (*OutputChange) Descriptor() ([]byte, []int) {
|
func (*OutputChange) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{4}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{4}
|
||||||
}
|
}
|
||||||
func (m *OutputChange) XXX_Unmarshal(b []byte) error {
|
func (m *OutputChange) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_OutputChange.Unmarshal(m, b)
|
return xxx_messageInfo_OutputChange.Unmarshal(m, b)
|
||||||
|
@ -630,7 +630,7 @@ func (m *DynamicValue) Reset() { *m = DynamicValue{} }
|
||||||
func (m *DynamicValue) String() string { return proto.CompactTextString(m) }
|
func (m *DynamicValue) String() string { return proto.CompactTextString(m) }
|
||||||
func (*DynamicValue) ProtoMessage() {}
|
func (*DynamicValue) ProtoMessage() {}
|
||||||
func (*DynamicValue) Descriptor() ([]byte, []int) {
|
func (*DynamicValue) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{5}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{5}
|
||||||
}
|
}
|
||||||
func (m *DynamicValue) XXX_Unmarshal(b []byte) error {
|
func (m *DynamicValue) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_DynamicValue.Unmarshal(m, b)
|
return xxx_messageInfo_DynamicValue.Unmarshal(m, b)
|
||||||
|
@ -676,7 +676,7 @@ func (m *Hash) Reset() { *m = Hash{} }
|
||||||
func (m *Hash) String() string { return proto.CompactTextString(m) }
|
func (m *Hash) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Hash) ProtoMessage() {}
|
func (*Hash) ProtoMessage() {}
|
||||||
func (*Hash) Descriptor() ([]byte, []int) {
|
func (*Hash) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{6}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{6}
|
||||||
}
|
}
|
||||||
func (m *Hash) XXX_Unmarshal(b []byte) error {
|
func (m *Hash) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_Hash.Unmarshal(m, b)
|
return xxx_messageInfo_Hash.Unmarshal(m, b)
|
||||||
|
@ -717,7 +717,7 @@ func (m *Path) Reset() { *m = Path{} }
|
||||||
func (m *Path) String() string { return proto.CompactTextString(m) }
|
func (m *Path) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Path) ProtoMessage() {}
|
func (*Path) ProtoMessage() {}
|
||||||
func (*Path) Descriptor() ([]byte, []int) {
|
func (*Path) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{7}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{7}
|
||||||
}
|
}
|
||||||
func (m *Path) XXX_Unmarshal(b []byte) error {
|
func (m *Path) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_Path.Unmarshal(m, b)
|
return xxx_messageInfo_Path.Unmarshal(m, b)
|
||||||
|
@ -758,7 +758,7 @@ func (m *Path_Step) Reset() { *m = Path_Step{} }
|
||||||
func (m *Path_Step) String() string { return proto.CompactTextString(m) }
|
func (m *Path_Step) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Path_Step) ProtoMessage() {}
|
func (*Path_Step) ProtoMessage() {}
|
||||||
func (*Path_Step) Descriptor() ([]byte, []int) {
|
func (*Path_Step) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_planfile_99d56bc18c7b6e8d, []int{7, 0}
|
return fileDescriptor_planfile_2f8b9a0ae177578e, []int{7, 0}
|
||||||
}
|
}
|
||||||
func (m *Path_Step) XXX_Unmarshal(b []byte) error {
|
func (m *Path_Step) XXX_Unmarshal(b []byte) error {
|
||||||
return xxx_messageInfo_Path_Step.Unmarshal(m, b)
|
return xxx_messageInfo_Path_Step.Unmarshal(m, b)
|
||||||
|
@ -899,64 +899,64 @@ func init() {
|
||||||
proto.RegisterEnum("tfplan.ResourceInstanceChange_ResourceMode", ResourceInstanceChange_ResourceMode_name, ResourceInstanceChange_ResourceMode_value)
|
proto.RegisterEnum("tfplan.ResourceInstanceChange_ResourceMode", ResourceInstanceChange_ResourceMode_name, ResourceInstanceChange_ResourceMode_value)
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { proto.RegisterFile("planfile.proto", fileDescriptor_planfile_99d56bc18c7b6e8d) }
|
func init() { proto.RegisterFile("planfile.proto", fileDescriptor_planfile_2f8b9a0ae177578e) }
|
||||||
|
|
||||||
var fileDescriptor_planfile_99d56bc18c7b6e8d = []byte{
|
var fileDescriptor_planfile_2f8b9a0ae177578e = []byte{
|
||||||
// 883 bytes of a gzipped FileDescriptorProto
|
// 885 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0x6d, 0x6f, 0xe3, 0x44,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x55, 0xdb, 0x6e, 0xe3, 0x36,
|
||||||
0x10, 0x8e, 0x63, 0xe7, 0x6d, 0x92, 0xba, 0xbe, 0x05, 0x9d, 0xac, 0x72, 0x3a, 0x82, 0x25, 0xb8,
|
0x13, 0xb6, 0x2c, 0xf9, 0x34, 0x76, 0x14, 0x2d, 0xff, 0x1f, 0x0b, 0x21, 0x5d, 0x6c, 0x5d, 0x01,
|
||||||
0x70, 0x87, 0x52, 0x29, 0x08, 0xca, 0xc1, 0x07, 0x94, 0xb6, 0x91, 0x5a, 0xdd, 0x4b, 0xa3, 0xa5,
|
0xed, 0xba, 0xbb, 0x85, 0x03, 0xb8, 0x68, 0xd3, 0x6d, 0x2f, 0x0a, 0x27, 0x31, 0x90, 0x60, 0x0f,
|
||||||
0xf4, 0x03, 0x1f, 0x88, 0x36, 0xf6, 0x34, 0xb1, 0xea, 0xd8, 0x66, 0x77, 0x13, 0x94, 0x1f, 0xc4,
|
0x31, 0xd8, 0x6d, 0x2e, 0x7a, 0x51, 0x83, 0x96, 0x26, 0xb6, 0x10, 0x9d, 0x4a, 0xd2, 0x2e, 0xfc,
|
||||||
0xdf, 0x81, 0xbf, 0x84, 0x76, 0xd7, 0x76, 0x52, 0xa9, 0x97, 0x4f, 0xf1, 0x3c, 0x33, 0xfb, 0xec,
|
0x40, 0x7d, 0x88, 0xbe, 0x44, 0x9f, 0xa9, 0x20, 0x29, 0xc9, 0x0e, 0x90, 0xe6, 0xca, 0x9a, 0x6f,
|
||||||
0xcc, 0x33, 0xb3, 0x13, 0x70, 0xf3, 0x84, 0xa5, 0xf7, 0x71, 0x82, 0xc3, 0x9c, 0x67, 0x32, 0x23,
|
0x86, 0x1f, 0x67, 0xbe, 0x99, 0xa1, 0xc1, 0x2d, 0x12, 0x96, 0xdd, 0xc5, 0x09, 0x8e, 0x0b, 0x9e,
|
||||||
0x4d, 0x79, 0xaf, 0x90, 0xe0, 0x5f, 0x07, 0x9c, 0x69, 0xc2, 0x52, 0xe2, 0x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0x2f,
|
0x67, 0xd3, 0x4b, 0xaf, 0xa9, 0xd0, 0x5f, 0xe7, 0x97, 0x0a, 0xb5, 0x55, 0xe3, 0xe8, 0x6c, 0xfe,
|
||||||
0x26, 0x9e, 0xa3, 0x1c, 0x97, 0x93, 0xf7, 0x93, 0xdb, 0x89, 0xd7, 0x38, 0x7f, 0xfb, 0xc7, 0xd9,
|
0x7e, 0x7a, 0x31, 0xf3, 0x1c, 0xe5, 0xb8, 0x9c, 0xbd, 0x9f, 0x7d, 0x9a, 0x79, 0xad, 0xf3, 0xb7,
|
||||||
0x22, 0x96, 0xcb, 0xf5, 0x7c, 0x18, 0x66, 0xab, 0x53, 0xb5, 0x64, 0xe3, 0x30, 0xe3, 0xf9, 0x69,
|
0xbf, 0x9d, 0xad, 0x62, 0xb9, 0xde, 0x2c, 0xc7, 0x61, 0x9e, 0x9e, 0xaa, 0xe7, 0x34, 0x0e, 0x73,
|
||||||
0xb5, 0x8b, 0x4f, 0x55, 0x72, 0xe2, 0x34, 0x4e, 0x25, 0xf2, 0x94, 0x25, 0xda, 0xd4, 0xff, 0x6d,
|
0x5e, 0x9c, 0xd6, 0xaf, 0xee, 0xa9, 0x4a, 0x4e, 0x9c, 0xc6, 0x99, 0x44, 0x9e, 0xb1, 0x44, 0x9b,
|
||||||
0xf3, 0xa6, 0xfe, 0xf9, 0xfe, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3c, 0x04, 0xa1, 0x9e, 0xf4,
|
0xfa, 0x5f, 0x6c, 0xd9, 0xd6, 0x3f, 0xdf, 0xfe, 0x1b, 0x00, 0x00, 0xff, 0xff, 0x9e, 0x41, 0x65,
|
||||||
0x06, 0x00, 0x00,
|
0x5b, 0xde, 0x06, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,11 +131,11 @@ message ResourceInstanceChange {
|
||||||
// but consumers must accept and discard them to allow for future expansion.
|
// but consumers must accept and discard them to allow for future expansion.
|
||||||
Change change = 9;
|
Change change = 9;
|
||||||
|
|
||||||
// msgpack representation of an arbitrary object value provided by
|
// raw blob value provided by the provider as additional context for the
|
||||||
// the resource provider as additional context for the change. Must
|
// change. Must be considered an opaque value for any consumer other than
|
||||||
// be considered an opaque value for any consumer other than the
|
// the provider that generated it, and will be returned verbatim to the
|
||||||
// provider that generated it.
|
// provider during the subsequent apply operation.
|
||||||
DynamicValue private = 10;
|
bytes private = 10;
|
||||||
|
|
||||||
// An unordered set of paths that prompted the change action to be
|
// An unordered set of paths that prompted the change action to be
|
||||||
// "replace" rather than "update". Empty for any action other than
|
// "replace" rather than "update". Empty for any action other than
|
||||||
|
|
|
@ -192,6 +192,10 @@ func resourceChangeFromTfplan(rawChange *planproto.ResourceInstanceChange) (*pla
|
||||||
|
|
||||||
ret.ChangeSrc = *change
|
ret.ChangeSrc = *change
|
||||||
|
|
||||||
|
if len(rawChange.Private) != 0 {
|
||||||
|
ret.Private = rawChange.Private
|
||||||
|
}
|
||||||
|
|
||||||
return ret, nil
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -382,6 +386,10 @@ func resourceChangeToTfplan(change *plans.ResourceInstanceChangeSrc) (*planproto
|
||||||
}
|
}
|
||||||
ret.Change = valChange
|
ret.Change = valChange
|
||||||
|
|
||||||
|
if len(change.Private) > 0 {
|
||||||
|
ret.Private = change.Private
|
||||||
|
}
|
||||||
|
|
||||||
return ret, nil
|
return ret, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue