diff --git a/api/v1/cluster.go b/api/v1/cluster.go index 68fe02110..c10d69e65 100644 --- a/api/v1/cluster.go +++ b/api/v1/cluster.go @@ -85,6 +85,26 @@ type ClusterMetadata struct { HubClusterID string `json:"hubClusterID,omitempty" protobuf:"bytes,10,opt,name=hubClusterID"` CloudServiceAuthMode string `json:"cloudServiceAuthMode,omitempty" protobuf:"bytes,11,opt,name=cloudServiceAuthMode"` Mode ClusterMode `json:"mode,omitempty" protobuf:"bytes,12,opt,name=mode,casttype=ClusterMode"` + License *LicenseInfo `json:"license,omitempty" protobuf:"bytes,13,opt,name=license"` +} + +// +kubebuilder:validation:Enum=appscode;selfhosted +type LicenseDistributor string + +const ( + LicenseDistributorAppsCode LicenseDistributor = "appscode" + LicenseDistributorSelfHosted LicenseDistributor = "selfhosted" +) + +type LicenseInfo struct { + Distributor LicenseDistributor `json:"distributor,omitempty" protobuf:"bytes,1,opt,name=distributor,casttype=LicenseDistributor"` + // Endpoint is the platform-api to acquire licenses from, when Distributor is selfhosted. + Endpoint string `json:"endpoint,omitempty" protobuf:"bytes,2,opt,name=endpoint"` + OrgID string `json:"orgID,omitempty" protobuf:"bytes,3,opt,name=orgID"` +} + +func (l *LicenseInfo) IsEmpty() bool { + return l == nil || (l.Distributor == "" && l.Endpoint == "" && l.OrgID == "") } func (md ClusterMetadata) Manager() string { diff --git a/api/v1/generated.pb.go b/api/v1/generated.pb.go index b70728acd..960901b3a 100644 --- a/api/v1/generated.pb.go +++ b/api/v1/generated.pb.go @@ -325,10 +325,38 @@ func (m *ImageInfo) XXX_DiscardUnknown() { var xxx_messageInfo_ImageInfo proto.InternalMessageInfo +func (m *LicenseInfo) Reset() { *m = LicenseInfo{} } +func (*LicenseInfo) ProtoMessage() {} +func (*LicenseInfo) Descriptor() ([]byte, []int) { + return fileDescriptor_af8e7a11c7a1ccd9, []int{10} +} +func (m *LicenseInfo) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *LicenseInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + b = b[:cap(b)] + n, err := m.MarshalToSizedBuffer(b) + if err != nil { + return nil, err + } + return b[:n], nil +} +func (m *LicenseInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_LicenseInfo.Merge(m, src) +} +func (m *LicenseInfo) XXX_Size() int { + return m.Size() +} +func (m *LicenseInfo) XXX_DiscardUnknown() { + xxx_messageInfo_LicenseInfo.DiscardUnknown(m) +} + +var xxx_messageInfo_LicenseInfo proto.InternalMessageInfo + func (m *Lineage) Reset() { *m = Lineage{} } func (*Lineage) ProtoMessage() {} func (*Lineage) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{10} + return fileDescriptor_af8e7a11c7a1ccd9, []int{11} } func (m *Lineage) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -356,7 +384,7 @@ var xxx_messageInfo_Lineage proto.InternalMessageInfo func (m *ObjectID) Reset() { *m = ObjectID{} } func (*ObjectID) ProtoMessage() {} func (*ObjectID) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{11} + return fileDescriptor_af8e7a11c7a1ccd9, []int{12} } func (m *ObjectID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -384,7 +412,7 @@ var xxx_messageInfo_ObjectID proto.InternalMessageInfo func (m *ObjectInfo) Reset() { *m = ObjectInfo{} } func (*ObjectInfo) ProtoMessage() {} func (*ObjectInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{12} + return fileDescriptor_af8e7a11c7a1ccd9, []int{13} } func (m *ObjectInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -412,7 +440,7 @@ var xxx_messageInfo_ObjectInfo proto.InternalMessageInfo func (m *ObjectReference) Reset() { *m = ObjectReference{} } func (*ObjectReference) ProtoMessage() {} func (*ObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{13} + return fileDescriptor_af8e7a11c7a1ccd9, []int{14} } func (m *ObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -440,7 +468,7 @@ var xxx_messageInfo_ObjectReference proto.InternalMessageInfo func (m *PullCredentials) Reset() { *m = PullCredentials{} } func (*PullCredentials) ProtoMessage() {} func (*PullCredentials) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{14} + return fileDescriptor_af8e7a11c7a1ccd9, []int{15} } func (m *PullCredentials) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -468,7 +496,7 @@ var xxx_messageInfo_PullCredentials proto.InternalMessageInfo func (m *ReadonlyHealthCheckSpec) Reset() { *m = ReadonlyHealthCheckSpec{} } func (*ReadonlyHealthCheckSpec) ProtoMessage() {} func (*ReadonlyHealthCheckSpec) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{15} + return fileDescriptor_af8e7a11c7a1ccd9, []int{16} } func (m *ReadonlyHealthCheckSpec) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -496,7 +524,7 @@ var xxx_messageInfo_ReadonlyHealthCheckSpec proto.InternalMessageInfo func (m *ResourceID) Reset() { *m = ResourceID{} } func (*ResourceID) ProtoMessage() {} func (*ResourceID) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{16} + return fileDescriptor_af8e7a11c7a1ccd9, []int{17} } func (m *ResourceID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -524,7 +552,7 @@ var xxx_messageInfo_ResourceID proto.InternalMessageInfo func (m *TLSConfig) Reset() { *m = TLSConfig{} } func (*TLSConfig) ProtoMessage() {} func (*TLSConfig) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{17} + return fileDescriptor_af8e7a11c7a1ccd9, []int{18} } func (m *TLSConfig) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -552,7 +580,7 @@ var xxx_messageInfo_TLSConfig proto.InternalMessageInfo func (m *TimeOfDay) Reset() { *m = TimeOfDay{} } func (*TimeOfDay) ProtoMessage() {} func (*TimeOfDay) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{18} + return fileDescriptor_af8e7a11c7a1ccd9, []int{19} } func (m *TimeOfDay) XXX_Unmarshal(b []byte) error { return xxx_messageInfo_TimeOfDay.Unmarshal(m, b) @@ -575,7 +603,7 @@ var xxx_messageInfo_TimeOfDay proto.InternalMessageInfo func (m *TypeReference) Reset() { *m = TypeReference{} } func (*TypeReference) ProtoMessage() {} func (*TypeReference) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{19} + return fileDescriptor_af8e7a11c7a1ccd9, []int{20} } func (m *TypeReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -603,7 +631,7 @@ var xxx_messageInfo_TypeReference proto.InternalMessageInfo func (m *TypedObjectReference) Reset() { *m = TypedObjectReference{} } func (*TypedObjectReference) ProtoMessage() {} func (*TypedObjectReference) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{20} + return fileDescriptor_af8e7a11c7a1ccd9, []int{21} } func (m *TypedObjectReference) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -631,7 +659,7 @@ var xxx_messageInfo_TypedObjectReference proto.InternalMessageInfo func (m *X509Subject) Reset() { *m = X509Subject{} } func (*X509Subject) ProtoMessage() {} func (*X509Subject) Descriptor() ([]byte, []int) { - return fileDescriptor_af8e7a11c7a1ccd9, []int{21} + return fileDescriptor_af8e7a11c7a1ccd9, []int{22} } func (m *X509Subject) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -668,6 +696,7 @@ func init() { proto.RegisterType((*Condition)(nil), "kmodules.xyz.client_go.api.v1.Condition") proto.RegisterType((*HealthCheckSpec)(nil), "kmodules.xyz.client_go.api.v1.HealthCheckSpec") proto.RegisterType((*ImageInfo)(nil), "kmodules.xyz.client_go.api.v1.ImageInfo") + proto.RegisterType((*LicenseInfo)(nil), "kmodules.xyz.client_go.api.v1.LicenseInfo") proto.RegisterType((*Lineage)(nil), "kmodules.xyz.client_go.api.v1.Lineage") proto.RegisterType((*ObjectID)(nil), "kmodules.xyz.client_go.api.v1.ObjectID") proto.RegisterType((*ObjectInfo)(nil), "kmodules.xyz.client_go.api.v1.ObjectInfo") @@ -687,141 +716,146 @@ func init() { } var fileDescriptor_af8e7a11c7a1ccd9 = []byte{ - // 2140 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcf, 0x6f, 0x1c, 0x49, - 0xf5, 0x77, 0x67, 0xc6, 0xf1, 0xcc, 0x1b, 0x3b, 0x4e, 0x2a, 0xfe, 0x2a, 0x93, 0x7c, 0x37, 0x1e, - 0xd3, 0x11, 0x51, 0x02, 0x9b, 0x36, 0x8e, 0x12, 0x08, 0x11, 0x08, 0x3c, 0x63, 0x27, 0x99, 0x5d, - 0x3b, 0x1e, 0x6a, 0x1c, 0x76, 0xb5, 0x8b, 0x58, 0x95, 0xbb, 0xcb, 0xe3, 0xc2, 0x3d, 0xdd, 0xad, - 0xaa, 0xee, 0xd9, 0x9d, 0x3d, 0x2d, 0x27, 0x40, 0x5c, 0x96, 0x1b, 0xc7, 0x8d, 0xc4, 0x9f, 0x80, - 0x84, 0xf8, 0x0b, 0xc8, 0x31, 0x5c, 0xd0, 0x4a, 0xa0, 0x11, 0x19, 0xae, 0x88, 0x0b, 0x42, 0x02, - 0x9f, 0x50, 0x55, 0x57, 0xff, 0x98, 0xf6, 0x78, 0xed, 0x85, 0xe5, 0x36, 0xf3, 0xde, 0xe7, 0x7d, - 0xea, 0x55, 0xd5, 0xab, 0xf7, 0xa3, 0xe1, 0xce, 0x61, 0xdf, 0x77, 0x22, 0x97, 0x0a, 0xeb, 0x83, - 0xe1, 0x87, 0xab, 0xb6, 0xcb, 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e, 0x17, 0x00, 0x00, + // 2218 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x59, 0xcd, 0x6f, 0x1c, 0x49, + 0x15, 0x77, 0x7b, 0xc6, 0xf6, 0xcc, 0x1b, 0x3b, 0x4e, 0x2a, 0x46, 0xe9, 0x0d, 0x1b, 0x8f, 0xe9, + 0x15, 0x51, 0x02, 0x9b, 0x31, 0x89, 0x12, 0x08, 0x11, 0x08, 0x3c, 0x33, 0x4e, 0x32, 0x1b, 0x7f, + 0x0c, 0x35, 0x0e, 0xbb, 0xda, 0x45, 0xac, 0xca, 0xdd, 0xe5, 0x71, 0xe1, 0x9e, 0xee, 0x51, 0x55, + 0xf7, 0xec, 0xce, 0x9e, 0x96, 0x13, 0x20, 0x2e, 0xcb, 0x8d, 0xe3, 0x46, 0xe2, 0xca, 0x0d, 0x09, + 0xf1, 0x17, 0x90, 0x03, 0x87, 0x70, 0x41, 0x2b, 0x81, 0x46, 0x64, 0xb8, 0x22, 0x2e, 0x08, 0x09, + 0xf9, 0x84, 0xaa, 0xba, 0xfa, 0x6b, 0x3c, 0x5e, 0x7b, 0x61, 0xb9, 0x4d, 0xbf, 0xf7, 0x7b, 0xbf, + 0xfa, 0x7a, 0x5f, 0x55, 0x03, 0xb7, 0x8e, 0x7a, 0xbe, 0x13, 0xba, 0x54, 0xd4, 0xde, 0x1f, 0x7e, + 0xb0, 0x6e, 0xbb, 0x8c, 0x7a, 0xc1, 0xad, 0xae, 0xbf, 0x4e, 0xfa, 0x6c, 0x7d, 0x70, 0x7b, 0xbd, + 0x4b, 0x3d, 0xca, 0x49, 0x40, 0x9d, 0x5a, 0x9f, 0xfb, 0x81, 0x8f, 0xae, 0x65, 0xe1, 0xb5, 0x08, + 0xfe, 0x6e, 0xd7, 0xaf, 0x91, 0x3e, 0xab, 0x0d, 0x6e, 0x5f, 0xbd, 0xd5, 0x65, 0xc1, 0x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, 0x6e, 0x83, 0x53, 0x87, 0x7a, 0x01, 0x23, + 0xae, 0x30, 0x0b, 0xe7, 0x2a, 0x4e, 0xed, 0xbc, 0x55, 0x54, 0x00, 0x27, 0x84, 0x78, 0x92, 0xdb, + 0xfa, 0xb5, 0x01, 0x95, 0x4c, 0x26, 0x40, 0x4f, 0x54, 0xb5, 0x09, 0x38, 0xdb, 0x0f, 0x03, 0x3f, + 0xbe, 0xaa, 0xdd, 0xcc, 0x54, 0x9b, 0x58, 0x25, 0xaf, 0x3b, 0xda, 0x30, 0x23, 0xc5, 0x59, 0x6b, + 0x99, 0xaf, 0x69, 0x9c, 0xe3, 0x67, 0xf3, 0xf9, 0x3a, 0x49, 0xf0, 0x09, 0x42, 0x6e, 0xba, 0xcf, + 0xbb, 0xad, 0xa6, 0x59, 0xc8, 0x6f, 0xfa, 0xae, 0x14, 0xe2, 0x48, 0x67, 0xfd, 0xcc, 0x80, 0x05, + 0xbd, 0x6b, 0x68, 0x07, 0xe6, 0xec, 0x43, 0xc2, 0x3c, 0xdd, 0x36, 0xde, 0x3c, 0x63, 0x83, 0xa2, + 0x4b, 0x91, 0xca, 0x77, 0x09, 0x77, 0x43, 0xda, 0xe3, 0x88, 0x06, 0xd5, 0x00, 0x6c, 0xdf, 0x0b, + 0x88, 0x8c, 0xcd, 0xb8, 0xe9, 0x53, 0xad, 0x6d, 0x23, 0x91, 0xe2, 0x0c, 0xc2, 0xfa, 0x95, 0x01, + 0x25, 0x4d, 0xda, 0x94, 0xb3, 0xef, 0x72, 0x3f, 0xec, 0x4f, 0xba, 0xcc, 0x23, 0x29, 0xc4, 0x91, + 0x4e, 0x56, 0xfb, 0x23, 0xe6, 0x39, 0x93, 0xd5, 0xfe, 0x09, 0xf3, 0x1c, 0xac, 0x34, 0xf9, 0x9b, + 0x6e, 0xe1, 0x1c, 0x37, 0xdd, 0xb8, 0x81, 0x28, 0x9e, 0xd6, 0x40, 0x58, 0xbf, 0x31, 0x00, 0xd2, + 0xb5, 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0xf1, 0xaa, 0xf1, 0x7c, 0xbc, 0x6a, 0xbc, 0x18, 0xaf, 0x1a, 0x9f, 0x8c, 0x57, 0x8d, + 0xbf, 0x8e, 0x57, 0x8d, 0x8f, 0xfe, 0xb6, 0x3a, 0xf3, 0xf6, 0xb5, 0x4f, 0xfd, 0x87, 0xe0, 0x3f, + 0x03, 0x00, 0x83, 0x5d, 0xa6, 0x72, 0x41, 0x18, 0x00, 0x00, } func (m *CAPIClusterInfo) Marshal() (dAtA []byte, err error) { @@ -1191,6 +1225,18 @@ func (m *ClusterMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.License != nil { + { + size, err := m.License.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintGenerated(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x6a + } i -= len(m.Mode) copy(dAtA[i:], m.Mode) i = encodeVarintGenerated(dAtA, i, uint64(len(m.Mode))) @@ -1410,6 +1456,44 @@ func (m *ImageInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { return len(dAtA) - i, nil } +func (m *LicenseInfo) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *LicenseInfo) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LicenseInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + _ = i + var l int + _ = l + i -= len(m.OrgID) + copy(dAtA[i:], m.OrgID) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.OrgID))) + i-- + dAtA[i] = 0x1a + i -= len(m.Endpoint) + copy(dAtA[i:], m.Endpoint) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Endpoint))) + i-- + dAtA[i] = 0x12 + i -= len(m.Distributor) + copy(dAtA[i:], m.Distributor) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.Distributor))) + i-- + dAtA[i] = 0xa + return len(dAtA) - i, nil +} + func (m *Lineage) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -2111,6 +2195,10 @@ func (m *ClusterMetadata) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) l = len(m.Mode) n += 1 + l + sovGenerated(uint64(l)) + if m.License != nil { + l = m.License.Size() + n += 1 + l + sovGenerated(uint64(l)) + } return n } @@ -2169,6 +2257,21 @@ func (m *ImageInfo) Size() (n int) { return n } +func (m *LicenseInfo) Size() (n int) { + if m == nil { + return 0 + } + var l int + _ = l + l = len(m.Distributor) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.Endpoint) + n += 1 + l + sovGenerated(uint64(l)) + l = len(m.OrgID) + n += 1 + l + sovGenerated(uint64(l)) + return n +} + func (m *Lineage) Size() (n int) { if m == nil { return 0 @@ -2501,6 +2604,7 @@ func (this *ClusterMetadata) String() string { `HubClusterID:` + fmt.Sprintf("%v", this.HubClusterID) + `,`, `CloudServiceAuthMode:` + fmt.Sprintf("%v", this.CloudServiceAuthMode) + `,`, `Mode:` + fmt.Sprintf("%v", this.Mode) + `,`, + `License:` + strings.Replace(this.License.String(), "LicenseInfo", "LicenseInfo", 1) + `,`, `}`, }, "") return s @@ -2549,6 +2653,18 @@ func (this *ImageInfo) String() string { }, "") return s } +func (this *LicenseInfo) String() string { + if this == nil { + return "nil" + } + s := strings.Join([]string{`&LicenseInfo{`, + `Distributor:` + fmt.Sprintf("%v", this.Distributor) + `,`, + `Endpoint:` + fmt.Sprintf("%v", this.Endpoint) + `,`, + `OrgID:` + fmt.Sprintf("%v", this.OrgID) + `,`, + `}`, + }, "") + return s +} func (this *Lineage) String() string { if this == nil { return "nil" @@ -4277,6 +4393,42 @@ func (m *ClusterMetadata) Unmarshal(dAtA []byte) error { } m.Mode = ClusterMode(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 13: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field License", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.License == nil { + m.License = &LicenseInfo{} + } + if err := m.License.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) @@ -4815,6 +4967,152 @@ func (m *ImageInfo) Unmarshal(dAtA []byte) error { } return nil } +func (m *LicenseInfo) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: LicenseInfo: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: LicenseInfo: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Distributor", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Distributor = LicenseDistributor(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Endpoint", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Endpoint = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field OrgID", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.OrgID = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipGenerated(dAtA[iNdEx:]) + if err != nil { + return err + } + if (skippy < 0) || (iNdEx+skippy) < 0 { + return ErrInvalidLengthGenerated + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} func (m *Lineage) Unmarshal(dAtA []byte) error { l := len(dAtA) iNdEx := 0 diff --git a/api/v1/generated.proto b/api/v1/generated.proto index dc1b76e3d..c1730f3c1 100644 --- a/api/v1/generated.proto +++ b/api/v1/generated.proto @@ -55,7 +55,7 @@ message CertificateSpec { // IssuerRef is a reference to a Certificate Issuer. // +optional - optional k8s.io.api.core.v1.TypedLocalObjectReference issuerRef = 2; + optional .k8s.io.api.core.v1.TypedLocalObjectReference issuerRef = 2; // Specifies the k8s secret name that holds the certificates. // Default to --cert. @@ -68,7 +68,7 @@ message CertificateSpec { // Certificate default Duration // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration duration = 5; + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Duration duration = 5; // Certificate renew before expiration duration // @@ -76,7 +76,7 @@ message CertificateSpec { // // +deprecated // +optional - optional k8s.io.apimachinery.pkg.apis.meta.v1.Duration renewBefore = 6; + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Duration renewBefore = 6; // DNSNames is a list of subject alt names to be used on the Certificate. // +optional @@ -147,6 +147,8 @@ message ClusterMetadata { optional string cloudServiceAuthMode = 11; optional string mode = 12; + + optional LicenseInfo license = 13; } // Condition defines an observation of a object operational state. @@ -174,7 +176,7 @@ message Condition { // Last time the condition transitioned from one status to another. // This should be when the underlying condition changed. If that is not known, then using the time when // the API field changed is acceptable. - optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; + optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; // The reason for the condition's last transition in CamelCase. // The specific API may choose whether this field is considered a guaranteed API. @@ -206,6 +208,15 @@ message ImageInfo { optional PullCredentials pullCredentials = 3; } +message LicenseInfo { + optional string distributor = 1; + + // Endpoint is the platform-api to acquire licenses from, when Distributor is selfhosted. + optional string endpoint = 2; + + optional string orgID = 3; +} + message Lineage { repeated ObjectInfo chain = 1; @@ -245,7 +256,7 @@ message PullCredentials { optional string serviceAccountName = 2; - repeated k8s.io.api.core.v1.LocalObjectReference secretRefs = 3; + repeated .k8s.io.api.core.v1.LocalObjectReference secretRefs = 3; } // ReadonlyHealthCheckSpec defines attributes of the health check using only read-only checks @@ -289,7 +300,7 @@ message ResourceID { message TLSConfig { // IssuerRef is a reference to a Certificate Issuer. // +optional - optional k8s.io.api.core.v1.TypedLocalObjectReference issuerRef = 1; + optional .k8s.io.api.core.v1.TypedLocalObjectReference issuerRef = 1; // Certificate provides server and/or client certificate options used by application pods. // These options are passed to a cert-manager Certificate object. diff --git a/api/v1/openapi_generated.go b/api/v1/openapi_generated.go index 26e0f9963..660923946 100644 --- a/api/v1/openapi_generated.go +++ b/api/v1/openapi_generated.go @@ -38,6 +38,7 @@ func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenA "kmodules.xyz/client-go/api/v1.Condition": schema_kmodulesxyz_client_go_api_v1_Condition(ref), "kmodules.xyz/client-go/api/v1.HealthCheckSpec": schema_kmodulesxyz_client_go_api_v1_HealthCheckSpec(ref), "kmodules.xyz/client-go/api/v1.ImageInfo": schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref), + "kmodules.xyz/client-go/api/v1.LicenseInfo": schema_kmodulesxyz_client_go_api_v1_LicenseInfo(ref), "kmodules.xyz/client-go/api/v1.Lineage": schema_kmodulesxyz_client_go_api_v1_Lineage(ref), "kmodules.xyz/client-go/api/v1.ObjectID": schema_kmodulesxyz_client_go_api_v1_ObjectID(ref), "kmodules.xyz/client-go/api/v1.ObjectInfo": schema_kmodulesxyz_client_go_api_v1_ObjectInfo(ref), @@ -432,10 +433,17 @@ func schema_kmodulesxyz_client_go_api_v1_ClusterMetadata(ref common.ReferenceCal Format: "", }, }, + "license": { + SchemaProps: spec.SchemaProps{ + Ref: ref("kmodules.xyz/client-go/api/v1.LicenseInfo"), + }, + }, }, Required: []string{"uid"}, }, }, + Dependencies: []string{ + "kmodules.xyz/client-go/api/v1.LicenseInfo"}, } } @@ -586,6 +594,37 @@ func schema_kmodulesxyz_client_go_api_v1_ImageInfo(ref common.ReferenceCallback) } } +func schema_kmodulesxyz_client_go_api_v1_LicenseInfo(ref common.ReferenceCallback) common.OpenAPIDefinition { + return common.OpenAPIDefinition{ + Schema: spec.Schema{ + SchemaProps: spec.SchemaProps{ + Type: []string{"object"}, + Properties: map[string]spec.Schema{ + "distributor": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + "endpoint": { + SchemaProps: spec.SchemaProps{ + Description: "Endpoint is the platform-api to acquire licenses from, when Distributor is selfhosted.", + Type: []string{"string"}, + Format: "", + }, + }, + "orgID": { + SchemaProps: spec.SchemaProps{ + Type: []string{"string"}, + Format: "", + }, + }, + }, + }, + }, + } +} + func schema_kmodulesxyz_client_go_api_v1_Lineage(ref common.ReferenceCallback) common.OpenAPIDefinition { return common.OpenAPIDefinition{ Schema: spec.Schema{ diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index cacb9e1ce..5e7400d0b 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -198,6 +198,11 @@ func (in *ClusterInfo) DeepCopy() *ClusterInfo { // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *ClusterMetadata) DeepCopyInto(out *ClusterMetadata) { *out = *in + if in.License != nil { + in, out := &in.License, &out.License + *out = new(LicenseInfo) + **out = **in + } return } @@ -295,6 +300,22 @@ func (in *ImageInfo) DeepCopy() *ImageInfo { return out } +// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. +func (in *LicenseInfo) DeepCopyInto(out *LicenseInfo) { + *out = *in + return +} + +// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LicenseInfo. +func (in *LicenseInfo) DeepCopy() *LicenseInfo { + if in == nil { + return nil + } + out := new(LicenseInfo) + in.DeepCopyInto(out) + return out +} + // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *Lineage) DeepCopyInto(out *Lineage) { *out = *in diff --git a/cluster/lib.go b/cluster/lib.go index 86fe1aa93..e1ceca0a9 100644 --- a/cluster/lib.go +++ b/cluster/lib.go @@ -109,6 +109,14 @@ func ClusterMetadataFromConfigMap(cm *core.ConfigMap, mode kmapi.ClusterMode, cl CABundle: cm.Data["ca.crt"], CloudServiceAuthMode: cm.Data["cloudServiceAuthMode"], } + li := kmapi.LicenseInfo{ + Distributor: kmapi.LicenseDistributor(cm.Data["licenseDistributor"]), + Endpoint: cm.Data["licenseEndpoint"], + OrgID: cm.Data["licenseOrgID"], + } + if !li.IsEmpty() { + md.License = &li + } data, err := json.Marshal(md) if err != nil { @@ -137,7 +145,17 @@ func UpsertClusterMetadata(kc client.Client, md *kmapi.ClusterMetadata) error { }, } - data, err := json.Marshal(md) + // an all-empty License must sign as absent, so a reader that finds no license + // keys in the ConfigMap reconstructs the same payload the mac was taken over + signed := *md + var li kmapi.LicenseInfo + if signed.License.IsEmpty() { + signed.License = nil + } else { + li = *signed.License + } + + data, err := json.Marshal(signed) if err != nil { return err } @@ -160,6 +178,9 @@ func UpsertClusterMetadata(kc client.Client, md *kmapi.ClusterMetadata) error { cm.Data["apiEndpoint"] = md.APIEndpoint cm.Data["ca.crt"] = md.CABundle cm.Data["cloudServiceAuthMode"] = md.CloudServiceAuthMode + cm.Data["licenseDistributor"] = string(li.Distributor) + cm.Data["licenseEndpoint"] = li.Endpoint + cm.Data["licenseOrgID"] = li.OrgID cm.BinaryData = map[string][]byte{ "mac": messageMAC,