Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
666 commits
Select commit Hold shift + click to select a range
5aea1bd
ons support in oracle restart
s1saurabh Jul 29, 2025
f3a9675
Merge branch 'ons' into 'master'
psaini79 Jul 30, 2025
bcd3460
Added fixes
psaini79 Jul 30, 2025
4f0c869
Added fixes
psaini79 Jul 30, 2025
80a1f85
Update for v2.0.0
aberinnj Jul 30, 2025
4ae240c
Merge branch 'observability/patch/stable-for-prod' into 'master'
aberinnj Jul 30, 2025
6ed12f7
Added fixes
psaini79 Jul 30, 2025
63b6b92
Added fixes
psaini79 Jul 30, 2025
f2f1dc3
Added fixes
psaini79 Jul 30, 2025
ff89652
Added fixes
psaini79 Jul 30, 2025
708217f
Added fixes
psaini79 Jul 31, 2025
521a480
Added fixes
psaini79 Jul 31, 2025
8e012f8
Added fixes
psaini79 Jul 31, 2025
e41209a
Added fixes
psaini79 Jul 31, 2025
318363f
Added fixes
psaini79 Jul 31, 2025
80d435c
Psaini privateai update1
Jul 31, 2025
c0ee8a5
Merge branch 'psaini_privateai_update1' into 'master'
psaini79 Jul 31, 2025
fb943f6
private ai documentation changes
jpverma85 Aug 2, 2025
345b003
Merge branch 'privateai_lb' into 'master'
psaini79 Aug 4, 2025
0d1e971
Update debug_privateai.md
jpverma85 Aug 4, 2025
92548fa
Merge cmd/main.go into main.go
ting-lan-wang Aug 4, 2025
d419d37
Merge branch 'restore-removed-webhook-registrations' into 'master'
ting-lan-wang Aug 4, 2025
e6390f4
update adb docs
ting-lan-wang Aug 4, 2025
4f4585f
Merge branch 'tinglwan-update-doc-v2.0' into 'master'
ting-lan-wang Aug 4, 2025
a4b7bc9
Fix missing adb validating webhook and update docs
ting-lan-wang Aug 5, 2025
2b0a201
Merge branch 'tinglwan-fix-webhook' into 'master'
ting-lan-wang Aug 5, 2025
d4b709c
Include zip in the wallet secret
ting-lan-wang Aug 5, 2025
baf9b2b
Merge branch 'tinglwan-adb-wallet-keep-zip-file' into 'master'
ting-lan-wang Aug 5, 2025
ac0b9af
Patchfix
s1saurabh Aug 7, 2025
edb20e1
Merge branch 'patchfix' into 'master'
psaini79 Aug 7, 2025
33cda59
Update lib versions for release v2.0
ting-lan-wang Aug 7, 2025
b2128f9
Merge branch 'tinglwan-lib-v2.0' into 'master'
ting-lan-wang Aug 7, 2025
9878ec4
master merged with mmalvezz_refactoring_2.0
Aug 8, 2025
9a604c6
Merge branch 'mmalvezz_golive_250808' into 'master'
mmalvezz Aug 8, 2025
f5c0b41
OrdsSrvs 2.0
marcstef-oracle Aug 11, 2025
11a1ac1
Merge branch 'marcstef_ordssrvs_2.0' into 'master'
mmalvezz Aug 11, 2025
696be45
Observability/feature/exporter v2.0.2
aberinnj Aug 11, 2025
82cc3b3
Merge branch 'observability/feature/exporter-v2.0.2' into 'master'
aberinnj Aug 11, 2025
662b8f3
Update webhooks of restore and backup controllers
ting-lan-wang Aug 11, 2025
749bc5f
Merge branch 'tinglwan-webhook-validator' into 'master'
ting-lan-wang Aug 11, 2025
caf61a9
dbcs fix
s1saurabh Aug 12, 2025
548f139
Merge branch 'dbcsfix' into 'master'
psaini79 Aug 12, 2025
49218b2
Hotfix/update replica count
Aug 12, 2025
ba491a0
Merge branch 'hotfix/updateReplicaCount' into 'master'
psaini79 Aug 12, 2025
2045254
Update webhook for sidb, ords and dg controllers
vatsrahul Aug 14, 2025
45f3561
Merge branch 'rvats/updateWebhook' into 'master'
yunus-qureshi Aug 14, 2025
31a2f69
Added fixes
psaini79 Aug 14, 2025
85a398d
Added fixes
psaini79 Aug 14, 2025
09af2d6
Psaini sharding branch
psaini79 Aug 14, 2025
ed195d6
Merge branch 'psaini_sharding_branch' into 'master'
psaini79 Aug 14, 2025
fd30c20
fix in documentation for basedb
s1saurabh Aug 15, 2025
c50aeb0
Merge branch 'basedbdocumentationfix' into 'master'
psaini79 Aug 15, 2025
35a89d3
Feature/psaini update
Aug 15, 2025
9796905
Merge branch 'feature/psaini_update' into 'master'
psaini79 Aug 15, 2025
96c4d40
Optionalfield
s1saurabh Aug 16, 2025
462d70b
Merge branch 'optionalfield' into 'master'
psaini79 Aug 16, 2025
60e056a
Added fixes
psaini79 Aug 18, 2025
04be36c
Added fixes
psaini79 Aug 18, 2025
15aa29b
Autodiscover optimization+docs
Aug 18, 2025
83a1fd3
OrdsSrvs 2.0 - code warnings
marcstef-oracle Aug 18, 2025
eccf078
Merge branch 'marcstef_ordssrvs_warnings' into 'master'
mmalvezz Aug 18, 2025
011fed0
Privateai newfeatures
jpverma85 Aug 18, 2025
eff6767
Merge branch 'privateai_newfeatures' into 'master'
psaini79 Aug 18, 2025
f7bae4b
Added fix for Name and Namespace not found
aberinnj Aug 18, 2025
1d9e79c
Merge branch 'observability/patch-webhooks' into 'master'
aberinnj Aug 18, 2025
bb3d55c
orestart scale down disk fix
s1saurabh Aug 19, 2025
0a5dbfc
Merge branch 'orestartfix' into 'master'
psaini79 Aug 19, 2025
3b574f8
unsed variable cleanup
Aug 19, 2025
9e2bd8b
multitenant usecase makefile
Aug 20, 2025
01af681
multi tenant controller doc
Aug 21, 2025
2a40e7e
OrdsSrvs 2.0 documentation
marcstef-oracle Aug 21, 2025
8205ed9
Merge branch 'marcstef_ordssrvs_2.0_docs' into 'master'
mmalvezz Aug 21, 2025
37815b4
Orestartfix
s1saurabh Aug 21, 2025
5f9f842
Merge branch 'orestartfix' into 'master'
psaini79 Aug 21, 2025
404fe69
fix for PROVISIONING state to AVAILABLE
s1saurabh Aug 21, 2025
07b2a18
Merge branch 'clonefix' into 'master'
psaini79 Aug 21, 2025
7304676
pdb/cdb decomission
Aug 22, 2025
afba3bd
Basedbfix
s1saurabh Aug 25, 2025
300f95d
Merge branch 'basedbfix' into 'master'
psaini79 Aug 25, 2025
a5bf785
fix compilation
s1saurabh Aug 25, 2025
88b5b71
fix for autoupdate
s1saurabh Aug 25, 2025
92c4b58
Merge branch 'orestart' into 'master'
psaini79 Aug 25, 2025
c577a61
Merge branch 'compilefix' into 'master'
psaini79 Aug 25, 2025
bd4ee60
fix for dbclone from backup
s1saurabh Aug 26, 2025
300e0d8
Merge branch 'clonestate' into 'master'
psaini79 Aug 26, 2025
b93c088
fix for dbclone
s1saurabh Aug 26, 2025
7f33b3e
Merge branch 'clonestate' into 'master'
psaini79 Aug 26, 2025
3b221fc
Add known issues for ADB controller
ting-lan-wang Aug 28, 2025
88999a1
Merge branch 'tinglwan-add-known-issue-wallet' into 'master'
ting-lan-wang Aug 28, 2025
af36f5c
dbcs fix
s1saurabh Aug 28, 2025
4808665
Merge branch 'newbugfix' into 'master'
psaini79 Aug 28, 2025
601cb75
Fixed check for Azure
aberinnj Aug 28, 2025
edfc41b
Merge branch 'bugfix/observability/azure-fix' into 'master'
aberinnj Aug 28, 2025
858d63c
multi tnt. doc correction
Aug 29, 2025
836c605
upgrade fix
s1saurabh Aug 29, 2025
9e26610
Merge branch 'upgradefix' into 'master'
psaini79 Aug 29, 2025
a288680
upgrade fix
s1saurabh Aug 29, 2025
d9d4972
Remove unused webhook rule
ting-lan-wang Aug 29, 2025
2e7f6a0
Merge branch 'tinglwan-fix-backup' into 'master'
ting-lan-wang Aug 29, 2025
25f0742
Merge branch 'upgradefix' into 'master'
psaini79 Aug 29, 2025
f7d6646
Update Openshift support section and README.md
ting-lan-wang Aug 29, 2025
f53b497
Fix hard delete
ting-lan-wang Aug 29, 2025
dc6bcf2
Merge branch 'tinglwan-fix-hard-delete' into 'master'
ting-lan-wang Aug 29, 2025
42ac845
Added fixes
psaini79 Aug 31, 2025
ef2b184
autodiscovery fix, RFC1123, documentation bug
Aug 31, 2025
5dba2bd
Added fixes
psaini79 Aug 31, 2025
5cf380a
Added fixes
psaini79 Sep 1, 2025
b8692d0
Added fix
psaini79 Sep 1, 2025
2911a39
Added fixes
psaini79 Sep 2, 2025
72ab8c2
Added fixes
psaini79 Sep 2, 2025
40db295
documentation improvment
Sep 3, 2025
b00b70b
Added fixes
psaini79 Sep 4, 2025
4c2185a
Added fixes
psaini79 Sep 4, 2025
cae8276
Added pvc fixes
psaini79 Sep 4, 2025
ffb6745
Added fixes
psaini79 Sep 4, 2025
f8ec9c0
APEX download site
marcstef-oracle Sep 5, 2025
c3ebf29
Merge branch 'marcstef_ordssrvs_2.0_doc_fix' into 'master'
mmalvezz Sep 5, 2025
b96ef49
test cases fix
s1saurabh Sep 5, 2025
725eabf
Merge branch 'testcasefix' into 'master'
psaini79 Sep 5, 2025
9c04241
Added RuMode
psaini79 Sep 5, 2025
25ca217
Added service_mode in sharding for thr bug#38391854
psaini79 Sep 5, 2025
e863eb9
Added fix for diskcount check for normal redudancy and HIGH redudancy
psaini79 Sep 5, 2025
b0ec305
Added fixes
psaini79 Sep 8, 2025
acea82d
Added fixes
psaini79 Sep 8, 2025
9233245
Added fixes
psaini79 Sep 8, 2025
da197ba
Update file README.md
psaini79 Sep 8, 2025
59fa1f5
Added fixes
psaini79 Sep 8, 2025
7012aab
Added fixes
psaini79 Sep 8, 2025
ca1730f
Added fixes
psaini79 Sep 8, 2025
a48d1eb
oneoff fix
s1saurabh Sep 8, 2025
6baea6f
Merge branch 'oneofffix' into 'master'
psaini79 Sep 8, 2025
351b319
Added fixes
psaini79 Sep 8, 2025
fa3f64f
Update ACD.md minor edit.
dwilliams-orcl Sep 8, 2025
31bae68
Update backup_of_database.md minor edits
dwilliams-orcl Sep 8, 2025
2dcc183
Update README.md Minor style edits
dwilliams-orcl Sep 8, 2025
a72202b
Added fix for status change and software expansion
psaini79 Sep 8, 2025
5a9cb06
Update access_privateai.md minor style edits.
dwilliams-orcl Sep 8, 2025
d824bdd
Update api_endpoint.md minor style edits.
dwilliams-orcl Sep 8, 2025
d8ab7cd
Update configmap_multi_model_filesystem.md Minor style edits.
dwilliams-orcl Sep 8, 2025
5bf54f9
Update configmap_single_model_https.md Minor style edits.
dwilliams-orcl Sep 8, 2025
49aab8d
Update create_oci_fss_based_pvc.md Minor style edits.
dwilliams-orcl Sep 8, 2025
761a711
Update deploy_privateai_internallb.md Minor style edits.
dwilliams-orcl Sep 8, 2025
949c4e1
Update deploy_privateai_multi_model_https_internallb.md Minor style e…
dwilliams-orcl Sep 8, 2025
9feaa30
Update deploy_privateai_multi_model_https_internallb_add_model.md Min…
dwilliams-orcl Sep 8, 2025
2af0e2a
Update deploy_privateai_multi_model_https_internallb_remove_model.md …
dwilliams-orcl Sep 8, 2025
bf41eaf
Update deploy_privateai_publiclb.md Minor style changes
dwilliams-orcl Sep 8, 2025
32b3a31
Update scale_in_privateai.md Minor style edit
dwilliams-orcl Sep 8, 2025
8532cc5
Update scale_up_privateai.md minor style edits.
dwilliams-orcl Sep 9, 2025
4695032
Added fixes
psaini79 Sep 9, 2025
b96c78a
Mmalvezz oeap sha256
mmalvezz Sep 9, 2025
35d36f8
Merge branch 'mmalvezz_oeap_sha256' into 'master'
mmalvezz Sep 9, 2025
e2a4b84
Marcstef ordssrvs 2.0 fix oaep docs
marcstef-oracle Sep 9, 2025
b4b6031
Merge branch 'marcstef_ordssrvs_2.0_fix_OAEP_docs' into 'master'
mmalvezz Sep 9, 2025
96ccebb
Merge branch 'douglas_williams-master-patch-69086' into 'master'
psaini79 Sep 9, 2025
72cb2c0
Merge branch 'douglas_williams-master-patch-54301' into 'master'
psaini79 Sep 9, 2025
230114b
Merge branch 'douglas_williams-master-patch-18007' into 'master'
psaini79 Sep 9, 2025
2f6b9ae
Merge branch 'douglas_williams-master-patch-33644' into 'master'
psaini79 Sep 9, 2025
9753871
Merge branch 'douglas_williams-master-patch-96971' into 'master'
psaini79 Sep 9, 2025
b625e5a
Merge branch 'douglas_williams-master-patch-33947' into 'master'
psaini79 Sep 9, 2025
b707b19
Merge branch 'douglas_williams-master-patch-85528' into 'master'
psaini79 Sep 9, 2025
976a023
Merge branch 'douglas_williams-master-patch-83054' into 'master'
psaini79 Sep 9, 2025
9e043ef
Merge branch 'douglas_williams-master-patch-73878' into 'master'
psaini79 Sep 9, 2025
b7bb7a0
Merge branch 'douglas_williams-master-patch-05863' into 'master'
psaini79 Sep 9, 2025
6df2808
Merge branch 'douglas_williams-master-patch-31040' into 'master'
psaini79 Sep 9, 2025
872e6d5
Merge branch 'douglas_williams-master-patch-74337' into 'master'
psaini79 Sep 9, 2025
b0a2203
Merge branch 'douglas_williams-master-patch-07314' into 'master'
psaini79 Sep 9, 2025
a7ec09e
Merge branch 'douglas_williams-master-patch-03758' into 'master'
psaini79 Sep 9, 2025
25b83a8
Merge branch 'douglas_williams-master-patch-24847' into 'master'
psaini79 Sep 9, 2025
836a141
Added fixes and removed zapr
psaini79 Sep 9, 2025
1568dac
Added fixes
psaini79 Sep 9, 2025
8c5def7
usecase makefile new parameters
Sep 10, 2025
e252279
usecase makefile glitch
Sep 10, 2025
29f700a
Sharding validations
jpverma85 Sep 11, 2025
9456e8b
Merge branch 'sharding_validations' into 'master'
psaini79 Sep 11, 2025
b7edec6
Update file README.md
psaini79 Sep 11, 2025
5772529
Orestart validations
jpverma85 Sep 11, 2025
733dd7f
Merge branch 'orestart_validations' into 'master'
psaini79 Sep 11, 2025
334b4ab
Update 2 files
psaini79 Sep 11, 2025
0bcd77a
Added fixes for latest golang
psaini79 Sep 11, 2025
8c8e960
Added fixes
psaini79 Sep 11, 2025
3bb073c
Update .gitlab-ci.yml
yunus-qureshi Sep 12, 2025
bd395c3
jpg case-sensitive paths
Sep 12, 2025
39d05ac
block device oneoff fix
s1saurabh Sep 12, 2025
95791ee
Merge branch 'onefix' into 'master'
psaini79 Sep 12, 2025
47b574e
Update 2 files
Kuassim Sep 12, 2025
96d8ac8
Update file README.md
Kuassim Sep 12, 2025
80e4f7c
Update 49 files
psaini79 Sep 13, 2025
870cbbb
Merge branch 'psaini_doc_V2.0_review' into 'master'
psaini79 Sep 13, 2025
50daac8
nodeport fix
s1saurabh Sep 18, 2025
c4d6822
Merge branch 'nodeportfix' into 'master'
psaini79 Sep 18, 2025
5dba6f5
Added fixes
psaini79 Sep 23, 2025
abcfbef
Added fixes for Redhat Catalogue
psaini79 Sep 25, 2025
371ed3c
Added fixes
psaini79 Sep 25, 2025
c3ed51b
Added fix for sharding nil pointer exception
psaini79 Sep 25, 2025
73882d4
Update file README.md
Kuassim Sep 26, 2025
930580c
Update file README.md
Kuassim Sep 26, 2025
10d32ab
Added fixes
psaini79 Sep 29, 2025
acd8f14
fix for invalid disk
s1saurabh Sep 30, 2025
2575bb5
Merge branch 'invaliddisk' into 'master'
psaini79 Sep 30, 2025
d30f897
Added fixes for Branch 2.0
psaini79 Oct 4, 2025
c731dc4
Added fixes
psaini79 Oct 4, 2025
6ad723b
Added fixes
psaini79 Oct 4, 2025
34c7583
Added fixes
psaini79 Oct 4, 2025
dff454d
Added files
psaini79 Oct 5, 2025
5ee1512
Added files
psaini79 Oct 5, 2025
f043e61
Added fixes for oracle restart
psaini79 Oct 6, 2025
ac952b3
Fixed Oracle Restart PDB Name
psaini79 Oct 6, 2025
8575e5f
Added fixes
psaini79 Oct 6, 2025
acb3001
Added fixes
psaini79 Oct 6, 2025
d8992e1
Oracle Restat Fix
psaini79 Oct 6, 2025
415c33e
Added fixes
psaini79 Oct 6, 2025
f557ba3
Added fixes
psaini79 Oct 6, 2025
036cc00
Added fixes
psaini79 Oct 7, 2025
99b88b2
Added fixes
psaini79 Oct 7, 2025
c7531d5
Added fixes
psaini79 Oct 7, 2025
8bcc4ec
Added fix for PVC name
psaini79 Oct 7, 2025
c8d3cb2
Added fixes
psaini79 Oct 7, 2025
99d1a0c
Update README.md minor style edit.
dwilliams-orcl Oct 9, 2025
3e72c3b
Update bind_to_existing_dbcs_system.md Minor edits.
dwilliams-orcl Oct 9, 2025
6df2e4d
Update clone_from_backup_dbcs.md Minor edits
dwilliams-orcl Oct 9, 2025
e614226
Update dataguard_to_database.md minor edits.
dwilliams-orcl Oct 9, 2025
0da42b8
Update patching_database.md minor style edits.
dwilliams-orcl Oct 9, 2025
af5066f
Update restore_of_database.md minor style edits.
dwilliams-orcl Oct 9, 2025
620d854
Update scale_up_dbcs_system_shape.md minor style edits.
dwilliams-orcl Oct 9, 2025
e457469
Update scale_up_dbcs_system_shape.md --missed another "here" link.
dwilliams-orcl Oct 9, 2025
934b536
Update terminate_dbcs_system.md minor style edits.
dwilliams-orcl Oct 9, 2025
f0d3dc8
Update delete_pdb.md minor style edits.
dwilliams-orcl Oct 9, 2025
0a357d3
Update scale_up_storage.md Minor style edits.
dwilliams-orcl Oct 9, 2025
6561df9
Update upgrading_database.md Minor style edits.
dwilliams-orcl Oct 9, 2025
22929ef
Update update_license.md Minor style edits.
dwilliams-orcl Oct 9, 2025
5a89a3d
Update scale_down_dbcs_system_shape.md minor style edits.
dwilliams-orcl Oct 9, 2025
2a231b0
Update clone_from_database.md minor style edits
dwilliams-orcl Oct 9, 2025
8d2842c
Update clone_from_existing_dbcs.md minor style edits.
dwilliams-orcl Oct 9, 2025
5cd2e8b
Update create_dbcs_with_kms.md minor style edits.
dwilliams-orcl Oct 9, 2025
bdeabae
Update add_asm_disk_to_an_existing_restart_database.md minor style up…
dwilliams-orcl Oct 9, 2025
a01ea6c
Update udsharding_scale_in_delete_an_existing_shard.md minor style up…
dwilliams-orcl Oct 9, 2025
2973935
Update ssharding_provisioning_without_db_gold_image.md Minor style ed…
dwilliams-orcl Oct 9, 2025
9ede931
Update ssharding_provisioning_with_notification_using_oci_notificatio…
dwilliams-orcl Oct 9, 2025
d95e995
Update udsharding_provisioning_with_control_on_resources.md Minor sty…
dwilliams-orcl Oct 9, 2025
5f55ecf
Update udsharding_provisioning_with_notification_using_oci_notificati…
dwilliams-orcl Oct 9, 2025
e081aeb
Update udsharding_provisioning_without_db_gold_image.md Minor style e…
dwilliams-orcl Oct 9, 2025
0106d61
Update udsharding_scale_out_add_shards.md Minor style edits.
dwilliams-orcl Oct 9, 2025
7c08e6a
Added fixes
psaini79 Oct 9, 2025
b140cfe
doc changes
jpverma85 Oct 9, 2025
ec44d7a
doc changes
jpverma85 Oct 9, 2025
1ce9598
doc changes
jpverma85 Oct 9, 2025
cbeeb27
doc changes
jpverma85 Oct 9, 2025
ca54e1d
Added fixes
psaini79 Oct 10, 2025
c9f5aaf
Github oper 2.0
s1saurabh Oct 10, 2025
5fcec60
Merge branch 'github-oper-2.0' into 'github-main-operator2.0'
psaini79 Oct 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
operator.tgz
cover.out
bin
bin/*
testbin/*
onpremtest/*
ords/*zip
Expand All @@ -10,4 +11,4 @@ ords/*zip
.DS_Store
# development
.idea
.local
.local
38 changes: 38 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
build-operator:
stage: build
variables:
IMAGE: "$DOCKER_REPO:$CI_COMMIT_SHORT_SHA"
OP_YAML: oracle-database-operator.yaml
BUILD_INTERNAL: "true"
script:
- export GOLANG_VERSION=1.25.1
- export GOROOT=$(go${GOLANG_VERSION} env GOROOT)
- export PATH="${GOROOT}/bin:${PATH}"
- make operator-yaml IMG=$IMAGE GOLANG_VERSION=$GOLANG_VERSION
- if [ "$CI_COMMIT_BRANCH" = "master" ]; then
podman run --rm --privileged multiarch/qemu-user-static --reset -p yes;
make image-build image-push IMG="$IMAGE" BUILD_MANIFEST=true GOLANG_VERSION=$GOLANG_VERSION;
podman manifest rm "$IMAGE";
else
make image-build image-push IMG="$IMAGE" GOLANG_VERSION=$GOLANG_VERSION;
podman rmi "$IMAGE";
sed -i "s/\(replicas.\) 3/\1 1/g" ./$OP_YAML;
fi
- buildah containers -q | xargs -n1 buildah rm || true
- podman system prune -f
- curl -s --netrc-file $HOME/.netrc_gitlab $ARTIFACTORY_REPO/$CI_COMMIT_BRANCH/$OP_YAML -T ./$OP_YAML
only:
variables:
- $CI_COMMIT_MESSAGE =~ /\#run-pipeline/
- $CI_COMMIT_BRANCH =~ /master/
- $CI_MERGE_REQUEST_ID != ""
except:
variables:
- $CI_COMMIT_MESSAGE =~ /\#skip-pipeline/
- $CI_COMMIT_TAG != null

cleanup:
stage: .post
script:
- echo "Clean up downloaded binaries"
- rm -rf bin/
37 changes: 26 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
#

# Build the manager binary
ARG BUILDER_IMG
FROM ${BUILDER_IMG} as builder
ARG BUILDER_IMG="oraclelinux:9"
ARG RUNNER_IMG="oraclelinux:9-slim"
FROM ${BUILDER_IMG} AS builder

ARG TARGETARCH
# Download golang if INSTALL_GO is set to true
Expand All @@ -18,35 +19,49 @@ RUN if [ "$INSTALL_GO" = "true" ]; then \
echo "Go Arch: $(/usr/local/go/bin/go env GOARCH)"; \
fi
ENV PATH=${GOLANG_VERSION:+"${PATH}:/usr/local/go/bin"}
ENV GOCACHE=/go-cache
ENV GOMODCACHE=/gomod-cache

WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
COPY go.sum go.sum
# cache deps before building and copying source so that we don't need to re-download as much
# and so that source changes don't invalidate our downloaded layer
RUN go mod download

# Copy the go source
COPY LICENSE.txt LICENSE.txt
COPY THIRD_PARTY_LICENSES_DOCKER.txt THIRD_PARTY_LICENSES_DOCKER.txt
COPY main.go main.go
COPY apis/ apis/
COPY controllers/ controllers/
COPY commons/ commons/
COPY LICENSE.txt LICENSE.txt
COPY THIRD_PARTY_LICENSES_DOCKER.txt THIRD_PARTY_LICENSES_DOCKER.txt
COPY controllers/ controllers/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -a -o manager main.go
RUN --mount=type=cache,target=/go-cache --mount=type=cache,target=/gomod-cache CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} GO111MODULE=on go build -o manager main.go

# Use oraclelinux:9 as base image to package the manager binary
FROM oraclelinux:9
# Use oraclelinux:9-slim as default base image to package the manager binary
FROM ${RUNNER_IMG}
# Labels
# ------
LABEL "provider"="Oracle" \
"issues"="https://github.com/oracle/oracle-database-operator/issues" \
"maintainer"="paramdeep.saini@oracle.com, sanjay.singh@oracle.com, kuassi.mensah@oracle.com" \
"version"="2.0" \
"description"="DB Operator Image V2.0" \
"vendor"="Oracle Coporation" \
"release"="2.0" \
"summary"="Oracle Database Operator 2.0" \
"name"="oracle-database-operator.v2.0"
ARG CI_COMMIT_SHA
ARG CI_COMMIT_BRANCH
ENV COMMIT_SHA=${CI_COMMIT_SHA} \
COMMIT_BRANCH=${CI_COMMIT_BRANCH}
WORKDIR /
COPY --from=builder /workspace/manager .
COPY ords/ords_init.sh .
COPY ords/ords_start.sh .
COPY LICENSE.txt /licenses/
COPY THIRD_PARTY_LICENSES_DOCKER.txt /licenses/
COPY THIRD_PARTY_LICENSES.txt /licenses/
RUN useradd -u 1002 nonroot
USER nonroot

Expand Down
33 changes: 17 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

# Current Operator version
VERSION ?= 0.0.1
VERSION ?= 2.0
# Default bundle image tag
BUNDLE_IMG ?= controller-bundle:$(VERSION)
# Options for 'bundle-build'
Expand All @@ -23,7 +23,7 @@ IMG ?= controller:latest
# https://github.com/kubernetes-sigs/kubebuilder/issues/1140
CRD_OPTIONS ?= "crd:maxDescLen=0,allowDangerousTypes=true"
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
ENVTEST_K8S_VERSION = 1.29.0
ENVTEST_K8S_VERSION = 1.31.0
# Operator YAML file
OPERATOR_YAML=$$(basename $$(pwd)).yaml
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
Expand Down Expand Up @@ -70,12 +70,14 @@ build: generate fmt vet ## Build manager binary.
run: manifests generate fmt vet ## Run a controller from your host.
go run ./main.go

GOLANG_VERSION ?= 1.23.3
GOLANG_VERSION ?= 1.25.1
DOCKER ?= podman
## Download golang in the Dockerfile if BUILD_INTERNAL is set to true.
## Otherwise, use golang image from docker hub as the builder.
ifeq ($(BUILD_INTERNAL), true)
BUILDER_IMG = oraclelinux:9
BUILD_ARGS = --build-arg BUILDER_IMG=$(BUILDER_IMG) --build-arg GOLANG_VERSION=$(GOLANG_VERSION) --build-arg INSTALL_GO=true
DOCKER = podman
else
BUILDER_IMG = golang:$(GOLANG_VERSION)
BUILD_ARGS = --build-arg BUILDER_IMG=$(BUILDER_IMG) --build-arg INSTALL_GO="false" --build-arg GOLANG_VERSION=$(GOLANG_VERSION)
Expand All @@ -86,18 +88,18 @@ PUSH_ARGS := manifest
else
BUILD_ARGS := $(BUILD_ARGS) --platform=linux/amd64 --tag
endif
docker-build: #manifests generate fmt vet #test ## Build docker image with the manager. Disable the test but keep the validations to fail fast
docker build --no-cache=true --build-arg http_proxy=$(HTTP_PROXY) --build-arg https_proxy=$(HTTPS_PROXY) \
image-build: #manifests generate fmt vet #test ## Build docker image with the manager. Disable the test but keep the validations to fail fast
$(DOCKER) build --build-arg http_proxy=$(HTTP_PROXY) --build-arg https_proxy=$(HTTPS_PROXY) \
--build-arg CI_COMMIT_SHA=$(CI_COMMIT_SHA) --build-arg CI_COMMIT_BRANCH=$(CI_COMMIT_BRANCH) \
$(BUILD_ARGS) $(IMG) .
docker-push: ## Push docker image with the manager.
docker $(PUSH_ARGS) push $(IMG)

image-push: ## Push docker image with the manager.
$(DOCKER) $(PUSH_ARGS) push $(IMG)

# Push to minikube's local registry enabled by registry add-on
minikube-push:
docker tag $(IMG) $$(minikube ip):5000/$(IMG)
docker push --tls-verify=false $$(minikube ip):5000/$(IMG)
$(DOCKER) tag $(IMG) $$(minikube ip):5000/$(IMG)
$(DOCKER) push --tls-verify=false $$(minikube ip):5000/$(IMG)

##@ Deployment

Expand All @@ -123,7 +125,6 @@ operator-yaml: manifests kustomize
(echo --- && sed '/^apiVersion: apps\/v1/,/---/!d' "$(OPERATOR_YAML).bak") >> "$(OPERATOR_YAML)"
rm "$(OPERATOR_YAML).bak"

minikube-operator-yaml: IMG:=localhost:5000/$(IMG)
minikube-operator-yaml: operator-yaml
sed -i.bak 's/\(replicas.\) 3/\1 1/g' "$(OPERATOR_YAML)"
rm "$(OPERATOR_YAML).bak"
Expand All @@ -144,8 +145,8 @@ CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
ENVTEST ?= $(LOCALBIN)/setup-envtest

## Tool Versions
KUSTOMIZE_VERSION ?= v5.3.0
CONTROLLER_TOOLS_VERSION ?= v0.16.5
KUSTOMIZE_VERSION ?= v5.7.1
CONTROLLER_TOOLS_VERSION ?= v0.17

KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh"
.PHONY: kustomize
Expand Down Expand Up @@ -173,11 +174,11 @@ bundle: manifests kustomize ## Generate bundle manifests and metadata, then vali

.PHONY: bundle-build
bundle-build: ## Build the bundle image.
docker build -f bundle.Dockerfile -t $(BUNDLE_IMG) .
$(DOCKER) build -f bundle.Dockerfile -t $(BUNDLE_IMG) .

.PHONY: bundle-push
bundle-push: ## Push the bundle image.
$(MAKE) docker-push IMG=$(BUNDLE_IMG)
$(MAKE) image-push IMG=$(BUNDLE_IMG)

.PHONY: opm
OPM = ./bin/opm
Expand Down Expand Up @@ -218,4 +219,4 @@ catalog-build: opm ## Build a catalog image.
# Push the catalog image.
.PHONY: catalog-push
catalog-push: ## Push a catalog image.
$(MAKE) docker-push IMG=$(CATALOG_IMG)
$(MAKE) image-push IMG=$(CATALOG_IMG)
28 changes: 27 additions & 1 deletion PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# More info: https://book.kubebuilder.io/reference/project-config.html
domain: oracle.com
layout:
- go.kubebuilder.io/v2
- go.kubebuilder.io/v4
multigroup: true
plugins:
manifests.sdk.operatorframework.io/v2: {}
Expand Down Expand Up @@ -259,4 +259,30 @@ resources:
webhooks:
conversion: true
webhookVersion: v1beta1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: oracle.com
group: omlai
kind: PrivateAi
path: github.com/oracle/oracle-database-operator/api/omlai/v4
version: v4
webhooks:
defaulting: true
validation: true
webhookVersion: v1
- api:
crdVersion: v1
namespaced: true
controller: true
domain: oracle.com
group: database
kind: OracleRestart
path: github.com/oracle/oracle-database-operator/api/database/v4
version: v4
webhooks:
defaulting: true
validation: true
webhookVersion: v1
version: "3"
Loading