Skip to content

Commit

Permalink
Provisioner: Add support to fetch kbs pod ip
Browse files Browse the repository at this point in the history
Fixes: confidential-containers#1471
Signed-off-by: Kartik Joshi <kartikjoshi@microsoft.com>
  • Loading branch information
kartikjoshi21 committed Feb 28, 2024
1 parent 6e09325 commit f4d42f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ func TestMain(m *testing.M) {
testEnv.Setup(func(ctx context.Context, cfg *envconf.Config) (context.Context, error) {
log.Info("Do setup")
var err error
// Get properties
props := provisioner.GetProperties(ctx, cfg)

// Get properties
props := provisioner.GetProperties(ctx, cfg)
Expand Down
3 changes: 3 additions & 0 deletions test/provisioner/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -92,6 +93,8 @@ func saveToFile(filename string, content []byte) error {
func NewKeyBrokerService(clusterName string) (*KeyBrokerService, error) {
log.Info("creating key.bin")

log.Info("creating key.bin")

// Create secret
content := []byte("This is my cluster name: " + clusterName)
filePath := "kbs/kbs/config/kubernetes/overlays/key.bin"
Expand Down

0 comments on commit f4d42f5

Please sign in to comment.