Skip to content

feat: add apl-operator #2151

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 70 commits into
base: main
Choose a base branch
from
Draft

feat: add apl-operator #2151

wants to merge 70 commits into from

Conversation

CasLubbers
Copy link
Contributor

@CasLubbers CasLubbers commented May 13, 2025

📌 Summary

  • Set otomi-pipelines to false so it does not get installed
  • Added new apl-operator which takes over the applying from tekton

🔍 Reviewer Notes

🧹 Checklist

  • Code is readable, maintainable, and robust.
  • Unit tests added/updated

Copy link

github-actions bot commented May 13, 2025

Coverage report

St.
Category Percentage Covered / Total
🔴 Statements
40.69% (-0.47% 🔻)
776/1907
🔴 Branches
32.91% (+0.08% 🔼)
287/872
🔴 Functions
40.46% (-0.07% 🔻)
123/304
🔴 Lines
41.66% (-0.42% 🔻)
734/1762
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴 operator/k8s.ts 3.85% 0% 0% 4.17%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🔴 common/bootstrap.ts
6.38% (-0.14% 🔻)
0% 0%
6.38% (-0.14% 🔻)

Test suite run success

93 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from a223e5e

app: core
<<: *default
# - name: otomi-pipelines
# installed: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would actually set it to false, so we ensure that corresponding app is removed

@@ -32,6 +32,8 @@ export const cliEnvSpec = {
RANDOM: bool({ desc: 'Randomizes the timeouts by multiplying with a factor between 1 to 2', default: false }),
MIN_TIMEOUT: num({ desc: 'The number of milliseconds before starting the first retry', default: 60000 }),
FACTOR: num({ desc: 'The factor to multiply the timeout with', default: 1 }),
GITEA_URL: str({ default: 'gitea-http.gitea.svc.cluster.local:3000' }),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GITEA_URL could be split into:
GITEA_HOST and GITEA_PORT

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps also instead of GITEA we could use GIT because the operator is git repo provider agnostic

export class AplOperator {
private d = terminal('operator:apl')
private isRunning = false
private pollInterval = 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be configurable

@ElderMatt ElderMatt self-assigned this May 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants