mirror of https://github.com/hashicorp/consul
upstream some differences from enterprise (#8902)
parent
19abd50412
commit
e113dc0fe2
|
@ -1420,6 +1420,7 @@ func newTestEventServiceHealthRegister(index uint64, nodeNum int, svc string) st
|
||||||
CreateIndex: index,
|
CreateIndex: index,
|
||||||
ModifyIndex: index,
|
ModifyIndex: index,
|
||||||
},
|
},
|
||||||
|
EnterpriseMeta: *structs.DefaultEnterpriseMeta(),
|
||||||
},
|
},
|
||||||
Checks: []*structs.HealthCheck{
|
Checks: []*structs.HealthCheck{
|
||||||
{
|
{
|
||||||
|
@ -1431,6 +1432,7 @@ func newTestEventServiceHealthRegister(index uint64, nodeNum int, svc string) st
|
||||||
CreateIndex: index,
|
CreateIndex: index,
|
||||||
ModifyIndex: index,
|
ModifyIndex: index,
|
||||||
},
|
},
|
||||||
|
EnterpriseMeta: *structs.DefaultEnterpriseMeta(),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Node: node,
|
Node: node,
|
||||||
|
@ -1444,6 +1446,7 @@ func newTestEventServiceHealthRegister(index uint64, nodeNum int, svc string) st
|
||||||
CreateIndex: index,
|
CreateIndex: index,
|
||||||
ModifyIndex: index,
|
ModifyIndex: index,
|
||||||
},
|
},
|
||||||
|
EnterpriseMeta: *structs.DefaultEnterpriseMeta(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -1486,6 +1489,7 @@ func newTestEventServiceHealthDeregister(index uint64, nodeNum int, svc string)
|
||||||
CreateIndex: 10,
|
CreateIndex: 10,
|
||||||
ModifyIndex: 10,
|
ModifyIndex: 10,
|
||||||
},
|
},
|
||||||
|
EnterpriseMeta: *structs.DefaultEnterpriseMeta(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -26,7 +26,7 @@ type Namespace struct {
|
||||||
|
|
||||||
// DeletedAt is the time when the Namespace was marked for deletion
|
// DeletedAt is the time when the Namespace was marked for deletion
|
||||||
// This is nullable so that we can omit if empty when encoding in JSON
|
// This is nullable so that we can omit if empty when encoding in JSON
|
||||||
DeletedAt *time.Time `json:"DeletedAt,omitempty"`
|
DeletedAt *time.Time `json:"DeletedAt,omitempty" alias:"deleted_at"`
|
||||||
|
|
||||||
// CreateIndex is the Raft index at which the Namespace was created
|
// CreateIndex is the Raft index at which the Namespace was created
|
||||||
CreateIndex uint64 `json:"CreateIndex,omitempty"`
|
CreateIndex uint64 `json:"CreateIndex,omitempty"`
|
||||||
|
@ -39,10 +39,10 @@ type Namespace struct {
|
||||||
type NamespaceACLConfig struct {
|
type NamespaceACLConfig struct {
|
||||||
// PolicyDefaults is the list of policies that should be used for the parent authorizer
|
// PolicyDefaults is the list of policies that should be used for the parent authorizer
|
||||||
// of all tokens in the associated namespace.
|
// of all tokens in the associated namespace.
|
||||||
PolicyDefaults []ACLLink `json:"PolicyDefaults"`
|
PolicyDefaults []ACLLink `json:"PolicyDefaults" alias:"policy_defaults"`
|
||||||
// RoleDefaults is the list of roles that should be used for the parent authorizer
|
// RoleDefaults is the list of roles that should be used for the parent authorizer
|
||||||
// of all tokens in the associated namespace.
|
// of all tokens in the associated namespace.
|
||||||
RoleDefaults []ACLLink `json:"RoleDefaults"`
|
RoleDefaults []ACLLink `json:"RoleDefaults" alias:"role_defaults"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Namespaces can be used to manage Namespaces in Consul Enterprise..
|
// Namespaces can be used to manage Namespaces in Consul Enterprise..
|
||||||
|
|
|
@ -76,6 +76,7 @@ function main {
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types"
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/api/annotations.proto=github.com/gogo/googleapis/google/api"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/api/annotations.proto=github.com/gogo/googleapis/google/api"
|
||||||
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types"
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/field_mask.proto=github.com/gogo/protobuf/types"
|
||||||
|
gogo_proto_imp_replace="${gogo_proto_imp_replace},Mgoogle/protobuf/any.proto=github.com/gogo/protobuf/types"
|
||||||
|
|
||||||
local proto_go_path=${proto_path%%.proto}.pb.go
|
local proto_go_path=${proto_path%%.proto}.pb.go
|
||||||
local proto_go_bin_path=${proto_path%%.proto}.pb.binary.go
|
local proto_go_bin_path=${proto_path%%.proto}.pb.binary.go
|
||||||
|
|
Loading…
Reference in New Issue