Skip to content

feat: initial implementation - #1

Merged
Gerrit91 merged 12 commits into
mainfrom
initial-implementation
Jul 15, 2026
Merged

feat: initial implementation#1
Gerrit91 merged 12 commits into
mainfrom
initial-implementation

Conversation

@vknabel

@vknabel vknabel commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Description

  • sets up project structure
  • sets up CI/CD
  • reads and updates a secret
  • adds some metadata annotations regarding the updated token

TODOs

  • Add tests
  • Actually try out with metal-console
  • Tweaked dependabot
  • Basic Documentation
    • in README
    • as CRON Job example
  • Branch Protection Rules
  • Decide on maintainers

Used AI-Tools ✨

  • No AI tools used

Related

After Merge

@metal-robot metal-robot Bot added this to Development Jul 6, 2026
@vknabel vknabel added area: control-plane Affects the metal-stack control-plane area. requires docs update For merging this pull request, an update in metal-stack.io/docs is required. labels Jul 6, 2026
@vknabel
vknabel marked this pull request as ready for review July 13, 2026 07:46
@vknabel vknabel added the triage This should be talked about in the next planning meeting. label Jul 13, 2026
@metal-robot metal-robot Bot removed the triage This should be talked about in the next planning meeting. label Jul 13, 2026
@iljarotar iljarotar moved this to In Progress in Development Jul 13, 2026

@Gerrit91 Gerrit91 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice!

Comment on lines +26 to +36
lint: true
test: true
build: true
test-command: make test
build-command: make token-refresher
registry: ghcr.io
registry-username: ${{ github.actor }}
image-name: ${{ github.repository }}
context: .
dockerfile: Dockerfile
artifact-files: ""

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Make us of awesome defaults. :)

Comment thread Makefile Outdated
Comment thread cmd/token-refresher/main.go Outdated
Key: cfg.SecretKey,
})
if err != nil {
panic(err)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we use os.Exit(1)?

Comment thread refresher/refresher.go
return err
}

tokSec.Data[ref.Key] = []byte(tokResp.Secret)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nil check for data map is missing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

inserted above (the token must be provided in order to refresh it)

spec.AnnotationTokenIssuedAt: "2006-01-02T14:04:05Z",
},
},
Data: map[string][]byte{

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test when nothing is in data (nil)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

vknabel and others added 2 commits July 15, 2026 13:00
Co-authored-by: Gerrit <Gerrit91@users.noreply.github.com>
@Gerrit91
Gerrit91 merged commit 0710c18 into main Jul 15, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Development Jul 15, 2026
@Gerrit91
Gerrit91 deleted the initial-implementation branch July 15, 2026 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: control-plane Affects the metal-stack control-plane area. requires docs update For merging this pull request, an update in metal-stack.io/docs is required.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants