Skip to content

Commit f47cdc1

Browse files
committed
ords 22.2 https implementation
1 parent 5aaafdf commit f47cdc1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1170
-554
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ In this v0.2.0 release, `OraOperator` supports the following database configurat
1010
* Oracle Autonomous Database on dedicated Cloud infrastructure (ADB-D)
1111
* Containerized Single Instance databases (SIDB) deployed in the Oracle Kubernetes Engine (OKE) and any k8s where OraOperator is deployed
1212
* Containerized Sharded databases (SHARDED) deployed in OKE and any k8s where OraOperator is deployed
13-
* Oracle On-Premises Databases (CDB/PDBs, Exadata)
13+
* Oracle Multitenant Databases (CDB/PDBs)
1414
* Oracle Database Cloud Service (DBCS) (VMDB)
1515
* Oracle Autonomous Container Database (ACD) (infrastructure) the infrastructure for provisionning Autonomous Databases.
1616

@@ -25,7 +25,7 @@ This release of Oracle Database Operator for Kubernetes (the operator) supports
2525
* ACD: provision, bind, restart, terminate (soft/hard)
2626
* SIDB: Provision, clone, patch (in-place/out-of-place), update database initialization parameters, update database configuration (Flashback, archiving), Oracle Enterprise Manager (EM) Express (a basic observability console), Oracle REST Data Service (ORDS) to support REST based SQL, PDB management, SQL Developer Web, and Application Express (Apex)
2727
* SHARDED: Provision/deploy sharded databases and the shard topology, Add a new shard, Delete an existing shard
28-
* On-Premises Database: Bind to a CDB, Create a  PDB, Plug a  PDB, Unplug a PDB, Delete a PDB, Clone a PDB, Open/Close a PDB
28+
* Oracle Multitenant Database: Bind to a CDB, Create a  PDB, Plug a  PDB, Unplug a PDB, Delete a PDB, Clone a PDB, Open/Close a PDB
2929
* Database Cloud Service: Provision, Bind, Scale Up/Down, Liveness Probe, Manual Backup
3030

3131
The upcoming releases will support new configurations, operations and capabilities.
@@ -99,7 +99,7 @@ The quickstarts are designed for specific database configurations:
9999
* [Oracle Autonomous Container Database](./docs/acd/README.md)
100100
* [Containerized Oracle Single Instance Database](./docs/sidb/README.md)
101101
* [Containerized Oracle Sharded Database](./docs/sharding/README.md)
102-
* [Oracle On-Premises Database](./docs/onpremdb/README.md)
102+
* [Oracle Multitenant Database](./docs/multitenant/README.md)
103103
* [Oracle Database Cloud Service](./docs/dbcs/README.md)
104104

105105
YAML file templates are available under [`/config/samples`](./config/samples/). You can copy and edit these template files to configure them for your use cases.

