generated from quarkiverse/quarkiverse-template
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move CSV-related annotation & interface to annotations modu…
- Loading branch information
Showing
19 changed files
with
166 additions
and
21 deletions.
There are no files selected for viewing
121 changes: 121 additions & 0 deletions
121
annotations/src/main/java/io/quarkiverse/operatorsdk/annotations/CSVMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
package io.quarkiverse.operatorsdk.annotations; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.RUNTIME) | ||
@Target({ ElementType.TYPE }) | ||
@SuppressWarnings("unused") | ||
public @interface CSVMetadata { | ||
String name() default ""; | ||
|
||
Annotations annotations() default @Annotations; | ||
|
||
String description() default ""; | ||
|
||
String displayName() default ""; | ||
|
||
Icon[] icon() default {}; | ||
|
||
String[] keywords() default ""; | ||
|
||
String maturity() default ""; | ||
|
||
String version() default ""; | ||
|
||
String replaces() default ""; | ||
|
||
Maintainer[] maintainers() default {}; | ||
|
||
Provider provider() default @Provider; | ||
|
||
InstallMode[] installModes() default {}; | ||
|
||
PermissionRule[] permissionRules() default {}; | ||
|
||
RequiredCRD[] requiredCRDs() default {}; | ||
|
||
String minKubeVersion() default ""; | ||
|
||
Link[] links() default {}; | ||
|
||
@interface Annotations { | ||
String containerImage() default ""; | ||
|
||
String repository() default ""; | ||
|
||
String capabilities() default ""; | ||
|
||
String categories() default ""; | ||
|
||
boolean certified() default false; | ||
|
||
String almExamples() default ""; | ||
|
||
String skipRange() default ""; | ||
|
||
Annotation[] others() default {}; | ||
|
||
@interface Annotation { | ||
String name(); | ||
|
||
String value(); | ||
} | ||
} | ||
|
||
@interface Icon { | ||
String DEFAULT_MEDIA_TYPE = "image/svg+xml"; | ||
|
||
String fileName(); | ||
|
||
String mediatype() default DEFAULT_MEDIA_TYPE; | ||
} | ||
|
||
@interface Maintainer { | ||
String email() default ""; | ||
|
||
String name() default ""; | ||
} | ||
|
||
@interface Provider { | ||
String name() default ""; | ||
|
||
String url() default ""; | ||
} | ||
|
||
@interface InstallMode { | ||
String type(); | ||
|
||
boolean supported() default true; | ||
} | ||
|
||
@interface PermissionRule { | ||
String[] apiGroups(); | ||
|
||
String[] resources(); | ||
|
||
String[] verbs() default { "get", "list", "watch", "create", "delete", "patch", "update" }; | ||
|
||
/** | ||
* @return the service account name for the permission rule. If not provided, it will use the default service account | ||
* name. | ||
*/ | ||
String serviceAccountName() default ""; | ||
} | ||
|
||
@interface RequiredCRD { | ||
String kind(); | ||
|
||
String name(); | ||
|
||
String version(); | ||
} | ||
|
||
@interface Link { | ||
String url(); | ||
|
||
String name(); | ||
} | ||
} |
4 changes: 4 additions & 0 deletions
4
annotations/src/main/java/io/quarkiverse/operatorsdk/annotations/SharedCSVMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package io.quarkiverse.operatorsdk.annotations; | ||
|
||
public interface SharedCSVMetadata { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...or/runtime/src/main/java/io/quarkiverse/operatorsdk/bundle/runtime/SharedCSVMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
package io.quarkiverse.operatorsdk.bundle.runtime; | ||
|
||
@SuppressWarnings("unused") | ||
@Deprecated(since = "6.3.1", forRemoval = true) | ||
/** | ||
* @deprecated Use {@link io.quarkiverse.operatorsdk.annotations.CSVMetadata} instead | ||
*/ | ||
public interface SharedCSVMetadata { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...rc/main/java/io/quarkiverse/operatorsdk/samples/pingpong/PingPongOperatorCSVMetadata.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters