Skip to content

Commit

Permalink
Update operator-framework and crd-generator
Browse files Browse the repository at this point in the history
While here, fix a Gradle warning about missing test dependencies.
  • Loading branch information
Stefan Bethke authored and stefanbethke committed Jun 4, 2024
1 parent e725ac6 commit 7965479
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 4 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ dependencies {
// developmentOnly 'org.springframework.boot:spring-boot-devtools:3.2.0'
implementation 'org.springframework.boot:spring-boot-starter-actuator:3.3.0'
implementation 'org.springframework.boot:spring-boot-starter-web:3.3.0'
implementation 'io.javaoperatorsdk:operator-framework-spring-boot-starter:5.4.1'
implementation 'io.javaoperatorsdk:operator-framework-spring-boot-starter:5.5.0'
implementation 'org.bouncycastle:bcpkix-jdk15on:1.70'
// required for the fabric8 k8s client to grok k3d certificates
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor:3.3.0'
compileOnly 'org.projectlombok:lombok'
testCompileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor 'io.fabric8:crd-generator-apt:6.9.2'
annotationProcessor 'io.fabric8:crd-generator-apt:6.13.0'
testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'org.springframework.boot:spring-boot-starter-test:3.3.0'
testImplementation 'io.javaoperatorsdk:operator-framework-spring-boot-starter-test:5.4.1'
testImplementation 'io.javaoperatorsdk:operator-framework-spring-boot-starter-test:5.5.0'
}

tasks.named('test') {
Expand Down
28 changes: 28 additions & 0 deletions charts/cmcc-operator/templates/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,13 @@ spec:
podSecurityContext:
description: Security context for a pod
properties:
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
fsGroup:
type: integer
fsGroupChangePolicy:
Expand Down Expand Up @@ -253,6 +260,13 @@ spec:
properties:
allowPrivilegeEscalation:
type: boolean
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
capabilities:
properties:
add:
Expand Down Expand Up @@ -398,6 +412,13 @@ spec:
podSecurityContext:
description: Default security context for a pod
properties:
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
fsGroup:
type: integer
fsGroupChangePolicy:
Expand Down Expand Up @@ -474,6 +495,13 @@ spec:
properties:
allowPrivilegeEscalation:
type: boolean
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
capabilities:
properties:
add:
Expand Down
28 changes: 28 additions & 0 deletions k8s/cmcc-crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ spec:
podSecurityContext:
description: Security context for a pod
properties:
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
fsGroup:
type: integer
fsGroupChangePolicy:
Expand Down Expand Up @@ -252,6 +259,13 @@ spec:
properties:
allowPrivilegeEscalation:
type: boolean
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
capabilities:
properties:
add:
Expand Down Expand Up @@ -397,6 +411,13 @@ spec:
podSecurityContext:
description: Default security context for a pod
properties:
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
fsGroup:
type: integer
fsGroupChangePolicy:
Expand Down Expand Up @@ -473,6 +494,13 @@ spec:
properties:
allowPrivilegeEscalation:
type: boolean
appArmorProfile:
properties:
localhostProfile:
type: string
type:
type: string
type: object
capabilities:
properties:
add:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public PersistentVolumeClaim getPersistentVolumeClaim(String name, Quantity size
.withMetadata(getResourceMetadataForName(name))
.withSpec(new PersistentVolumeClaimSpecBuilder()
.withAccessModes("ReadWriteOnce")
.withResources(new ResourceRequirementsBuilder()
.withResources(new VolumeResourceRequirementsBuilder()
.withRequests(Map.of("storage", size))
.build())
.withStorageClassName(sc)
Expand Down

0 comments on commit 7965479

Please sign in to comment.