apis/database/v1alpha1/cdb_types.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,19 @@ type CDBSpec struct {
5151
CDBName string `json:"cdbName,omitempty"`
5252
// Name of the CDB Service
5353
ServiceName string `json:"serviceName,omitempty"`
54+
55+
TestVariable string `json:"TestVariable,omitempty"`
56+
5457
// Password for the CDB System Administrator
5558
SysAdminPwd CDBSysAdminPassword `json:"sysAdminPwd,omitempty"`
5659
// User in the root container with sysdba priviledges to manage PDB lifecycle
5760
CDBAdminUser CDBAdminUser `json:"cdbAdminUser,omitempty"`
5861
// Password for the CDB Administrator to manage PDB lifecycle
5962
CDBAdminPwd CDBAdminPassword `json:"cdbAdminPwd,omitempty"`
63+
64+
CDBTlsKey CDBTLSKEY `json:"cdbTlsKey,omitempty"`
65+
CDBTlsCrt CDBTLSCRT `json:"cdbTlsCrt,omitempty"`
66+
6067
// Password for user ORDS_PUBLIC_USER
6168
ORDSPwd ORDSPassword `json:"ordsPwd,omitempty"`
6269
// ORDS server port. For now, keep it as 8888. TO BE USED IN FUTURE RELEASE.
@@ -120,6 +127,14 @@ type WebServerPassword struct {
120127
Secret CDBSecret `json:"secret"`
121128
}
122129

130+
type CDBTLSKEY struct {
131+
Secret CDBSecret `json:"secret"`
132+
}
133+
134+
type CDBTLSCRT struct {
135+
Secret CDBSecret `json:"secret"`
136+
}
137+
123138
// CDBStatus defines the observed state of CDB
124139
type CDBStatus struct {
125140
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster

apis/database/v1alpha1/cdb_webhook.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ func (r *CDB) ValidateCreate() error {
9292
allErrs = append(allErrs,
9393
field.Required(field.NewPath("spec").Child("serviceName"), "Please specify CDB Service name"))
9494
}
95+
96+
if r.Spec.TestVariable == "" {
97+
allErrs = append(allErrs,
98+
field.Required(field.NewPath("spec").Child("TestVariable"), "Please specify CDB testvarable"))
99+
}
100+
95101
if r.Spec.SCANName == "" {
96102
allErrs = append(allErrs,
97103
field.Required(field.NewPath("spec").Child("scanName"), "Please specify SCAN Name for CDB"))

apis/database/v1alpha1/pdb_types.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ type PDBSpec struct {
4747
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
4848
// Important: Run "make" to regenerate code after modifying this file
4949

50+
PDBTlsKey PDBTLSKEY `json:"pdbTlsKey,omitempty"`
51+
PDBTlsCrt PDBTLSCRT `json:"pdbTlsCrt,omitempty"`
52+
PDBTlsCat PDBTLSCAT `json:"pdbTlsCat,omitempty"`
53+
5054
// Name of the CDB Custom Resource that runs the ORDS container
5155
CDBResName string `json:"cdbResName,omitempty"`
5256
// Name of the CDB
@@ -132,6 +136,18 @@ type PDBSecret struct {
132136
Key string `json:"key"`
133137
}
134138

139+
type PDBTLSKEY struct {
140+
Secret PDBSecret `json:"secret"`
141+
}
142+
143+
type PDBTLSCRT struct {
144+
Secret PDBSecret `json:"secret"`
145+
}
146+
147+
type PDBTLSCAT struct {
148+
Secret PDBSecret `json:"secret"`
149+
}
150+
135151
// PDBStatus defines the observed state of PDB
136152
type PDBStatus struct {
137153
// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
@@ -157,7 +173,7 @@ type PDBStatus struct {
157173

158174
// +kubebuilder:object:root=true
159175
// +kubebuilder:subresource:status
160-
// +kubebuilder:printcolumn:JSONPath=".status.connString",name="Connect String",type="string",description="The connect string to be used"
176+
// +kubebuilder:printcolumn:JSONPath=".status.connString",name="Connect_String",type="string",description="The connect string to be used"
161177
// +kubebuilder:printcolumn:JSONPath=".spec.cdbName",name="CDB Name",type="string",description="Name of the CDB"
162178
// +kubebuilder:printcolumn:JSONPath=".spec.pdbName",name="PDB Name",type="string",description="Name of the PDB"
163179
// +kubebuilder:printcolumn:JSONPath=".status.openMode",name="PDB State",type="string",description="PDB Open Mode"

apis/database/v1alpha1/zz_generated.deepcopy.go

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -702,6 +702,8 @@ func (in *CDBSpec) DeepCopyInto(out *CDBSpec) {
702702
out.SysAdminPwd = in.SysAdminPwd
703703
out.CDBAdminUser = in.CDBAdminUser
704704
out.CDBAdminPwd = in.CDBAdminPwd
705+
out.CDBTlsKey = in.CDBTlsKey
706+
out.CDBTlsCrt = in.CDBTlsCrt
705707
out.ORDSPwd = in.ORDSPwd
706708
out.WebServerUser = in.WebServerUser
707709
out.WebServerPwd = in.WebServerPwd
@@ -755,6 +757,38 @@ func (in *CDBSysAdminPassword) DeepCopy() *CDBSysAdminPassword {
755757
return out
756758
}
757759

760+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
761+
func (in *CDBTLSCRT) DeepCopyInto(out *CDBTLSCRT) {
762+
*out = *in
763+
out.Secret = in.Secret
764+
}
765+
766+
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDBTLSCRT.
767+
func (in *CDBTLSCRT) DeepCopy() *CDBTLSCRT {
768+
if in == nil {
769+
return nil
770+
}
771+
out := new(CDBTLSCRT)
772+
in.DeepCopyInto(out)
773+
return out
774+
}
775+
776+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
777+
func (in *CDBTLSKEY) DeepCopyInto(out *CDBTLSKEY) {
778+
*out = *in
779+
out.Secret = in.Secret
780+
}
781+
782+
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CDBTLSKEY.
783+
func (in *CDBTLSKEY) DeepCopy() *CDBTLSKEY {
784+
if in == nil {
785+
return nil
786+
}
787+
out := new(CDBTLSKEY)
788+
in.DeepCopyInto(out)
789+
return out
790+
}
791+
758792
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
759793
func (in *CatalogSpec) DeepCopyInto(out *CatalogSpec) {
760794
*out = *in
@@ -1662,6 +1696,9 @@ func (in *PDBSecret) DeepCopy() *PDBSecret {
16621696
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
16631697
func (in *PDBSpec) DeepCopyInto(out *PDBSpec) {
16641698
*out = *in
1699+
out.PDBTlsKey = in.PDBTlsKey
1700+
out.PDBTlsCrt = in.PDBTlsCrt
1701+
out.PDBTlsCat = in.PDBTlsCat
16651702
out.AdminName = in.AdminName
16661703
out.AdminPwd = in.AdminPwd
16671704
if in.ReuseTempFile != nil {
@@ -1723,6 +1760,54 @@ func (in *PDBStatus) DeepCopy() *PDBStatus {
17231760
return out
17241761
}
17251762

1763+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1764+
func (in *PDBTLSCAT) DeepCopyInto(out *PDBTLSCAT) {
1765+
*out = *in
1766+
out.Secret = in.Secret
1767+
}
1768+
1769+
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PDBTLSCAT.
1770+
func (in *PDBTLSCAT) DeepCopy() *PDBTLSCAT {
1771+
if in == nil {
1772+
return nil
1773+
}
1774+
out := new(PDBTLSCAT)
1775+
in.DeepCopyInto(out)
1776+
return out
1777+
}
1778+
1779+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1780+
func (in *PDBTLSCRT) DeepCopyInto(out *PDBTLSCRT) {
1781+
*out = *in
1782+
out.Secret = in.Secret
1783+
}
1784+
1785+
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PDBTLSCRT.
1786+
func (in *PDBTLSCRT) DeepCopy() *PDBTLSCRT {
1787+
if in == nil {
1788+
return nil
1789+
}
1790+
out := new(PDBTLSCRT)
1791+
in.DeepCopyInto(out)
1792+
return out
1793+
}
1794+
1795+
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
1796+
func (in *PDBTLSKEY) DeepCopyInto(out *PDBTLSKEY) {
1797+
*out = *in
1798+
out.Secret = in.Secret
1799+
}
1800+
1801+
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PDBTLSKEY.
1802+
func (in *PDBTLSKEY) DeepCopy() *PDBTLSKEY {
1803+
if in == nil {
1804+
return nil
1805+
}
1806+
out := new(PDBTLSKEY)
1807+
in.DeepCopyInto(out)
1808+
return out
1809+
}
1810+
17261811
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
17271812
func (in *PITSpec) DeepCopyInto(out *PITSpec) {
17281813
*out = *in

0 commit comments

Comments
 (0)