Skip to content

Commit 4f36fc3

Browse files
committed
Add tls ca certificate during os profile creation
Signed-off-by: punam biswal <[email protected]>
1 parent 4271add commit 4f36fc3

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.12.15
1+
0.12.16

internal/cli/osprofile.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ var osProfileSchema = `
7575
"existingCvesURL": { "type": ["string", "null"] },
7676
"fixedCvesURL": { "type": ["string", "null"] },
7777
"securityFeature": { "type": "string" },
78-
"platformBundle": { "type": ["string", "null"] }
78+
"platformBundle": { "type": ["string", "null"] },
79+
"tlsCaCert": { "type": ["string", "null"] }
7980
},
8081
"required": [
8182
"name", "type", "provider", "architecture", "profileName",
@@ -102,6 +103,7 @@ type OSProfileSpec struct {
102103
PlatformBundle string `yaml:"platformBundle"`
103104
OsExistingCvesURL string `yaml:"osExistingCvesURL"`
104105
OsFixedCvesURL string `yaml:"osFixedCvesURL"`
106+
TLSCaCert string `yaml:"tlsCaCert"`
105107
}
106108

107109
type NestedSpec struct {
@@ -148,6 +150,10 @@ func printOSProfile(writer io.Writer, OSProfile *infra.OperatingSystemResource)
148150
_, _ = fmt.Fprintf(writer, "Created: \t%v\n", OSProfile.Timestamps.CreatedAt)
149151
_, _ = fmt.Fprintf(writer, "Updated: \t%v\n", OSProfile.Timestamps.UpdatedAt)
150152

153+
if OSProfile.TlsCaCert != nil {
154+
_, _ = fmt.Fprintf(writer, "TLS CA Cert: \t%v\n", *OSProfile.TlsCaCert)
155+
}
156+
151157
if OSProfile.ExistingCves != nil && OSProfile.FixedCves != nil {
152158

153159
if *OSProfile.ExistingCves != "" {

pkg/rest/infra/types.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)