Skip to content

Commit

Permalink
fix: operator information changes (#514)
Browse files Browse the repository at this point in the history
Co-authored-by: xueshan <xueshan@xiaomi.com>
Co-authored-by: wodiwudi <40229449+wodiwudi@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 20, 2024
1 parent 814625d commit 4100d7f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ozhera-operator/ozhera-operator-server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
# limitations under the License.
FROM openjdk:21-jdk-bookworm

COPY ./target/ozhera-operator-server-1.0-jdk21.jar /home/work/ozhera-operator-server-1.0-SNAPSHOT.jar
COPY ./target/ozhera-operator-server-2.0.0-SNAPSHOT.jar /home/work/ozhera-operator-server-1.0-SNAPSHOT.jar

ENTRYPOINT ["sh","-c","java -XX:+UseZGC --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/sun.reflect=ALL-UNNAMED --add-opens java.base/java.xml=ALL-UNNAMED --add-exports java.base/sun.reflect.annotation=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.dv.util=ALL-UNNAMED -Duser.timezone=Asia/Shanghai -jar /home/work/ozhera-operator-server-1.0-SNAPSHOT.jar"]
ENTRYPOINT ["sh","-c","java -XX:+UseZGC --enable-preview --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.math=ALL-UNNAMED --add-opens java.base/sun.reflect=ALL-UNNAMED --add-opens java.base/java.xml=ALL-UNNAMED --add-exports java.base/sun.reflect.annotation=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED --add-exports java.xml/com.sun.org.apache.xerces.internal.impl.dv.util=ALL-UNNAMED -Duser.timezone=Asia/Shanghai -jar /home/work/ozhera-operator-server-1.0-SNAPSHOT.jar"]
10 changes: 10 additions & 0 deletions ozhera-operator/ozhera-operator-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ http://www.apache.org/licenses/LICENSE-2.0
</dependency>
</dependencies>

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.33</version>
</dependency>
</dependencies>
</dependencyManagement>


<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
log.path=/home/work/log/ozhera-operator
crd=mone:run.mone.hera.operator.bo.HeraBootstrap:run.mone.hera.operator.bo.HeraBootstrapList:heraClient:HeraResourceEventHandler
crd=mone:org.apache.ozhera.operator.bo.HeraBootstrap:org.apache.ozhera.operator.bo.HeraBootstrapList:heraClient:HeraResourceEventHandler
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ spec:
persistentVolumeReclaimPolicy: Retain
storageClassName: local-storage
local:
path: /home/work/alertmanager_hera_namespace_pv
path: /home/work/alertmanager_ozhera_namespace_pv
nodeAffinity:
required:
nodeSelectorTerms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ spec:
persistentVolumeReclaimPolicy: Retain
storageClassName: local-storage
local:
path: /home/work/grafana_hera_namespace_pv
path: /home/work/grafana_ozhera_namespace_pv
nodeAffinity:
required:
nodeSelectorTerms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ spec:
persistentVolumeReclaimPolicy: Retain
storageClassName: local-storage
local:
path: /home/work/prometheus_hera_namespace_pv
path: /home/work/prometheus_ozhera_namespace_pv
nodeAffinity:
required:
nodeSelectorTerms:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,9 @@ private void initTpc(String action) {
}
}

private void initNacos(String action, String nacosAddress, String pwd, List<PropConf> propConfList) {
private void initNacos(String action, String nacosAddress, String pwd, List<PropConf> propConfList) throws InterruptedException {
log.warn("initNacos begin nacosAddress:{}", nacosAddress);
Thread.sleep(1000 * 30);
String url = String.format("http://%s/nacos/v1/ns/cluster/enable?level=4&pwd=%s", nacosAddress, pwd);
String nacosEnable = HttpClientV6.get(url, new HashMap<>(), 2000);
if (!"ok".equals(nacosEnable)) {
Expand Down

0 comments on commit 4100d7f

Please sign in to comment.